{"numFailedTestSuites":1,"numFailedTests":6,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":20,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":26,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1794926573004,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":807,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["TestingLibraryElementError: Unable to find an accessible element with the role \"dialog\" and name \"Slette forberedelseselement?\"\n\nHere are the accessible roles:\n\n presentation:\n\n Name \"\":\n \u001b[36m
\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Delete preparation item?\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Delete preparation item?\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n region:\n\n Name \"Delete preparation item?\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n alert:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Avbryt\":\n \u001b[36m\u001b[39m\n\n Name \"Delete\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m
window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));\n > 78 | expect(screen.getByRole('dialog', { name: translations[to].interviewPrepDeleteTitle })).toBe(dialog);\n | ^\n 79 | expect(dialog).toHaveAccessibleDescription(translations[to].interviewPrepDeleteMessage.replace('{title}', 'Funding history'));\n 80 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).endsWith('/interview-prep'))).toHaveLength(1);\n 81 | expect(mockedApi.delete).not.toHaveBeenCalled();\n\n at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)\n at node_modules/@testing-library/dom/dist/query-helpers.js:76:38\n at node_modules/@testing-library/dom/dist/query-helpers.js:52:17\n at node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at getByRole (src/interview-prep.test.tsx:78:17)\n\n ● pending preparation deletion follows nb without a preparation reload or answer loss\n\n TestingLibraryElementError: Unable to find an accessible element with the role \"dialog\" and name \"Delete preparation item?\"\n\n Here are the accessible roles:\n\n presentation:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Slette forberedelseselement?\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Slette forberedelseselement?\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n region:\n\n Name \"Slette forberedelseselement?\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n alert:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Cancel\":\n \u001b[36m\u001b[39m\n\n Name \"Slett\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n\n Ignored nodes: comments, script, style\n \u001b[36m\u001b[39m\n \u001b[36m
window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));\n > 78 | expect(screen.getByRole('dialog', { name: translations[to].interviewPrepDeleteTitle })).toBe(dialog);\n | ^\n 79 | expect(dialog).toHaveAccessibleDescription(translations[to].interviewPrepDeleteMessage.replace('{title}', 'Funding history'));\n 80 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).endsWith('/interview-prep'))).toHaveLength(1);\n 81 | expect(mockedApi.delete).not.toHaveBeenCalled();\n\n at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)\n at node_modules/@testing-library/dom/dist/query-helpers.js:76:38\n at node_modules/@testing-library/dom/dist/query-helpers.js:52:17\n at node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at getByRole (src/interview-prep.test.tsx:78:17)\n\n ● visible preparation read error follows en without another preparation request\n\n expect(received).toHaveLength(expected)\n\n Expected length: 1\n Received length: 2\n Received array: [[\"/jobapplications/7/interview-prep\"], [\"/jobapplications/7/interview-prep\"]]\n\n 102 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));\n 103 | expect(await screen.findByText(translations[to].interviewPrepLoadFailed)).toBeVisible();\n > 104 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).endsWith('/interview-prep'))).toHaveLength(1);\n | ^\n 105 | expect(mockedApi.post).not.toHaveBeenCalled();\n 106 | expect(mockedApi.patch).not.toHaveBeenCalled();\n 107 | expect(mockedApi.delete).not.toHaveBeenCalled();\n\n at toHaveLength (src/interview-prep.test.tsx:104:95)\n\n ● visible preparation read error follows nb without another preparation request\n\n expect(received).toHaveLength(expected)\n\n Expected length: 1\n Received length: 2\n Received array: [[\"/jobapplications/7/interview-prep\"], [\"/jobapplications/7/interview-prep\"]]\n\n 102 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));\n 103 | expect(await screen.findByText(translations[to].interviewPrepLoadFailed)).toBeVisible();\n > 104 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).endsWith('/interview-prep'))).toHaveLength(1);\n | ^\n 105 | expect(mockedApi.post).not.toHaveBeenCalled();\n 106 | expect(mockedApi.patch).not.toHaveBeenCalled();\n 107 | expect(mockedApi.delete).not.toHaveBeenCalled();\n\n at toHaveLength (src/interview-prep.test.tsx:104:95)\n\n ● visible preparation mutation error follows en without clearing the failure through a reload\n\n Unable to find an element with the text: Kunne ikke oppdatere intervjuforberedelsen.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.\n\n Ignored nodes: comments, script, style\n \u001b[36m\u001b[39m\n \u001b[36m
window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));\n > 122 | expect(await screen.findByText(translations[to].interviewPrepUpdateFailed)).toBeVisible();\n | ^\n 123 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).endsWith('/interview-prep'))).toHaveLength(1);\n 124 | expect(mockedApi.post).toHaveBeenCalledTimes(1);\n 125 | expect(mockedApi.patch).not.toHaveBeenCalled();\n\n at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)\n at node_modules/@testing-library/dom/dist/query-helpers.js:86:33\n at findByText (src/interview-prep.test.tsx:122:25)\n\n ● visible preparation mutation error follows nb without clearing the failure through a reload\n\n Unable to find an element with the text: Could not update interview preparation.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.\n\n Ignored nodes: comments, script, style\n \u001b[36m\u001b[39m\n \u001b[36m