Skip to content

Commit 08dfe3c

Browse files
authored
Add wait timeout in Playwright test snippet q
Added a wait timeout before the expect statement in Playwright code.
1 parent 285c139 commit 08dfe3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pages/playwright/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ <h2>Usefull snippets</h2>
5757
<script type="editor" data-lang="ts">
5858

5959
test.use({ actionTimeout: 2000 });
60+
await page.waitForTimeout(50);
6061

6162
// extra step for codegen
6263
await expect(page.locator("body")).toHaveCount(1);

0 commit comments

Comments
 (0)