splitting up more #19695
frontend-unit-tests.yml
on: push
CodeQL
4m 24s
Typechecking and linting
2m 10s
Testing
4m 25s
Annotations
13 errors
CodeQL
Canceling since a higher priority waiting request for 'Frontend Tests-refs/heads/refactor--replace-AltinnConfirmDialog-with-studio-components' exists
|
CodeQL
The operation was canceled.
|
Testing
Canceling since a higher priority waiting request for 'Frontend Tests-refs/heads/refactor--replace-AltinnConfirmDialog-with-studio-components' exists
|
DeployDropdown › renders image options:
undefined#L1
TypeError: Cannot read properties of undefined (reading 'value')
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:110:38
at Array.reduce (<anonymous>)
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:109:49
at commitHookEffectListMount (../node_modules/react-dom/cjs/react-dom.development.js:3930:112)
at commitPassiveMountOnFiber (../node_modules/react-dom/cjs/react-dom.development.js:4143:1573)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:869)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
at ../node_modules/jsdom/lib/jsdom/browser/Window.js:554:9
|
DeployDropdown › renders image options:
frontend/app-development/features/appPublish/components/DeployDropdown/DeployDropdown.test.tsx#L116
TestingLibraryElementError: Unable to find a label with the text of: [mockedText(app_deployment.choose_version)]
Ignored nodes: comments, script, style
<body>
<div />
</body>
at Object.getElementError (../node_modules/@testing-library/dom/dist/config.js:37:19)
at getAllByLabelText (../node_modules/@testing-library/dom/dist/queries/label-text.js:111:38)
at ../node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at ../node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByLabelText (app-development/features/appPublish/components/DeployDropdown/DeployDropdown.test.tsx:116:27)
|
DeployDropdown › renders image options:
frontend/libs/studio-components/src/components/StudioCombobox/StudioCombobox.tsx#L9
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'value')]
at reportException (../node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (../node_modules/react-dom/cjs/react-dom.development.js:750:45)
at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:771:126)
at reportUncaughtErrorInDEV (../node_modules/react-dom/cjs/react-dom.development.js:3918:2)
at captureCommitPhaseError (../node_modules/react-dom/cjs/react-dom.development.js:4644:1132)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:957)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
at ../node_modules/jsdom/lib/jsdom/browser/Window.js:554:9
at AsyncResource.runMicrotask (../node:internal/process/task_queues:137:8) {
detail: TypeError: Cannot read properties of undefined (reading 'value')
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:110:38
at Array.reduce (<anonymous>)
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:109:49
at commitHookEffectListMount (../node_modules/react-dom/cjs/react-dom.development.js:3930:112)
at commitPassiveMountOnFiber (../node_modules/react-dom/cjs/react-dom.development.js:4143:1573)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:869)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
a
|
DeployDropdown › selects default image option:
undefined#L1
TypeError: Cannot read properties of undefined (reading 'value')
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:110:38
at Array.reduce (<anonymous>)
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:109:49
at commitHookEffectListMount (../node_modules/react-dom/cjs/react-dom.development.js:3930:112)
at commitPassiveMountOnFiber (../node_modules/react-dom/cjs/react-dom.development.js:4143:1573)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:869)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
at ../node_modules/jsdom/lib/jsdom/browser/Window.js:554:9
|
DeployDropdown › selects default image option:
frontend/app-development/features/appPublish/components/DeployDropdown/DeployDropdown.test.tsx#L129
TestingLibraryElementError: Unable to find an accessible element with the role "combobox"
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
Ignored nodes: comments, script, style
<body>
<div />
</body>
at Object.getElementError (../node_modules/@testing-library/dom/dist/config.js:37:19)
at ../node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at ../node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at ../node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByRole (app-development/features/appPublish/components/DeployDropdown/DeployDropdown.test.tsx:129:19)
|
DeployDropdown › selects default image option:
frontend/libs/studio-components/src/components/StudioCombobox/StudioCombobox.tsx#L9
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'value')]
at reportException (../node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (../node_modules/react-dom/cjs/react-dom.development.js:750:45)
at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:771:126)
at reportUncaughtErrorInDEV (../node_modules/react-dom/cjs/react-dom.development.js:3918:2)
at captureCommitPhaseError (../node_modules/react-dom/cjs/react-dom.development.js:4644:1132)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:957)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
at ../node_modules/jsdom/lib/jsdom/browser/Window.js:554:9
at AsyncResource.runMicrotask (../node:internal/process/task_queues:137:8) {
detail: TypeError: Cannot read properties of undefined (reading 'value')
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:110:38
at Array.reduce (<anonymous>)
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:109:49
at commitHookEffectListMount (../node_modules/react-dom/cjs/react-dom.development.js:3930:112)
at commitPassiveMountOnFiber (../node_modules/react-dom/cjs/react-dom.development.js:4143:1573)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:869)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
a
|
DeployDropdown › selects new image option:
undefined#L1
TypeError: Cannot read properties of undefined (reading 'value')
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:110:38
at Array.reduce (<anonymous>)
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:109:49
at commitHookEffectListMount (../node_modules/react-dom/cjs/react-dom.development.js:3930:112)
at commitPassiveMountOnFiber (../node_modules/react-dom/cjs/react-dom.development.js:4143:1573)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:869)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
at ../node_modules/jsdom/lib/jsdom/browser/Window.js:554:9
|
DeployDropdown › selects new image option:
frontend/app-development/features/appPublish/components/DeployDropdown/DeployDropdown.test.tsx#L140
TestingLibraryElementError: Unable to find a label with the text of: [mockedText(app_deployment.choose_version)]
Ignored nodes: comments, script, style
<body>
<div />
</body>
at Object.getElementError (../node_modules/@testing-library/dom/dist/config.js:37:19)
at getAllByLabelText (../node_modules/@testing-library/dom/dist/queries/label-text.js:111:38)
at ../node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at ../node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByLabelText (app-development/features/appPublish/components/DeployDropdown/DeployDropdown.test.tsx:140:27)
|
DeployDropdown › selects new image option:
frontend/libs/studio-components/src/components/StudioCombobox/StudioCombobox.tsx#L9
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'value')]
at reportException (../node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (../node_modules/react-dom/cjs/react-dom.development.js:750:45)
at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:771:126)
at reportUncaughtErrorInDEV (../node_modules/react-dom/cjs/react-dom.development.js:3918:2)
at captureCommitPhaseError (../node_modules/react-dom/cjs/react-dom.development.js:4644:1132)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:957)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
at ../node_modules/jsdom/lib/jsdom/browser/Window.js:554:9
at AsyncResource.runMicrotask (../node:internal/process/task_queues:137:8) {
detail: TypeError: Cannot read properties of undefined (reading 'value')
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:110:38
at Array.reduce (<anonymous>)
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:109:49
at commitHookEffectListMount (../node_modules/react-dom/cjs/react-dom.development.js:3930:112)
at commitPassiveMountOnFiber (../node_modules/react-dom/cjs/react-dom.development.js:4143:1573)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:869)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
a
|
DeployDropdown › shows a loding spinner when mutation is pending:
undefined#L1
TypeError: Cannot read properties of undefined (reading 'value')
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:110:38
at Array.reduce (<anonymous>)
at ../node_modules/@digdir/designsystemet-react/dist/cjs/components/form/Combobox/Combobox.js:109:49
at commitHookEffectListMount (../node_modules/react-dom/cjs/react-dom.development.js:3930:112)
at commitPassiveMountOnFiber (../node_modules/react-dom/cjs/react-dom.development.js:4143:1573)
at commitPassiveMountEffects_complete (../node_modules/react-dom/cjs/react-dom.development.js:4143:869)
at commitPassiveMountEffects_begin (../node_modules/react-dom/cjs/react-dom.development.js:4143:570)
at commitPassiveMountEffects (../node_modules/react-dom/cjs/react-dom.development.js:4143:196)
at flushPassiveEffectsImpl (../node_modules/react-dom/cjs/react-dom.development.js:4640:402)
at flushPassiveEffects (../node_modules/react-dom/cjs/react-dom.development.js:4635:371)
at commitRootImpl (../node_modules/react-dom/cjs/react-dom.development.js:4625:82)
at commitRoot (../node_modules/react-dom/cjs/react-dom.development.js:4549:209)
at performSyncWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4444:97)
at flushSyncCallbacks (../node_modules/react-dom/cjs/react-dom.development.js:2155:108)
at ../node_modules/react-dom/cjs/react-dom.development.js:4323:1
at invokeTheCallbackFunction (../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26)
at ../node_modules/jsdom/lib/jsdom/browser/Window.js:554:9
|