Objective
What to automate
Compare v1 and v2 semantic contracts and review their screenshots.
Preconditions and test data
Preconditions
- Use a fresh isolated Practice Lab browser context.
- Open the fixture identified by FX-VIS-001.
Test data
v1: Approved 5 / 5v2: Refreshed 6 / 6
Expected result
Only the documented accent, check count, and release-note differences justify the baseline change.
Progressive hints
Hint 1
Assert v1 and v2 separately before comparing images.
Hint 2
Use the documented difference text as the review checklist.
Hint 3
Do not update an unexplained screenshot baseline.
I’ve tried it — show solution
- Assert v1 and v2 separately before comparing images.
- Use the documented difference text as the review checklist.
- Do not update an unexplained screenshot baseline.
The deliberately failing starter is in tests/visual-testing.spec.ts inside the TypeScript starter ZIP.