update Ubuntu (docker) home page test snapshot #2664
javascript.yml
on: push
build
0s
check-format
42s
test
3m 50s
upload-sourcemaps
0s
Annotations
2 errors, 2 warnings, and 1 notice
index.test.ts:11:2 › home page › hero banner looks correct:
tests/integration/index.test.ts#L13
1) index.test.ts:11:2 › home page › hero banner looks correct ────────────────────────────────────
Error: Screenshot comparison failed:
140 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/frontend/frontend/tests/integration/index.test.ts-snapshots/home-page-hero-banner-looks-correct-1-linux.png
Received: /home/runner/work/frontend/frontend/test-results/index-home-page-hero-banner-looks-correct/home-page-hero-banner-looks-correct-1-actual.png
Diff: /home/runner/work/frontend/frontend/test-results/index-home-page-hero-banner-looks-correct/home-page-hero-banner-looks-correct-1-diff.png
Call log:
- expect.toHaveScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for getByTestId('home-hero-banner')
- locator resolved to <section data-testid="home-hero-banner" class="home-hero-banner svelte-jh63sn">…</section>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- 140 pixels (ratio 0.01 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for getByTestId('home-hero-banner')
- locator resolved to <section data-testid="home-hero-banner" class="home-hero-banner svelte-jh63sn">…</section>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- captured a stable screenshot
- 140 pixels (ratio 0.01 of all image pixels) are different.
11 | test('hero banner looks correct', async ({ page }) => {
12 | const header = page.getByTestId('home-hero-banner');
> 13 | await expect(header).toHaveScreenshot();
| ^
14 | });
15 |
16 | test('home page has impressive numbers', async ({ page }) => {
at /home/runner/work/frontend/frontend/tests/integration/index.test.ts:13:24
|
test
Process completed with exit code 1.
|
check-format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🎭 Playwright Run Summary
1 failed
index.test.ts:11:2 › home page › hero banner looks correct ─────────────────────────────────────
2 skipped
32 passed (17.7s)
|