Skip to content

Commit

Permalink
test: await page load to test
Browse files Browse the repository at this point in the history
  • Loading branch information
lannodev committed Nov 4, 2024
1 parent e230491 commit e1d045e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests-e2e/sidebar.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ test.beforeEach(async ({ page }) => {
test('check sidebar menu link', async ({ page }) => {
await page.getByRole('navigation').locator('div').filter({ hasText: 'Auth' }).nth(3).click();
await page.getByRole('link', { name: 'Sign up' }).click();
await page.waitForTimeout(500);
await expect(page.locator('h2')).toContainText('Sign Up !');
});

Expand Down

0 comments on commit e1d045e

Please sign in to comment.