refactor: patternhub examples to align with figma props #15582
Annotations
5 errors, 2 warnings, and 1 notice
🔣 Print GitHub Report:
showcases/patternhub/tests/default.spec.ts#L15
1) [chromium] › default.spec.ts:10:2 › switch › overview should match screenshot ─────────────────
Error: expect(page).toHaveScreenshot(expected)
2707 pixels (ratio 0.01 of all image pixels) are different.
Expected: /__w/mono/mono/__snapshots__/switch/patternhub/switch-overview-should-match-screenshot.png
Received: /__w/mono/mono/showcases/patternhub/test-results/default-switch-overview-should-match-screenshot-chromium/switch/patternhub-actual.png
Diff: /__w/mono/mono/showcases/patternhub/test-results/default-switch-overview-should-match-screenshot-chromium/switch/patternhub-diff.png
Call log:
- expect.toHaveScreenshot(switch/patternhub.png) with timeout 30000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 2707 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
- 2707 pixels (ratio 0.01 of all image pixels) are different.
13 | });
14 | await fn(page);
> 15 | await expect(page).toHaveScreenshot([name, 'patternhub.png']);
| ^
16 | });
17 | };
18 |
at /__w/mono/mono/showcases/patternhub/tests/default.spec.ts:15:22
|
🔣 Print GitHub Report:
showcases/patternhub/tests/default.spec.ts#L15
1) [chromium] › default.spec.ts:10:2 › switch › overview should match screenshot ─────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(page).toHaveScreenshot(expected)
2707 pixels (ratio 0.01 of all image pixels) are different.
Expected: /__w/mono/mono/__snapshots__/switch/patternhub/switch-overview-should-match-screenshot.png
Received: /__w/mono/mono/showcases/patternhub/test-results/default-switch-overview-should-match-screenshot-chromium-retry1/switch/patternhub-actual.png
Diff: /__w/mono/mono/showcases/patternhub/test-results/default-switch-overview-should-match-screenshot-chromium-retry1/switch/patternhub-diff.png
Call log:
- expect.toHaveScreenshot(switch/patternhub.png) with timeout 30000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 2707 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
- 2707 pixels (ratio 0.01 of all image pixels) are different.
13 | });
14 | await fn(page);
> 15 | await expect(page).toHaveScreenshot([name, 'patternhub.png']);
| ^
16 | });
17 | };
18 |
at /__w/mono/mono/showcases/patternhub/tests/default.spec.ts:15:22
|
🔣 Print GitHub Report:
showcases/patternhub/tests/default.spec.ts#L15
2) [chromium] › default.spec.ts:10:2 › textarea › overview should match screenshot ───────────────
Error: expect(page).toHaveScreenshot(expected)
2399 pixels (ratio 0.01 of all image pixels) are different.
Expected: /__w/mono/mono/__snapshots__/textarea/patternhub/textarea-overview-should-match-screenshot.png
Received: /__w/mono/mono/showcases/patternhub/test-results/default-textarea-overview-should-match-screenshot-chromium/textarea/patternhub-actual.png
Diff: /__w/mono/mono/showcases/patternhub/test-results/default-textarea-overview-should-match-screenshot-chromium/textarea/patternhub-diff.png
Call log:
- expect.toHaveScreenshot(textarea/patternhub.png) with timeout 30000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 2399 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
- 2399 pixels (ratio 0.01 of all image pixels) are different.
13 | });
14 | await fn(page);
> 15 | await expect(page).toHaveScreenshot([name, 'patternhub.png']);
| ^
16 | });
17 | };
18 |
at /__w/mono/mono/showcases/patternhub/tests/default.spec.ts:15:22
|
🔣 Print GitHub Report:
showcases/patternhub/tests/default.spec.ts#L15
2) [chromium] › default.spec.ts:10:2 › textarea › overview should match screenshot ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(page).toHaveScreenshot(expected)
2399 pixels (ratio 0.01 of all image pixels) are different.
Expected: /__w/mono/mono/__snapshots__/textarea/patternhub/textarea-overview-should-match-screenshot.png
Received: /__w/mono/mono/showcases/patternhub/test-results/default-textarea-overview-should-match-screenshot-chromium-retry1/textarea/patternhub-actual.png
Diff: /__w/mono/mono/showcases/patternhub/test-results/default-textarea-overview-should-match-screenshot-chromium-retry1/textarea/patternhub-diff.png
Call log:
- expect.toHaveScreenshot(textarea/patternhub.png) with timeout 30000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 2399 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
- 2399 pixels (ratio 0.01 of all image pixels) are different.
13 | });
14 | await fn(page);
> 15 | await expect(page).toHaveScreenshot([name, 'patternhub.png']);
| ^
16 | });
17 | };
18 |
at /__w/mono/mono/showcases/patternhub/tests/default.spec.ts:15:22
|
👩🔬 Test showcase with Playwright 🎭
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🆙 Upload aChecker results
No files were found with the provided path: ./showcases/patternhub-showcase/results. No artifacts will be uploaded.
|
🔣 Print GitHub Report
2 failed
[chromium] › default.spec.ts:10:2 › switch › overview should match screenshot ──────────────────
[chromium] › default.spec.ts:10:2 › textarea › overview should match screenshot ────────────────
11 passed (14.5s)
|
Loading