Skip to content

Playwright snapshot testing #13

Playwright snapshot testing

Playwright snapshot testing #13

Triggered via pull request September 2, 2024 20:45
@twmtwm
synchronize #4
snapshots
Status Failure
Total duration 1m 30s
Artifacts 2

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 notice
test.ts:3:1 › home page has expected title: tests/test.ts#L8
1) test.ts:3:1 › home page has expected title ──────────────────────────────────────────────────── Error: Screenshot comparison failed: 8134 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/halo/halo/tests/test.ts-snapshots/home-page-has-expected-title-1-linux.png Received: /home/runner/work/halo/halo/test-results/test.ts-home-page-has-expected-title/home-page-has-expected-title-1-actual.png Diff: /home/runner/work/halo/halo/test-results/test.ts-home-page-has-expected-title/home-page-has-expected-title-1-diff.png Call log: - expect.toHaveScreenshot with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - disabled all CSS animations - waiting for fonts to load... - fonts loaded - 8134 pixels (ratio 0.01 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - disabled all CSS animations - waiting for fonts to load... - fonts loaded - captured a stable screenshot - 8134 pixels (ratio 0.01 of all image pixels) are different. 6 | await expect(page.locator("h1")).toHaveText(title) 7 | await expect(page).toHaveTitle(title) > 8 | await expect(page).toHaveScreenshot() | ^ 9 | }) 10 | at /home/runner/work/halo/halo/tests/test.ts:8:24
Slow
Process completed with exit code 1.
🎭 Playwright Run Summary
1 failed test.ts:3:1 › home page has expected title ─────────────────────────────────────────────────────

Artifacts

Produced during runtime
Name Size
build Expired
326 KB
playwright-report Expired
756 KB