fix: run signup-flow tests unauthenticated and increase timeout

- Add signup-flow to unauthenticated test pattern
- Ignore signup-flow in authenticated chromium tests
- Increase global timeout from 20 to 30 minutes
- Fixes redirects to /dashboard when trying to access /users/register
This commit is contained in:
Graham McIntire 2026-03-08 16:41:18 -05:00
parent fc63a4faaf
commit e91d74d52b
No known key found for this signature in database

View file

@ -22,8 +22,8 @@ export default defineConfig({
workers: process.env.CI ? 4 : undefined, workers: process.env.CI ? 4 : undefined,
/* Maximum time one test can run */ /* Maximum time one test can run */
timeout: 30 * 1000, timeout: 30 * 1000,
/* Maximum time for entire test run (1318 tests with 4 workers ~15 minutes) */ /* Maximum time for entire test run (1318 tests with 4 workers ~25 minutes) */
globalTimeout: 20 * 60 * 1000, globalTimeout: 30 * 60 * 1000,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: process.env.CI reporter: process.env.CI
? [['list']] ? [['list']]
@ -61,7 +61,7 @@ export default defineConfig({
...devices['Desktop Chrome'], ...devices['Desktop Chrome'],
// No storageState - runs without authentication // No storageState - runs without authentication
}, },
testMatch: /tests\/(auth-flows|registration)\.spec\.ts/, testMatch: /tests\/(auth-flows|registration|signup-flow)\.spec\.ts/,
}, },
{ {
@ -71,7 +71,7 @@ export default defineConfig({
// Use prepared auth state // Use prepared auth state
storageState: 'tests/.auth/user.json', storageState: 'tests/.auth/user.json',
}, },
testIgnore: /tests\/(auth-flows|registration)\.spec\.ts/, testIgnore: /tests\/(auth-flows|registration|signup-flow)\.spec\.ts/,
dependencies: ['setup'], dependencies: ['setup'],
}, },