Update PaymentForm.spec.ts #242
codecov.yml
on: push
Run backend tests and collect coverage
36s
Run frontend customer tests and collect coverage
19s
Annotations
6 errors
Unhandled error:
frontend/customer/src/components/PaymentForm.vue#L110
TypeError: Cannot read properties of undefined (reading 'push')
❯ $setup.pendingBooking.$setup.isPaid.onClick._cache.<computed>._cache.<computed> src/components/PaymentForm.vue:110:35
❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19
❯ Object.callWithAsyncErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:207:17
❯ HTMLButtonElement.invoker node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:665:17
❯ HTMLButtonElement.callTheUserObjectsOperation node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25
❯ invokeEventListeners node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3
❯ HTMLButtonElementImpl._dispatch node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9
❯ HTMLButtonElementImpl.dispatchEvent node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17
❯ HTMLButtonElement.dispatchEvent node_modules/.pnpm/[email protected]/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34
This error originated in "src/components/__tests__/PaymentForm.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "navigates back to home after successful payment". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
src/components/__tests__/PaymentForm.spec.ts > PaymentForm > navigates back to home after successful payment:
frontend/customer/src/components/__tests__/PaymentForm.spec.ts#L151
AssertionError: expected "spy" to be called with arguments: [ '/' ]
Received:
Number of calls: 0
❯ src/components/__tests__/PaymentForm.spec.ts:151:29
|
src/components/__tests__/WaitingTimeDisplay.spec.ts > WaitingTimeDisplay > renders waiting time and queue information correctly:
frontend/customer/src/components/__tests__/WaitingTimeDisplay.spec.ts#L69
AssertionError: expected 'Estimert ventetid90min 3 venterOppdat…' to contain '13:00:00'
Expected: "13:00:00"
Received: "Estimert ventetid90min 3 venterOppdatert 12:00:00"
❯ src/components/__tests__/WaitingTimeDisplay.spec.ts:69:28
|
src/components/__tests__/WaitingTimeDisplay.spec.ts > WaitingTimeDisplay > formats time correctly for different locales:
frontend/customer/src/components/__tests__/WaitingTimeDisplay.spec.ts#L126
AssertionError: expected 'Estimert ventetid90min 1 venterOppdat…' to contain '13:34:56'
Expected: "13:34:56"
Received: "Estimert ventetid90min 1 venterOppdatert 12:34:56"
❯ src/components/__tests__/WaitingTimeDisplay.spec.ts:126:28
|
Run frontend customer tests and collect coverage
Process completed with exit code 1.
|
Run backend tests and collect coverage
Process completed with exit code 1.
|