Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sonarqube issues #155

Merged
merged 25 commits into from
Oct 4, 2024
Merged

fix: sonarqube issues #155

merged 25 commits into from
Oct 4, 2024

Conversation

cgawron
Copy link
Member

@cgawron cgawron commented Sep 30, 2024

  • remove unused imports
  • remove void casts
  • do not use index as key in lists

- remove unused imports
- remove void casts
- do not use index as key in lists
@@ -338,7 +338,7 @@
google_tokens[key] = <string>token.tokens[key];
}
});
void UserModel.findOneAndUpdate({ _id: user }, { google_tokens }, { new: true })
UserModel.findOneAndUpdate({ _id: user }, { google_tokens }, { new: true })

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.

Copilot Autofix AI about 1 month ago

To fix the problem, we need to ensure that the user input is properly sanitized before being used in the database query. One way to achieve this is by using the $eq operator to ensure that the user input is interpreted as a literal value. Additionally, we should validate that the user input is a string and a valid ObjectId.

  1. Modify the saveTokens function to use the $eq operator in the MongoDB query.
  2. Ensure that the user input is a string and a valid ObjectId before using it in the query.
Suggested changeset 1
backend/src/controller/google_controller.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/backend/src/controller/google_controller.ts b/backend/src/controller/google_controller.ts
--- a/backend/src/controller/google_controller.ts
+++ b/backend/src/controller/google_controller.ts
@@ -333,3 +333,3 @@
 function saveTokens(user: string, token) {
-  if (!isValidObjectId(user)) {
+  if (typeof user !== "string" || !isValidObjectId(user)) {
     console.error('Invalid user ID');
@@ -344,3 +344,3 @@
   });
-  UserModel.findOneAndUpdate({ _id: user }, { google_tokens }, { new: true })
+  UserModel.findOneAndUpdate({ _id: { $eq: user } }, { google_tokens }, { new: true })
     .then(user => {
EOF
@@ -333,3 +333,3 @@
function saveTokens(user: string, token) {
if (!isValidObjectId(user)) {
if (typeof user !== "string" || !isValidObjectId(user)) {
console.error('Invalid user ID');
@@ -344,3 +344,3 @@
});
UserModel.findOneAndUpdate({ _id: user }, { google_tokens }, { new: true })
UserModel.findOneAndUpdate({ _id: { $eq: user } }, { google_tokens }, { new: true })
.then(user => {
Copilot is powered by AI and may make mistakes. Always verify output.
Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link

github-actions bot commented Sep 30, 2024

Test Results

2 files  2 suites   0s ⏱️
1 tests 1 ✅ 0 💤 0 ❌
2 runs  2 ✅ 0 💤 0 ❌

Results for commit 83c732a.

♻️ This comment has been updated with latest results.

- remove unused imports
- remove void casts
- do not use index as key in lists
cgawron and others added 16 commits September 30, 2024 23:49
…olled sources

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…olled sources

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
- remove unused imports
- remove void casts
- do not use index as key in lists
- migrate `ts-jest` config
- backend: update vitest & @vitest/coverage-v8
- make sure test results are available for coverage measurement
- make sure test results are available for coverage measurement
- do not automount service account token
- limit container resources
- do not automount service account token
- limit container resources
- add CTRF report as PR comment
- add CTRF report as PR comment
- add CTRF report as PR comment
Copy link

github-actions bot commented Oct 3, 2024

Test Summary - Run #157

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
25 25 0 0 0 0 0 00:00:02

🎉 All tests passed!

Github Actions Test Reporter CTRF

- add CTRF report as PR comment
- add CTRF report as PR comment
Copy link

github-actions bot commented Oct 3, 2024

Test Summary - Run #159

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
26 26 0 0 0 0 0 12:48:41

🎉 All tests passed!

Github Actions Test Reporter CTRF

- add CTRF report as PR comment
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #160

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
29 26 3 0 0 0 0 07:31:29

Some tests failed!

Name Status Failure Message
Error handling Error getting user Should show error message failed ❌ 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 (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 (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 (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)

Scheduling page Visit scheduling page and schedule appointment Check simple schedule flow failed ❌ 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 (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 (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 (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)

Scheduling page Error creating appointment should show an error message failed ❌ 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 (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 (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 (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)

Github Actions Test Reporter CTRF

- set resource limit for container
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #161

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
29 26 3 0 0 0 0 09:18:20

Some tests failed!

Name Status Failure Message
Error handling Error getting user Should show error message failed ❌ 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 (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 (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 (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)

Scheduling page Visit scheduling page and schedule appointment Check simple schedule flow failed ❌ 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 (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 (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 (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)

Scheduling page Error creating appointment should show an error message failed ❌ 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 (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 (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 (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)

Github Actions Test Reporter CTRF

- upload cypress screenshots for error analysis
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #162

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
29 26 3 0 0 0 0 09:30:52

Some tests failed!

Name Status Failure Message
Error handling Error getting user Should show error message failed ❌ 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 (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 (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 (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)

Scheduling page Visit scheduling page and schedule appointment Check simple schedule flow failed ❌ 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 (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 (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 (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)

Scheduling page Error creating appointment should show an error message failed ❌ 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 (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 (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 (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)

Github Actions Test Reporter CTRF

@cgawron cgawron merged commit b3a2e01 into main Oct 4, 2024
3 of 4 checks passed
@cgawron cgawron deleted the sonarqube branch October 4, 2024 10:03
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #163

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
29 26 3 0 0 0 0 10:05:20

Some tests failed!

Name Status Failure Message
Error handling Error getting user Should show error message failed ❌ 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 (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 (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 (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)

Scheduling page Visit scheduling page and schedule appointment Check simple schedule flow failed ❌ 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 (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 (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 (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)

Scheduling page Error creating appointment should show an error message failed ❌ 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 (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 (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 (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)

Github Actions Test Reporter CTRF

Copy link

github-actions bot commented Oct 8, 2024

🎉 This PR is included in version 1.7.11 🎉

The release is available on [email protected]

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Oct 8, 2024

🎉 This PR is included in version 1.6.4 🎉

The release is available on [email protected]

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant