> job-tracker-ui@0.1.0 test > jest --runInBand --watch=false --runTestsByPath src/cv-builder-page.test.tsx --testNamePattern=library identifies templates --json --outputFile=../docs/ui-modernisation/a3-cv-template-label-red.json FAIL src/cv-builder-page.test.tsx (5.367 s) ● en library identifies templates by their human label and retains an unknown legacy identifier TestingLibraryElementError: Unable to find an element with the text: Modern. 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. Ignored nodes: comments, script, style

Frontend CV

modern
EN
Public
Updated 12/10/2026 · version 2 · Frontend Engineer at Northstar
75 | renderPage(); 76 | const card = (await screen.findByText(existingCv.name)).closest('[role="link"]') as HTMLElement; > 77 | expect(within(card).getByText(language === 'nb' ? translations.nb.cvTemplateModernName : 'Modern')).toBeVisible(); | ^ 78 | const legacy = screen.getByText('Legacy CV').closest('[role="link"]') as HTMLElement; 79 | expect(within(legacy).getByText('legacy-template')).toBeVisible(); 80 | expect(mockedApi.put).not.toHaveBeenCalled(); 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 getByText (src/cv-builder-page.test.tsx:77:23) ● nb library identifies templates by their human label and retains an unknown legacy identifier TestingLibraryElementError: Unable to find an element with the text: Moderne. 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. Ignored nodes: comments, script, style

Frontend CV

modern
EN
Offentlig
Oppdatert 12.10.2026 · versjon 2 · Frontend Engineer hos Northstar
75 | renderPage(); 76 | const card = (await screen.findByText(existingCv.name)).closest('[role="link"]') as HTMLElement; > 77 | expect(within(card).getByText(language === 'nb' ? translations.nb.cvTemplateModernName : 'Modern')).toBeVisible(); | ^ 78 | const legacy = screen.getByText('Legacy CV').closest('[role="link"]') as HTMLElement; 79 | expect(within(legacy).getByText('legacy-template')).toBeVisible(); 80 | expect(mockedApi.put).not.toHaveBeenCalled(); 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 getByText (src/cv-builder-page.test.tsx:77:23) Test Suites: 1 failed, 1 total Tests: 2 failed, 22 skipped, 24 total Snapshots: 0 total Time: 7.193 s, estimated 13 s Ran all test suites within paths "src/cv-builder-page.test.tsx". Test results written to: ..\docs\ui-modernisation\a3-cv-template-label-red.json