chore(e2e): reduce timeout

This commit is contained in:
Zeke Zhang 2024-01-22 10:56:34 +08:00
parent 89828d099c
commit 13e289909c

View File

@ -2,10 +2,10 @@ import { devices, defineConfig as playwrightDefineConfig, type PlaywrightTestCon
export const defineConfig = (config?: PlaywrightTestConfig) => { export const defineConfig = (config?: PlaywrightTestConfig) => {
return playwrightDefineConfig({ return playwrightDefineConfig({
timeout: process.env.CI ? 5 * 60 * 1000 : 200 * 1000, timeout: process.env.CI ? 2 * 60 * 1000 : 30 * 1000,
expect: { expect: {
timeout: process.env.CI ? 1 * 60 * 1000 : 5000, timeout: process.env.CI ? 20 * 1000 : 5000,
}, },
// Look for test files in the "tests" directory, relative to this configuration file. // Look for test files in the "tests" directory, relative to this configuration file.