Applies comprehensive API intercepts to all remaining E2E test files that use
loadTasks to resolve "No request ever occurred" failures. The application may
call different task loading endpoints based on context, so all tests now
intercept all possible patterns:
- `**/api/v1/projects/*/views/*/tasks**` - When viewId is provided
- `**/api/v1/projects/*/tasks**` - When viewId is missing (fallback)
- `**/api/v1/tasks/all**` - When projectId is null/undefined
Files updated:
- cypress/e2e/project/project-view-list.spec.ts - 3 test cases fixed
- cypress/e2e/project/project-view-table.spec.ts - 3 test cases fixed
- cypress/e2e/task/task.spec.ts - 9 test cases fixed
- cypress/e2e/task/overview.spec.ts - 2 test cases fixed
- cypress/e2e/task/subtask-duplicates.spec.ts - 1 test case fixed
All intercepts use the same @loadTasks alias so existing cy.wait() calls
work unchanged. Maintains 30s timeout for CI reliability.
This should resolve the majority of E2E test "loadTasks" timeout failures
by ensuring tests properly wait for task data regardless of which API
endpoint the application calls based on the current context.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fix remaining 15s timeouts in project-view-table.spec.ts
- Update 5s timeout to 30s in project-view-kanban.spec.ts
- Ensures consistent timeout handling across all E2E tests for CI stability
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Update cy.wait timeout values across multiple E2E test files
- Increase timeouts for loadTasks API intercepts to handle slower CI environments
- Update createTask timeout in overview tests
- Affects: project-view-table, linkShare, subtask-duplicates, task overview tests
This addresses CI timeout issues where requests take longer than 15 seconds.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit fixes several critical issues causing E2E test failures and timeouts:
**Authentication fixes:**
- Remove cross-spec session caching to prevent state conflicts in parallel test execution
- Changed `login(user, true)` to `login(user, false)` in createFakeUserAndLogin()
**API intercept standardization:**
- Standardized all API intercept patterns to use `/api/v1/` prefix consistently
- Fixed mixed patterns: `**/projects/*/views/*/tasks**` → `**/api/v1/projects/*/views/*/tasks**`
- Added explicit GET/PUT method specifications to prevent intercept misses
**Timeout reduction:**
- Reduced excessive timeouts from 60-120s to 30-60s in cypress.config.ts
- Reduced test-level timeouts from 30s to 15s where appropriate
- Changed defaultCommandTimeout: 60000 → 30000, requestTimeout: 120000 → 60000
**Test isolation improvements:**
- Added proper beforeEach cleanup in overview.spec.ts to prevent data leakage
- Removed redundant individual truncate() calls in favor of systematic cleanup
**Files changed:**
- cypress.config.ts: Reduced global timeout values
- cypress/support/authenticateUser.ts: Fixed cross-spec session caching
- cypress/e2e/project/*.spec.ts: Standardized intercept patterns, reduced timeouts
- cypress/e2e/task/*.spec.ts: Added cleanup hooks, standardized intercepts
- cypress/e2e/sharing/linkShare.spec.ts: Fixed intercept patterns and timeouts
These changes address the root causes of the 25-minute timeouts and "3 failed" issues
seen in CI, improving test reliability and execution speed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Replace inconsistent Cypress.env('API_URL') + path patterns with wildcard
patterns (**/path) for improved reliability in CI environments.
Issues addressed:
- API intercept timeouts for loadTasks and loadBuckets routes
- Inconsistent URL matching causing cy.wait() failures
- Environment variable dependency reducing test reliability
Changes made:
- project-view-table.spec.ts: All 3 tests now use wildcard patterns
- project-view-list.spec.ts: Updated static and dynamic project patterns
- project-view-kanban.spec.ts: Standardized 3 loadTasks intercepts
- project.spec.ts: Fixed loadBuckets wildcard pattern
- task/overview.spec.ts: Updated dynamic project ID patterns
Expected impact: Reduced E2E test timeout failures in CI environment.
All lint, typecheck, and unit tests (690/690) continue to pass.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Improved login tests with better visibility checks and API intercepts
- Enhanced linkShare tests with explicit task loading waits and timeouts
- Strengthened table view tests with extended timeouts and proper element visibility
- Added consistent API intercepts for task loading across all affected tests
- Enhanced error handling and retry logic for flaky operations
These changes specifically target the problematic test files identified in
the CI failures: authentication flows, link sharing functionality, and
table view interactions.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fix Link Share tests timing issues by adding proper wait conditions and visibility checks
- Fix Table View tests by adding API intercepts and improving element selection
- Add .should('be.visible') checks to prevent race conditions
- Use more specific selectors like 'table.table tbody' for better reliability
- Ensure tests wait for redirects and content loading before assertions
These changes should resolve the timeout issues that were causing CI jobs to hang
for 20+ minutes by ensuring proper synchronization between test steps.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added cy.intercept for /projects/1/views/3/tasks** API calls
- Added cy.wait('@loadTasks') to ensure tasks are loaded before assertions
- This should help diagnose and fix timing issues with table view tests
- Follows similar pattern used in other working E2E tests
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added explicit project_id: 1 to TaskFactory.create() calls in table view tests
- Ensures tasks are properly associated with the correct project for table view testing
- Follows same pattern as working list view tests
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>