Skip to content

Commit a9d565e

Browse files
Set page navigation timeout to 20 seconds
Increased the timeout for page navigation to 20 seconds.
1 parent ed8a99e commit a9d565e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/find/src/findForUrl.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ export async function findForUrl(url: string, authContext?: AuthContext): Promis
88
const contextOptions = authContext?.toPlaywrightBrowserContextOptions() ?? {};
99
const context = await browser.newContext(contextOptions);
1010
const page = await context.newPage();
11-
await page.goto(url, { waitUntil: 'networkidle' });
11+
await page.goto(url, {
12+
waitUntil: 'networkidle',
13+
// - looks like default timeout is 3000ms
14+
// - increasing to 20,000ms (20 seconds)
15+
timeout: 20000,
16+
});
1217
console.log(`Scanning ${page.url()}`);
1318

1419
let findings: Finding[] = [];

0 commit comments

Comments
 (0)