Update timeouts.ts

This commit is contained in:
lin onetwo 2026-01-25 02:27:44 +08:00
parent bd588f2550
commit bdc2825861

View file

@ -18,19 +18,19 @@ const isCI = Boolean(process.env.CI);
/**
* Timeout for Playwright waitForSelector and similar operations
* These are internal timeouts for finding elements, not Cucumber step timeouts
* Local: 5s, CI: 10s
* Local: 5s, CI: 25s
*/
export const PLAYWRIGHT_TIMEOUT = isCI ? 10000 : 5000;
export const PLAYWRIGHT_TIMEOUT = isCI ? 25000 : 5000;
/**
* Shorter timeout for operations that should be very fast
* Local: 3s, CI: 6s
* Local: 3s, CI: 15s
*/
export const PLAYWRIGHT_SHORT_TIMEOUT = isCI ? 6000 : 3000;
export const PLAYWRIGHT_SHORT_TIMEOUT = isCI ? 15000 : 3000;
/**
* Timeout for waiting log markers
* Internal wait should be shorter than step timeout to allow proper error reporting
* Local: 3s, CI: 6s
* Local: 3s, CI: 15s
*/
export const LOG_MARKER_WAIT_TIMEOUT = isCI ? 6000 : 3000;
export const LOG_MARKER_WAIT_TIMEOUT = isCI ? 15000 : 3000;