mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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
34 lines
854 B
TypeScript
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;
|