You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a large text snapshot, eg. comparing all list items on a very long list (eg. (await page.locator('h2:text("Schedule") + div.grid a').allInnerTexts()).join('\n'))
Make an intentional error in the text snapshot
💥 Run Playwright CLI and see very hard to parse output (see below) - especially hard in logs for GitHub Actions workflow failures
1) playwright/schedulerCreatesCohort.spec.ts:115:1 › Scheduler creates cohort ────────────────────
Error: Snapshot comparison failed:
[
{
"title": "Intro to Course, Remote Collaboration",
"startTimestamp": "2024-09-09T07:00:00.000Z",
"endTimestamp": "2024-09-09T09:00:00.000Z"
},
... many more lines here, potentially hundreds or thousands of lines ...
]
At some point, this visual diff using colored text via ANSI escape codes shows up in the output:
This is really easy to miss, even if you quickly scroll through all lines.
Expected behavior
Show a concise diff, with only a few lines of context on each side of each difference
Maybe don't only show the changes via color, but also via text (accessibility)
Version
1.48.2
Steps to reproduce
(await page.locator('h2:text("Schedule") + div.grid a').allInnerTexts()).join('\n')
)At some point, this visual diff using colored text via ANSI escape codes shows up in the output:
This is really easy to miss, even if you quickly scroll through all lines.
Expected behavior
Eg. the same type of diff as in
.toEqual([ ... ])
Actual behavior
Additional context
--
Environment
The text was updated successfully, but these errors were encountered: