chore: unflake access-control, fix incorrect poll & toPass timeouts

This commit is contained in:
Alessio Gravili
2024-03-22 16:42:41 -04:00
parent 4c109a467f
commit 2c68f8fba1
5 changed files with 21 additions and 21 deletions

View File

@@ -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,
})