test: add a11y tests to showcases #11488
Annotations
4 errors and 1 notice
🔣 Print GitHub Report:
showcases/e2e/default.ts#L89
1) [mobile_chrome] › default.ts:52:2 › DBBrand › should match screenshot ─────────────────────────
Error: Screenshot comparison failed:
3404 pixels (ratio 0.02 of all image pixels) are different.
Expected: /__w/mono/mono/__snapshots__/brand/showcase/mobile-chrome/regular/neutral-bg-lvl-1/DBBrand-should-match-screenshot.png
Received: /__w/mono/mono/showcases/react-showcase/test-results/brand-showcase-brand-DBBrand-should-match-screenshot-mobile-chrome/regular-neutral-bg-lvl-1-actual.png
Diff: /__w/mono/mono/showcases/react-showcase/test-results/brand-showcase-brand-DBBrand-should-match-screenshot-mobile-chrome/regular-neutral-bg-lvl-1-diff.png
Call log:
- expect.toHaveScreenshot(regular/neutral-bg-lvl-1.png) with timeout 10000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 3404 pixels (ratio 0.02 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
- 3404 pixels (ratio 0.02 of all image pixels) are different.
87 | }
88 |
> 89 | await expect(page).toHaveScreenshot(
| ^
90 | [density, `neutral-bg-lvl-1.png`],
91 | config
92 | );
at /__w/mono/mono/showcases/e2e/default.ts:89:22
|
🔣 Print GitHub Report:
showcases/e2e/default.ts#L89
1) [mobile_chrome] › default.ts:52:2 › DBBrand › should match screenshot ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
3404 pixels (ratio 0.02 of all image pixels) are different.
Expected: /__w/mono/mono/__snapshots__/brand/showcase/mobile-chrome/regular/neutral-bg-lvl-1/DBBrand-should-match-screenshot.png
Received: /__w/mono/mono/showcases/react-showcase/test-results/brand-showcase-brand-DBBrand-should-match-screenshot-mobile-chrome-retry1/regular-neutral-bg-lvl-1-actual.png
Diff: /__w/mono/mono/showcases/react-showcase/test-results/brand-showcase-brand-DBBrand-should-match-screenshot-mobile-chrome-retry1/regular-neutral-bg-lvl-1-diff.png
Call log:
- expect.toHaveScreenshot(regular/neutral-bg-lvl-1.png) with timeout 10000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 3404 pixels (ratio 0.02 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
- 3404 pixels (ratio 0.02 of all image pixels) are different.
87 | }
88 |
> 89 | await expect(page).toHaveScreenshot(
| ^
90 | [density, `neutral-bg-lvl-1.png`],
91 | config
92 | );
at /__w/mono/mono/showcases/e2e/default.ts:89:22
|
🔣 Print GitHub Report:
showcases/e2e/default.ts#L89
2) [mobile_chrome] › default.ts:52:2 › DBHeader › should match screenshot ────────────────────────
Error: A snapshot doesn't exist at /__w/mono/mono/__snapshots__/header/showcase/mobile-chrome/regular/neutral-bg-lvl-1/DBHeader-should-match-screenshot.png, writing actual.
87 | }
88 |
> 89 | await expect(page).toHaveScreenshot(
| ^
90 | [density, `neutral-bg-lvl-1.png`],
91 | config
92 | );
at /__w/mono/mono/showcases/e2e/default.ts:89:3
|
👩🔬 Test showcase with Playwright 🎭
Process completed with exit code 1.
|
🔣 Print GitHub Report
2 failed
[mobile_chrome] › default.ts:52:2 › DBBrand › should match screenshot ──────────────────────────
[mobile_chrome] › default.ts:52:2 › DBHeader › should match screenshot ─────────────────────────
108 passed (1.8m)
|
Loading