Skip to content

Commit f37e7aa

Browse files
committed
Added timeout [skip ci]
1 parent 22c13d7 commit f37e7aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e-playwright/src/hooks/hooks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ let context: BrowserContext;
2020

2121
BeforeAll(async function () {
2222
browser = await invokeBrowser();
23-
2423
});
2524

2625
Before(async function ({ pickle }) {
@@ -35,6 +34,9 @@ Before(async function ({ pickle }) {
3534
const page = await context.newPage();
3635

3736
fixture.page = page;
37+
fixture.page.setDefaultTimeout(60_000); // 60s for actions (clicks, waits)
38+
fixture.page.setDefaultNavigationTimeout(60_000); // 60s for navigation
39+
3840

3941
fixture.logger = createLogger(options(scenarioName));
4042

0 commit comments

Comments
 (0)