fix: issues identified by sonarqube #182
Annotations
3 errors
Failed Test: Error handling Error getting user Should show error message:
cypress/e2e/scheduling.cy.js#L1
Error handling Error getting user Should show error message: CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `getUser`. No request ever occurred.
https://on.cypress.io/wait
at cypressErr (http://localhost:5173/__cypress/runner/cypress_runner.js:76101:18)
at Object.errByPath (http://localhost:5173/__cypress/runner/cypress_runner.js:76155:10)
at checkForXhr (http://localhost:5173/__cypress/runner/cypress_runner.js:135395:84)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:135421:28)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise.attempt.Promise.try (http://localhost:5173/__cypress/runner/cypress_runner.js:4315:29)
at whenStable (http://localhost:5173/__cypress/runner/cypress_runner.js:143797:68)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:143738:14)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:5173/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:5173/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:5173/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:5173/__cypress/runner/cypress_runner.js:1701:18)
at Promise._fulfill (http://localhost:5173/__cypress/runner/cypress_runner.js:1645:18)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:11:9) - CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `getUser`. No request ever occurred.
https://on.cypress.io/wait
at cypressErr (http://localhost:5173/__cypress/runner/cypress_runner.js:76101:18)
at Object.errByPath (http://localhost:5173/__cypress/runner/cypress_runner.js:76155:10)
at checkForXhr (http://localhost:5173/__cypress/runner/cypress_runner.js:135395:84)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:135421:28)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise.attempt.Promise.try (http://localhost:5173/__cypress/runner/cypress_runner.js:4315:29)
at whenStable (http://localhost:5173/__cypress/runner/cypress_runner.js:143797:68)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:143738:14)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:5173/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:5173/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:5173/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:5173/__cypress/runner/cypress_runner.js:1701:18)
at Promise._fulfill (http://localhost:5173/__cypress/runner/cypress_runner.js:1645:18)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:11:9)
|
Failed Test: Scheduling page Visit scheduling page and schedule appointment Check simple schedule flow:
cypress/e2e/scheduling.cy.js#L1
Scheduling page Visit scheduling page and schedule appointment Check simple schedule flow: CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `getAvailable`. No request ever occurred.
https://on.cypress.io/wait
at cypressErr (http://localhost:5173/__cypress/runner/cypress_runner.js:76101:18)
at Object.errByPath (http://localhost:5173/__cypress/runner/cypress_runner.js:76155:10)
at checkForXhr (http://localhost:5173/__cypress/runner/cypress_runner.js:135395:84)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:135421:28)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise.attempt.Promise.try (http://localhost:5173/__cypress/runner/cypress_runner.js:4315:29)
at whenStable (http://localhost:5173/__cypress/runner/cypress_runner.js:143797:68)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:143738:14)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:5173/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:5173/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:5173/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:5173/__cypress/runner/cypress_runner.js:1701:18)
at Promise._fulfill (http://localhost:5173/__cypress/runner/cypress_runner.js:1645:18)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:33:9) - CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `getAvailable`. No request ever occurred.
https://on.cypress.io/wait
at cypressErr (http://localhost:5173/__cypress/runner/cypress_runner.js:76101:18)
at Object.errByPath (http://localhost:5173/__cypress/runner/cypress_runner.js:76155:10)
at checkForXhr (http://localhost:5173/__cypress/runner/cypress_runner.js:135395:84)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:135421:28)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise.attempt.Promise.try (http://localhost:5173/__cypress/runner/cypress_runner.js:4315:29)
at whenStable (http://localhost:5173/__cypress/runner/cypress_runner.js:143797:68)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:143738:14)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:5173/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:5173/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:5173/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:5173/__cypress/runner/cypress_runner.js:1701:18)
at Promise._fulfill (http://localhost:5173/__cypress/runner/cypress_runner.js:1645:18)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:33:9)
|
Failed Test: Scheduling page Error creating appointment should show an error message:
cypress/e2e/scheduling.cy.js#L1
Scheduling page Error creating appointment should show an error message: CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `getEvent`. No request ever occurred.
https://on.cypress.io/wait
at cypressErr (http://localhost:5173/__cypress/runner/cypress_runner.js:76101:18)
at Object.errByPath (http://localhost:5173/__cypress/runner/cypress_runner.js:76155:10)
at checkForXhr (http://localhost:5173/__cypress/runner/cypress_runner.js:135395:84)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:135421:28)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise.attempt.Promise.try (http://localhost:5173/__cypress/runner/cypress_runner.js:4315:29)
at whenStable (http://localhost:5173/__cypress/runner/cypress_runner.js:143797:68)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:143738:14)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:5173/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:5173/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:5173/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:5173/__cypress/runner/cypress_runner.js:1701:18)
at Promise._fulfill (http://localhost:5173/__cypress/runner/cypress_runner.js:1645:18)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:54:9) - CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `getEvent`. No request ever occurred.
https://on.cypress.io/wait
at cypressErr (http://localhost:5173/__cypress/runner/cypress_runner.js:76101:18)
at Object.errByPath (http://localhost:5173/__cypress/runner/cypress_runner.js:76155:10)
at checkForXhr (http://localhost:5173/__cypress/runner/cypress_runner.js:135395:84)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:135421:28)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise.attempt.Promise.try (http://localhost:5173/__cypress/runner/cypress_runner.js:4315:29)
at whenStable (http://localhost:5173/__cypress/runner/cypress_runner.js:143797:68)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:143738:14)
at tryCatcher (http://localhost:5173/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:5173/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:5173/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:5173/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:5173/__cypress/runner/cypress_runner.js:1701:18)
at Promise._fulfill (http://localhost:5173/__cypress/runner/cypress_runner.js:1645:18)
at <unknown> (http://localhost:5173/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:54:9)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Upload Cypress screenshots
|
332 KB |
|