Skip to content

[WIP] chore(demo-cypress): mock fonts to fix flaky Cypress tests #10550

[WIP] chore(demo-cypress): mock fonts to fix flaky Cypress tests

[WIP] chore(demo-cypress): mock fonts to fix flaky Cypress tests #10550

Triggered via pull request November 15, 2024 10:56
Status Failure
Total duration 16m 52s
Artifacts 1

e2e.yml

on: pull_request
Cypress / Component Testing
5m 8s
Cypress / Component Testing
Matrix: playwright
E2E result
0s
E2E result
Playwright E2E Tests matrix result
0s
Playwright E2E Tests matrix result
Fit to window
Zoom out
Zoom in

Annotations

2 errors, 1 warning, and 18 notices
Cypress / Component Testing
Process completed with exit code 1.
[chromium] › tests/kit/tiles/tiles.pw.spec.ts:6:9 › Tiles › correctly loose box shadow after dragged: projects/demo-playwright/tests/kit/tiles/tiles.pw.spec.ts#L18
1) [chromium] › tests/kit/tiles/tiles.pw.spec.ts:6:9 › Tiles › correctly loose box shadow after dragged Error: Screenshot comparison failed: 7868 pixels (ratio 0.02 of all image pixels) are different. Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/tiles/tiles.pw.spec.ts-snapshots/02-tiles-drag-and-drop-chromium-linux.png Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-tiles-tiles.pw-T-9c0bc-se-box-shadow-after-dragged-chromium/02-tiles-drag-and-drop-actual.png Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-tiles-tiles.pw-T-9c0bc-se-box-shadow-after-dragged-chromium/02-tiles-drag-and-drop-diff.png Call log: - expect.toHaveScreenshot(02-tiles-drag-and-drop.png) with timeout 5000ms - verifying given screenshot expectation - waiting for locator('#vertical [automation-id="tui-doc-example"]') - locator resolved to <div _ngcontent-ng-c644840128="" automation-id="tui-doc-example" class="t-demo ng-star-inserted">…</div> - 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 - 7868 pixels (ratio 0.02 of all image pixels) are different. - waiting 100ms before taking screenshot - waiting for locator('#vertical [automation-id="tui-doc-example"]') - locator resolved to <div _ngcontent-ng-c644840128="" automation-id="tui-doc-example" class="t-demo ng-star-inserted">…</div> - 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 - 7868 pixels (ratio 0.02 of all image pixels) are different. 16 | await page.waitForTimeout(300); 17 | > 18 | await expect(example).toHaveScreenshot('02-tiles-drag-and-drop.png'); | ^ 19 | }); 20 | }); 21 | at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/tiles/tiles.pw.spec.ts:18:31
Slow Test: [chromium] › tests/kit/input-table/input-table.pw.spec.ts#L1
[chromium] › tests/kit/input-table/input-table.pw.spec.ts took 15.1s
🎭 Playwright Run Summary
108 passed (1.4m)
🎭 Playwright Run Summary
108 passed (1.2m)
🎭 Playwright Run Summary
108 passed (1.5m)
🎭 Playwright Run Summary
108 passed (1.7m)
🎭 Playwright Run Summary
1 flaky [chromium] › tests/kit/tiles/tiles.pw.spec.ts:6:9 › Tiles › correctly loose box shadow after dragged 107 passed (1.7m)
🎭 Playwright Run Summary
108 passed (1.8m)
🎭 Playwright Run Summary
108 passed (1.4m)
🎭 Playwright Run Summary
108 passed (1.5m)
🎭 Playwright Run Summary
108 passed (1.9m)
🎭 Playwright Run Summary
108 passed (1.6m)
🎭 Playwright Run Summary
108 passed (1.9m)
🎭 Playwright Run Summary
108 passed (1.8m)
🎭 Playwright Run Summary
26 skipped 82 passed (1.7m)
🎭 Playwright Run Summary
26 skipped 82 passed (1.5m)
🎭 Playwright Run Summary
108 passed (2.3m)
🎭 Playwright Run Summary
108 passed (2.0m)
🎭 Playwright Run Summary
108 passed (7.3m)
🎭 Playwright Run Summary
108 passed (5.7m)

Artifacts

Produced during runtime
Name Size
cy_baseline_f610ea3c8c3423d5cfd823ff0df105048d6164b1 Expired
106 KB