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: issues identified by sonarqube #157

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

fix: issues identified by sonarqube #157

wants to merge 19 commits into from

Conversation

cgawron
Copy link
Member

@cgawron cgawron commented Oct 4, 2024

  • increase memory limit for backend
  • use snackbar for error messages in client

- increase memory limit for backend
- use snackbar for error messages in client
Copy link

github-actions bot commented Oct 4, 2024

Test Results

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

Results for commit 0b8504b.

♻️ This comment has been updated with latest results.

- update dependencies & `yarn.lock`
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #180

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

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:53:9)

Github Actions Test Reporter CTRF

- fix basic test cases
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #181

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

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

- fix environment variables for tests
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #182

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

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: `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 (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

- since authentication is handled externally, the `password` attribute is no longer needed
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #183

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
29 27 2 0 0 0 0 13:55:08

Some tests failed!

Name Status Failure Message
Scheduling page Visit scheduling page and schedule appointment Check simple schedule flow failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find content: '11:00' but never did. at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:36:9)
Scheduling page Error creating appointment should show an error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find content: '11:00' but never did. at Context.eval (webpack://client/./cypress/e2e/scheduling.cy.js:57:9)

Github Actions Test Reporter CTRF

@cgawron cgawron changed the title fix: resource limits fix: issues identified by sonarqube Oct 4, 2024
- set time zone to `Europe/Berlin` for cypress tests
Copy link

github-actions bot commented Oct 4, 2024

Test Summary - Run #184

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
29 29 0 0 0 0 0 14:08:05

🎉 All tests passed!

Github Actions Test Reporter CTRF

- fix configuration to enable coverage in cypress tests
Copy link

github-actions bot commented Oct 5, 2024

Test Summary - Run #185

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
29 29 0 0 0 0 0 09:24:51

🎉 All tests passed!

Github Actions Test Reporter CTRF

- add additional cypress tests
Copy link

github-actions bot commented Oct 5, 2024

Test Summary - Run #186

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
33 32 1 0 0 0 0 15:59:35

Some tests failed!

Name Status Failure Message
Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- upgrade axios
- remove node-sass
Copy link

github-actions bot commented Oct 5, 2024

Test Summary - Run #187

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
33 32 1 0 0 0 0 16:13:56

Some tests failed!

Name Status Failure Message
Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- fixed various issues spotted by sonarqube
Copy link

github-actions bot commented Oct 6, 2024

Test Summary - Run #188

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
33 32 1 0 0 0 0 16:50:14

Some tests failed!

Name Status Failure Message
Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- fixed various issues spotted by sonarqube
Copy link

github-actions bot commented Oct 7, 2024

Test Summary - Run #189

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
33 32 1 0 0 0 0 08:09:14

Some tests failed!

Name Status Failure Message
Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- fixed various issues spotted by sonarqube
- remove sonarqube token from properties file (will be provided via GH secret)
- add additional coverage paths
Copy link

github-actions bot commented Oct 7, 2024

Test Summary - Run #190

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
33 32 1 0 0 0 0 08:32:53

Some tests failed!

Name Status Failure Message
Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- remove (unused) logic to skip steps
- add cypress tests to improve coverage
Copy link

github-actions bot commented Oct 7, 2024

Test Summary - Run #191

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
34 32 2 0 0 0 0 08:59:21

Some tests failed!

Name Status Failure Message
Main page Visit app main page & edit event type Check simple schedule flow failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `[data-testid="edit-event-button"]`, but never found it. at Context.eval (webpack://client/./cypress/e2e/app.cy.js:50:9)
Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- exclude backend from coverage for now
Copy link

github-actions bot commented Oct 7, 2024

Test Summary - Run #192

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
34 32 2 0 0 0 0 09:29:09

Some tests failed!

Name Status Failure Message
Main page Visit app main page & edit event type Check simple schedule flow failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `[data-testid="edit-event-button"]`, but never found it. at Context.eval (webpack://client/./cypress/e2e/app.cy.js:50:9)
Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- add cypress tests to improve coverage
- remove unused `ChooseTime` component
Copy link

github-actions bot commented Oct 7, 2024

Test Summary - Run #193

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
34 32 2 0 0 0 0 10:12:40

Some tests failed!

Name Status Failure Message
Main page Visit app main page & edit event type Check simple schedule flow failed ❌ TypeError: The following error originated from your application code, not from Cypress.

Cannot read properties of undefined (reading '0')

When Cypress detects uncaught errors originating from your application it will automatically fail the current test.

This behavior is configurable, and you can choose to turn this off by listening to the uncaught:exception event.

https://on.cypress.io/uncaught-exception-from-application
at (http://localhost:5173/src/components/EventForm.tsx:3333:38)
at Array.map ()
at EventForm (http://localhost:5173/src/components/EventForm.tsx:3328:41)
at renderWithHooks (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=a6b4d793:11548:26)
at updateFunctionComponent (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=a6b4d793:14582:28)
at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=a6b4d793:15924:22)
at HTMLUnknownElement.callCallback2 (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=a6b4d793:3674:22)
at Object.invokeGuardedCallbackDev (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=a6b4d793:3699:24)
at invokeGuardedCallback (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=a6b4d793:3733:39)
at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=a6b4d793:19765:15)

Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

- exclude client helper services from coverage for now
Copy link

github-actions bot commented Oct 7, 2024

Test Summary - Run #194

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
34 32 2 0 0 0 0 10:19:40

Some tests failed!

Name Status Failure Message
Main page Visit app main page & edit event type Check simple schedule flow failed ❌ TypeError: The following error originated from your application code, not from Cypress.

Cannot read properties of undefined (reading '0')

When Cypress detects uncaught errors originating from your application it will automatically fail the current test.

This behavior is configurable, and you can choose to turn this off by listening to the uncaught:exception event.

https://on.cypress.io/uncaught-exception-from-application
at (http://localhost:5173/src/components/EventForm.tsx:3333:38)
at Array.map ()
at EventForm (http://localhost:5173/src/components/EventForm.tsx:3328:41)
at renderWithHooks (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=1960eea7:11548:26)
at updateFunctionComponent (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=1960eea7:14582:28)
at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=1960eea7:15924:22)
at HTMLUnknownElement.callCallback2 (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=1960eea7:3674:22)
at Object.invokeGuardedCallbackDev (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=1960eea7:3699:24)
at invokeGuardedCallback (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=1960eea7:3733:39)
at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-7DPWZPVU.js?v=1960eea7:19765:15)

Planning page Error getting user Should show error message failed ❌ AssertionError: Timed out retrying after 4000ms: Expected to find element: `.error`, but never found it. at Context.eval (webpack://client/./cypress/e2e/planning.cy.js:12:9)

Github Actions Test Reporter CTRF

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

Successfully merging this pull request may close these issues.

1 participant