Skip to content

Commit

Permalink
increase timeout for webkit
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 committed Apr 26, 2024
1 parent 0684fb0 commit 33c0fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/styleguide.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ test('UI regression - Styleguide sections', async ({ page }) => {
await page.goto(`/ide/styleguide#${id}`);

const sampleSection = page.locator(`#sample-section-${id}`);
const box = await sampleSection.boundingBox({ timeout: 30000 });
const box = await sampleSection.boundingBox({ timeout: 45000 });

Check failure on line 86 in tests/styleguide.spec.ts

View workflow job for this annotation

GitHub Actions / merge-reports

[webkit] › styleguide.spec.ts:77:5 › UI regression - Styleguide sections

1) [webkit] › styleguide.spec.ts:77:5 › UI regression - Styleguide sections ────────────────────── TimeoutError: locator.boundingBox: Timeout 45000ms exceeded. =========================== logs =========================== waiting for locator('#sample-section-semantic-colors') ============================================================ 84 | 85 | const sampleSection = page.locator(`#sample-section-${id}`); > 86 | const box = await sampleSection.boundingBox({ timeout: 45000 }); | ^ 87 | expect(box?.height).toBeGreaterThan(0); 88 | 89 | await expect.soft(sampleSection).toHaveScreenshot(`${id}.png`); at /home/runner/work/web-client-ui/web-client-ui/tests/styleguide.spec.ts:86:39 at /home/runner/work/web-client-ui/web-client-ui/tests/styleguide.spec.ts:82:5
expect(box?.height).toBeGreaterThan(0);

await expect.soft(sampleSection).toHaveScreenshot(`${id}.png`);

Check failure on line 89 in tests/styleguide.spec.ts

View workflow job for this annotation

GitHub Actions / merge-reports

[webkit] › styleguide.spec.ts:77:5 › UI regression - Styleguide sections

1) [webkit] › styleguide.spec.ts:77:5 › UI regression - Styleguide sections ────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Screenshot comparison failed: 100 pixels (ratio 0.01 of all image pixels) are different. Call log: - expect.soft.toHaveScreenshot(modals.png) with timeout 15000ms - verifying given screenshot expectation - waiting for locator('#sample-section-modals') - locator resolved to <div class="sample-section" id="sample-section-modals">…</div> - taking element screenshot - disabled all CSS animations - waiting for element to be visible and stable - element is visible and stable - 100 pixels (ratio 0.01 of all image pixels) are different. - waiting 100ms before taking screenshot - waiting for locator('#sample-section-modals') - locator resolved to <div class="sample-section" id="sample-section-modals">…</div> - taking element screenshot - disabled all CSS animations - waiting for element to be visible and stable - element is visible and stable - captured a stable screenshot - 100 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/web-client-ui/web-client-ui/tests/styleguide.spec.ts-snapshots/modals-webkit-linux.png Received: /home/runner/work/web-client-ui/web-client-ui/test-results/styleguide-UI-regression---Styleguide-sections-webkit-retry1/modals-actual.png Diff: /home/runner/work/web-client-ui/web-client-ui/test-results/styleguide-UI-regression---Styleguide-sections-webkit-retry1/modals-diff.png 87 | expect(box?.height).toBeGreaterThan(0); 88 | > 89 | await expect.soft(sampleSection).toHaveScreenshot(`${id}.png`); | ^ 90 | }); 91 | } 92 | }); at /home/runner/work/web-client-ui/web-client-ui/tests/styleguide.spec.ts:89:40 at /home/runner/work/web-client-ui/web-client-ui/tests/styleguide.spec.ts:82:5
Expand Down

0 comments on commit 33c0fe3

Please sign in to comment.