Skip to content

Commit a95ae83

Browse files
committed
wip: Wait for URL
1 parent af3c3ae commit a95ae83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { readFile } from 'node:fs/promises';
22
import type { Finding } from './types.d.js';
3-
import { sleep } from './sleep.js';
43
import AxeBuilder from '@axe-core/playwright'
54
import playwright from 'playwright';
65

@@ -10,7 +9,8 @@ export async function findForUrl(url: string, sessionStatePath?: string): Promis
109
const page = await context.newPage();
1110
await page.goto(url);
1211

13-
await sleep(5000);
12+
console.log(page.url());
13+
await page.waitForURL("https://ui.githubapp.com/storybook/?path=/docs/introduction--docs");
1414
console.log(page.url());
1515

1616
let findings: Finding[] = [];

0 commit comments

Comments
 (0)