Closed RobinMeow closed 5 months ago
[x] do not use deleteTestUser at end of tests to clean up state (it should also not use the ui with cy.)
[x] use cy.task('db:reset') to clean up state before tests when required
[x] do not use createTestUser before tests to login (its using the UI as well, which should not be)
[x] use minimal login implementation as command (using fetch and storing the response (access token) into localStorage
known issue at Cypress https://github.com/cypress-io/cypress/issues/25397#issuecomment-2030468503
workaround as descibred in the cypress comment. (triggering a fetch to the spa, before all tests run)
[x] do not use deleteTestUser at end of tests to clean up state (it should also not use the ui with cy.)
[x] use cy.task('db:reset') to clean up state before tests when required
[x] do not use createTestUser before tests to login (its using the UI as well, which should not be)
[x] use minimal login implementation as command (using fetch and storing the response (access token) into localStorage
known issue at Cypress https://github.com/cypress-io/cypress/issues/25397#issuecomment-2030468503
workaround as descibred in the cypress comment. (triggering a fetch to the spa, before all tests run)