> job-tracker-ui@0.1.0 test > jest --runInBand job-export-lifetime.test.tsx FAIL src/job-export-lifetime.test.tsx (10.566 s) ● en conversion distinguishes zero, one and multiple rows Unable to find an element with the text: Converted 1 row to import JSON.. 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

Import / Export

Import expects the JSON exported by this app (an array of job objects with embedded company).

Imports create new jobs from supported fields. IDs, owners, history, attachments and CV associations are not restored. Keep Settings open until the import finishes. If you leave, the import may be incomplete.

104 | await act(async () => fireEvent.change(document.querySelector('input[accept=".csv,text/csv"]')!, { target: { files: [file] } })); 105 | const message = language === "en" ? `Converted ${count} ${count === 1 ? "row" : "rows"} to import JSON.` : `Konverterte ${count} ${count === 1 ? "rad" : "rader"} til import-JSON.`; > 106 | expect(await screen.findByText(message)).toBeVisible(); | ^ 107 | } 108 | expect(download).toHaveBeenCalledTimes(3); expect(client.post).not.toHaveBeenCalled(); 109 | }); at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27) at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 at findByText (src/job-export-lifetime.test.tsx:106:25) ● nb conversion distinguishes zero, one and multiple rows Unable to find an element with the text: Konverterte 1 rad til import-JSON.. 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

Import / eksport

Import forventer JSON eksportert av denne appen (en matrise med jobbobjekter med innebygd selskap).

Import oppretter nye jobber fra støttede felt. ID-er, eiere, historikk, vedlegg og CV-koblinger gjenopprettes ikke. Hold Innstillinger åpent til importen er ferdig. Hvis du går ut, kan importen bli ufullstendig.

104 | await act(async () => fireEvent.change(document.querySelector('input[accept=".csv,text/csv"]')!, { target: { files: [file] } })); 105 | const message = language === "en" ? `Converted ${count} ${count === 1 ? "row" : "rows"} to import JSON.` : `Konverterte ${count} ${count === 1 ? "rad" : "rader"} til import-JSON.`; > 106 | expect(await screen.findByText(message)).toBeVisible(); | ^ 107 | } 108 | expect(download).toHaveBeenCalledTimes(3); expect(client.post).not.toHaveBeenCalled(); 109 | }); at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27) at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 at findByText (src/job-export-lifetime.test.tsx:106:25) Test Suites: 1 failed, 1 total Tests: 2 failed, 14 passed, 16 total Snapshots: 0 total Time: 11.391 s Ran all test suites matching job-export-lifetime.test.tsx.