Commit Graph

14 Commits

Author SHA1 Message Date
Claude Loop
46fdc61dd9 fix: resolve API intercept alias conflicts in linkShare and subtask-duplicates
- Fix multiple cy.intercept() calls with same '@loadTasks' alias
- Replace with single regex pattern in linkShare.spec.ts and subtask-duplicates.spec.ts
- Prevents Cypress from using only the last defined intercept
- Should resolve timeouts in link sharing and subtask duplicate tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-21 06:53:25 +00:00
Claude Loop
6bc535b9bc fix: enhance API intercepts for remaining E2E test failures
- Add comprehensive API intercept patterns to linkShare.spec.ts tests
- Add missing API intercepts to project.spec.ts redirect test
- Ensure intercepts are set up before any navigation that could trigger API calls
- Cover all possible task loading endpoints: /projects/*/views/*/tasks, /projects/*/tasks, /tasks/all
2025-09-21 05:37:21 +00:00
Claude Loop
67b3aee5ea fix: add comprehensive API intercepts for E2E task loading tests
Fixes E2E test failures caused by missing API intercepts for task loading routes.
The tests were expecting `**/api/v1/projects/*/views/*/tasks**` but the application
may call different endpoints based on context:

- `**/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

Changes:
- Updated project-view-kanban.spec.ts with multiple intercept patterns
- Updated sharing/linkShare.spec.ts with multiple intercept patterns
- All intercepts use the same @loadTasks alias so cy.wait() calls work unchanged
- Maintains 30s timeout for CI reliability

This should resolve "No request ever occurred" errors and allow tests to properly
wait for task data to load regardless of which API endpoint is called.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-21 04:58:51 +00:00
Claude Loop
ad51d03024 fix: increase E2E test timeouts from 15s to 30s for CI reliability
- 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>
2025-09-21 01:22:40 +00:00
Claude Loop
00d4698f7e fix: resolve E2E test reliability issues with standardized intercepts and timeouts
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>
2025-09-21 00:54:52 +00:00
Claude Loop
b768dc51ba fix: enhance E2E test reliability for authentication, sharing, and table views
- 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>
2025-09-20 23:00:05 +00:00
Claude Loop
69b0392816 fix: improve E2E test stability for Link Share and Table View tests
- 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>
2025-09-20 19:59:38 +00:00
kolaente
a81a3ee0e5 feat!: rename right to permission (#1277) 2025-08-13 11:05:05 +02:00
kolaente
59a0b9c40d feat(auth): require auth to fetch avatars (#930) 2025-06-14 13:12:41 +00:00
Dominik Pschenitschni
4937127898 fix: cypress selector (#753) 2025-05-13 10:51:11 +00:00
kolaente
2e298ffc11 fix(i18n): adjust tests from 34780daab0 2024-05-24 15:05:09 +02:00
kolaente
d7b40f393e fix(views): redirect to project after authenticating with a link share 2024-03-19 17:38:33 +01:00
kolaente
b3a96ea251 fix(views): make link share cypress tests work again 2024-03-19 15:09:38 +01:00
kolaente
fc4676315d chore: move frontend files 2024-02-07 14:56:56 +01:00