Add Cypress E2E tests for Home, Task, and Notes management#46
Conversation
Agent-Logs-Url: https://github.com/RMCampos/tasknote/sessions/b58034df-7cc2-4f3b-aebb-6ff9b948d992 Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com>
|
@copilot I see failing tests when I run locally:
|
Agent-Logs-Url: https://github.com/RMCampos/tasknote/sessions/05bf3f86-5dda-4c1a-9f2b-dc1f0e38c9f3 Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com>
The root cause was that Fixed in commit |
|
@copilot I still have one failing test: Notes Management
|
…ondition Agent-Logs-Url: https://github.com/RMCampos/tasknote/sessions/a78336f4-bd41-4819-a848-79aa6a4f8ed7 Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com>
Fixed in commit
Fix: removed the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot now I see this one failing: Task Management
|
…ce condition Agent-Logs-Url: https://github.com/RMCampos/tasknote/sessions/28155c26-3eaf-46d7-a749-74eff1bc217b Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com>
Fixed in commit Fix: removed both |
|
@copilot why interceptors are needed, if the tests requires the app to be running? Could it use the real services and requests instead? |
The interceptors are intentional and serve three purposes:
If you want true integration tests that hit a live backend, those would typically be a separate test suite (e.g., running against a Docker Compose stack) rather than replacing the existing Cypress specs. The current specs are unit-style E2E tests focused on frontend behavior. |
Adds comprehensive E2E test coverage for the three core authenticated flows missing from the test suite: home page filtering, task CRUD, and notes CRUD.
New test specs
cypress/e2e/home.cy.tscypress/e2e/tasks.cy.ts/homeredirect), API errorDELETE /rest/tasks/:idcypress/e2e/notes.cy.ts/homeredirect), API errorDELETE /rest/notes/:idviadata-testiddropdownPUT /rest/notes/:id/shareandPUT /rest/notes/:id/unshareApproach
All specs follow the pattern established in
auth.cy.ts:cy.interceptstubs every API call (token refresh, tasks, notes, tags), andonBeforeLoadseeds localStorage with the auth token and user data before the page boots.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
download.cypress.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node dist/index.js --exec install(dns block)If you need me to access, download, or install something from one of these locations, you can either: