> job-tracker-ui@0.1.0 test > jest --runInBand date-picker-localisation.test.tsx FAIL src/date-picker-localisation.test.tsx ● shared widget controls follow live UI language without losing selection or dark theme TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Åpne" Here are the accessible roles: textbox: Name "Unsaved title": -------------------------------------------------- button: Name "Bokmål":
23 . 11 . 2026
); > 37 | expect(screen.getByRole("button", { name: "Åpne" })).toBeInTheDocument(); | ^ 38 | expect(screen.getByRole("button", { name: "Tøm" })).toBeInTheDocument(); 39 | const occupation = screen.getByRole("combobox", { name: "Occupation" }); 40 | expect(occupation).toHaveValue("Teacher"); 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 (src/date-picker-localisation.test.tsx:37:17) Test Suites: 1 failed, 1 total Tests: 1 failed, 2 passed, 3 total Snapshots: 0 total Time: 4.698 s Ran all test suites matching date-picker-localisation.test.tsx.