Skip to content

Commit

Permalink
fix login test
Browse files Browse the repository at this point in the history
  • Loading branch information
jho44 committed Sep 17, 2023
1 parent aca6468 commit ba0e0b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ test.beforeEach(async () => {
test('Redirect to login page w/ prefilled phone num on expired magic link', async ({ page }) => {
await page.goto('http://localhost:5173/login/12015550121/3e99472f1003794c');

await page.waitForURL(`${host}?phone=12015550121`, { waitUntil: 'networkidle' });
await expect(page).toHaveURL(`${host}?phone=12015550121`);
await page.waitForURL(`${host}?phone=12015550121&status=403`, { waitUntil: 'networkidle' });
await expect(page).toHaveURL(`${host}?phone=12015550121&status=403`);
});

0 comments on commit ba0e0b1

Please sign in to comment.