chore: unflake access-control, fix incorrect poll & toPass timeouts
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { defineConfig } from '@playwright/test'
|
||||
|
||||
export const EXPECT_TIMEOUT = 45000
|
||||
export const POLL_TOPASS_TIMEOUT = EXPECT_TIMEOUT * 4 // That way expect.poll() or expect().toPass can retry 4 times
|
||||
|
||||
export default defineConfig({
|
||||
// Look for test files in the "test" directory, relative to this configuration file
|
||||
testDir: '',
|
||||
@@ -11,7 +14,7 @@ export default defineConfig({
|
||||
video: 'retain-on-failure',
|
||||
},
|
||||
expect: {
|
||||
timeout: 60000,
|
||||
timeout: EXPECT_TIMEOUT,
|
||||
},
|
||||
workers: 16,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user