Commit 8ac1566
test: fix #1115 test to properly create baseline and verify diff
The test now:
1. Saves a baseline with enableLayoutTesting: true (no visible text)
2. Checks against it with enableLayoutTesting: false (text visible)
3. Verifies there's a mismatch but within threshold
4. Verifies actual image was NOT saved (the fix)
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent d882343 commit 8ac1566
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
47 | 57 | | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
0 commit comments