Skip to content

Commit

Permalink
cherry-pick(release-1.12): default @playwright/test timeout to 0 (#7321)
Browse files Browse the repository at this point in the history
PR #7312 SHA 1157f62
  • Loading branch information
aslushnikov authored Jun 25, 2021
1 parent 770fce5 commit 96fc610
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const test = _baseTest.extend<PlaywrightTestArgs & PlaywrightTestOptions,
throw new Error(`Unexpected browserName "${browserName}", must be one of "chromium", "firefox" or "webkit"`);
const options: LaunchOptions = {
handleSIGINT: false,
timeout: 0,
...launchOptions,
};
if (headless !== undefined)
Expand Down Expand Up @@ -146,6 +147,7 @@ export const test = _baseTest.extend<PlaywrightTestArgs & PlaywrightTestOptions,
options.viewport = viewport;

const context = await browser.newContext(options);
context.setDefaultTimeout(0);
const allPages: Page[] = [];
context.on('page', page => allPages.push(page));

Expand Down

0 comments on commit 96fc610

Please sign in to comment.