Skip to content

Commit

Permalink
[CI] Use a slightly longer timeout for UI tests
Browse files Browse the repository at this point in the history
Timeouts with the default, rather short 5000ms timeout can be observed
semi-regularly.

Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Feb 1, 2024
1 parent 806c79c commit cbc61fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vscode-trace-extension/src/test/extension-test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { test, expect } from '@playwright/test';

test.beforeEach(async ({ page }) => {
const timeout = 10000;

test.beforeEach(async ({ page }, testInfo) => {
testInfo.timeout = timeout;
await page.goto('http://localhost:3000');
await page.getByRole('tab', { name: 'Welcome, preview' }).getByRole('button', { name: /Close/ }).click();
await page.getByRole('button', { name: 'Never' }).click();
Expand Down

0 comments on commit cbc61fd

Please sign in to comment.