super-productivity/e2e/constants/timeouts.ts
Johannes Millan 4ba9b72597 refactor(e2e): simplify improvements per KISS/YAGNI review
Remove unused speculative abstractions:
- Delete material-helpers.ts (223 lines, zero usages)
- Delete retry-helpers.ts (186 lines, zero usages)
- Revert unused assertion helpers
- Revert unused timeout constants

Keep valuable changes:
- applyPrefix() helper in BasePage (used 4x)
- ProjectPage now uses applyPrefix() for DRY
- Simplified utils/index.ts barrel export
2026-01-06 12:46:20 +01:00

34 lines
854 B
TypeScript

/**
* Standardized timeout constants for e2e tests.
* Use these to ensure consistent timeout handling across all tests.
*/
export const TIMEOUTS = {
/** Standard wait for dialogs to appear/disappear */
DIALOG: 5000,
/** Standard wait for navigation changes */
NAVIGATION: 30000,
/** Wait for sync operations to complete */
SYNC: 30000,
/** Maximum wait for scheduled reminders to trigger */
SCHEDULE_MAX: 60000,
/** Wait for tasks to become visible */
TASK_VISIBLE: 10000,
/** Wait for UI animations to complete */
ANIMATION: 500,
/** Wait for Angular stability after state changes */
ANGULAR_STABILITY: 3000,
/** Wait for elements to be enabled/clickable */
ELEMENT_ENABLED: 5000,
/** Extended timeout for complex operations */
EXTENDED: 20000,
} as const;
export type TimeoutKey = keyof typeof TIMEOUTS;