Skip to content

Commit 700c5e8

Browse files
committed
fix(e2e): make auth test more robust
1 parent f0700d0 commit 700c5e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

starters/e2e/qwikrouter/auth.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function tests() {
8686

8787
/*********** Go to Dashboard settings, shouldn't redirect if signed in ***********/
8888
await page.locator('[data-test-link="dashboard-settings"]').click();
89+
await page.waitForURL("/qwikrouter-test/dashboard/settings/");
8990
await assertPage(ctx, {
9091
pathname: "/qwikrouter-test/dashboard/settings/",
9192
title: "Dashboard Settings - Qwik",
@@ -95,6 +96,7 @@ function tests() {
9596

9697
/*********** Sign out ***********/
9798
await page.locator('[data-test-link="dashboard-sign-out"]').click();
99+
await page.waitForURL("/qwikrouter-test/sign-in/");
98100
await assertPage(ctx, {
99101
pathname: "/qwikrouter-test/sign-in/",
100102
});

0 commit comments

Comments
 (0)