[QAA-284][Detox] Improving tests stability #1304
Annotations
2 errors, 1 warning, and 1 notice
Run playwright tests [Linux => xvfb-run]:
apps/ledger-live-desktop/tests/specs/market/market.spec.ts#L177
1) [mocked_tests] › specs/market/market.spec.ts:34:5 › Market › go to bitcoin page ───────────────
Error: Screenshot comparison failed:
182182 pixels (ratio 0.24 of all image pixels) are different.
Expected: /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/market/market.spec.ts-snapshots/market-btc-page-linux.png
Received: /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/artifacts/test-results/market-market-Market-mocked-tests/market-btc-page-actual.png
Diff: /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/artifacts/test-results/market-market-Market-mocked-tests/market-btc-page-diff.png
Call log:
- expect.soft.toHaveScreenshot(market-btc-page.png) with timeout 41000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 174794 pixels (ratio 0.23 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
- 182182 pixels (ratio 0.24 of all image pixels) are different.
175 | await test.step("go to bitcoin page", async () => {
176 | await marketPage.openCoinPage("btc");
> 177 | await expect.soft(page).toHaveScreenshot("market-btc-page.png", {
| ^
178 | mask: [
179 | page.getByTestId("chart-container"),
180 | page.getByTestId("market-price-delta"),
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/market/market.spec.ts:177:29
at /home/runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop/tests/specs/market/market.spec.ts:175:3
|
Run playwright tests [Linux => xvfb-run]
Process completed with exit code 1.
|
|
Run playwright tests [Linux => xvfb-run]
1 failed
[mocked_tests] › specs/market/market.spec.ts:34:5 › Market ─────────────────────────────────────
3 skipped
64 passed (7.5m)
|
Loading