Skip to content

Commit eeca32c

Browse files
committed
test: add redirect test
1 parent f57d373 commit eeca32c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

testing/e2e/src/global/global.setup.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ test.describe.serial(() => {
2121
expect(response.status()).toBe(200);
2222
await expect(response.json()).resolves.toMatchObject({ isSetup: true });
2323
});
24+
test('redirect to login page if setup', async ({ page }) => {
25+
await page.goto('/setup');
26+
await expect(page).toHaveURL('/auth/login');
27+
});
2428
});
2529
test.describe.serial('auth', () => {
2630
test('login', async ({ request }) => {

0 commit comments

Comments
 (0)