node : FAIL src/interview-prep.test.tsx (6.806 s)
At line:1 char:122
+ ... =$env:TEMP; node node_modules/jest/bin/jest.js --runInBand --runTests ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (FAIL src/interv...t.tsx (6.806 s):String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
  ● failed manual preparation add retains en question and answers for explicit retry

    TestingLibraryElementError: Unable to find a label with the text of: Add a question, topic or note

    Ignored nodes: comments, script, style
    [36m<body>[39m
      [36m<div>[39m
        [36m<div[39m
          [33mclass[39m=[32m"MuiStack-root css-1sazv7p-MuiStack-root"[39m
        [36m>[39m
          [36m<section[39m
            [33maria-labelledby[39m=[32m"_r_2_"[39m
            [33mclass[39m=[32m"MuiBox-root css-rw0fp9"[39m
          [36m>[39m
            [36m<header[39m
              [33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
              [36m>[39m
                [36m<h3[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle 
css-uf4832-MuiTypography-root"[39m
                  [33mid[39m=[32m"_r_2_"[39m
                [36m>[39m
                  [0mInterview preparation[0m
                [36m</h3>[39m
                [36m<p[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-pageDescription 
css-1sqgc3a-MuiTypography-root"[39m
                [36m>[39m
                  [0mYour research, answers and questions. AI suggestions are only saved when you accept them.[0m
                [36m</p>[39m
              [36m</div>[39m
            [36m</header>[39m
            [36m<div[39m
              [33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
            [36m>[39m
              [36m<span[39m
                [33maria-atomic[39m=[32m"true"[39m
                [33maria-live[39m=[32m"polite"[39m
                [33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
                [33mrole[39m=[32m"status"[39m
              [36m/>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 
MuiAlert-root MuiAlert-colorError MuiAlert-standardError MuiAlert-standard css-lf9xu2-MuiPaper-root-MuiAlert-root"[39m
                [33mrole[39m=[32m"alert"[39m
                [33mstyle[39m=[32m"--Paper-shadow: none;"[39m
              [36m>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"MuiAlert-icon css-1wrdnka-MuiAlert-icon"[39m
                [36m>[39m
                  [36m<svg[39m
                    [33maria-hidden[39m=[32m"true"[39m
                    [33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"[39m
                    [33mdata-testid[39m=[32m"ErrorOutlineIcon"[39m
                    [33mfocusable[39m=[32m"false"[39m
                    [33mviewBox[39m=[32m"0 0 24 24"[39m
                  [36m>[39m
                    [36m<path[39m
                      [33md[39m=[32m"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 
22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"[39m
                    [36m/>[39m
                  [36m</svg>[39m
                [36m</div>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"MuiAlert-message css-zioonp-MuiAlert-message"[39m
                [36m>[39m
                  [36m<p[39m
                    [33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root"[39m
                  [36m>[39m
                    [0mInterview preparation[0m
                  [36m</p>[39m
                  [36m<p[39m
                    [33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"[39m
                  [36m>[39m
                    [0mCould not update interview preparation.[0m
                  [36m</p>[39m
                [36m</div>[39m
              [36m</div>[39m
            [36m</div>[39m
          [36m</section>[39m
          [36m<section[39m
            [33maria-labelledby[39m=[32m"_r_3_"[39m
            [33mclass[39m=[32m"MuiBox-root css-rw0fp9"[39m
          [36m>[39m
            [36m<header[39m
              [33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
              [36m>[39m
                [36m<h3[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle 
css-uf4832-MuiTypography-root"[39m
                  [33mid[39m=[32m"_r_3_"[39m
                [36m>[39m
                  [0mAI interview coach[0m
                [36m</h3>[39m
                [36m<p[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-pageDescription 
css-1sqgc3a-MuiTypography-root"[39m
                [36m>[39m
                  [0mUses the linked CV, job advert and application analysis. Suggestions never overwrite your 
notes.[0m
                [36m</p>[39m
              [36m</div>[39m
            [36m</header>[39m
            [36m<div[39m
              [33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
            [36m>[39m
              [36m<span[39m
                [33maria-atomic[39m=[32m"true"[39m
                [33maria-live[39m=[32m"polite"[39m
                [33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
                [33mrole[39m=[32m"status"[39m
              [36m/>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiStack-root css-1sazv7p-MuiStack-root"[39m
              [36m>[39m
                [36m<span[39m
                  [33maria-atomic[39m=[32m"true"[39m
                  [33maria-live[39m=[32m"polite"[39m
                  [33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
                  [33mrole[39m=[32m"status"[39m
                [36m>[39m
                  [0mContent loaded.[0m
                [36m</span>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 
MuiAlert-root MuiAlert-colorSuccess MuiAlert-outlinedSuccess MuiAlert-outlined 
css-1mah8jf-MuiPaper-root-MuiAlert-root"[39m
                  [33mrole[39m=[32m"alert"[39m
                  [33mstyle[39m=[32m"--Paper-shadow: none;"[39m
                [36m>[39m
                  [36m<div[39m
                    [33mclass[39m=[32m"MuiAlert-icon css-1wrdnka-MuiAlert-icon"[39m
                  [36m>[39m
                    [36m<svg[39m
                      [33maria-hidden[39m=[32m"true"[39m
                      [33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeInherit 
css-1ckov0h-MuiSvgIcon-root"[39m
                      [33mdata-testid[39m=[32m"SuccessOutlinedIcon"[39m
                      [33mfocusable[39m=[32m"false"[39m
                      [33mviewBox[39m=[32m"0 0 24 24"[39m
                    [36m>[39m
                      [36m<path[39m
                        [33md[39m=[32m"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 
4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 
22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"[39m
                      [36m/>[39m
                    [36m</svg>[39m
                  [36m</div>[39m
                  [36m<div[39m
                    [33mclass[39m=[32m"MuiAlert-message css-zioonp-MuiAlert-message"[39m
                  [36m>[39m
                    [0mUsing[0m
                    [0m [0m
                    [36m<strong>[39m
                      [0mBackend ...

      217 |   fireEvent.click(screen.getByRole('button', { name: copy.interviewPrepAdd }));
      218 |   expect(await screen.findByText(copy.interviewPrepUpdateFailed)).toBeVisible();
    > 219 |   expect(screen.getByLabelText(copy.interviewPrepAddLabel)).toHaveValue('  Ask about shift handover  ');
          |                 ^
      220 |   expect(screen.getByRole('textbox', { name: answerName })).toHaveValue('My local STAR answer');
      221 |   expect(mockedApi.post).toHaveBeenCalledTimes(1);
      222 |   expect(mockedApi.get.mock.calls.filter(([url]) => 
String(url).endsWith('/interview-prep'))).toHaveLength(1);

      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 getByLabelText (src/interview-prep.test.tsx:219:17)

  ● failed manual preparation add retains nb question and answers for explicit retry

    TestingLibraryElementError: Unable to find a label with the text of: Legg til spørsmål, tema eller notat

    Ignored nodes: comments, script, style
    [36m<body>[39m
      [36m<div>[39m
        [36m<div[39m
          [33mclass[39m=[32m"MuiStack-root css-1sazv7p-MuiStack-root"[39m
        [36m>[39m
          [36m<section[39m
            [33maria-labelledby[39m=[32m"_r_u_"[39m
            [33mclass[39m=[32m"MuiBox-root css-rw0fp9"[39m
          [36m>[39m
            [36m<header[39m
              [33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
              [36m>[39m
                [36m<h3[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle 
css-uf4832-MuiTypography-root"[39m
                  [33mid[39m=[32m"_r_u_"[39m
                [36m>[39m
                  [0mIntervjuforberedelse[0m
                [36m</h3>[39m
                [36m<p[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-pageDescription 
css-1sqgc3a-MuiTypography-root"[39m
                [36m>[39m
                  [0mDin research, dine svar og spørsmål. AI-forslag lagres bare når du godtar dem.[0m
                [36m</p>[39m
              [36m</div>[39m
            [36m</header>[39m
            [36m<div[39m
              [33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
            [36m>[39m
              [36m<span[39m
                [33maria-atomic[39m=[32m"true"[39m
                [33maria-live[39m=[32m"polite"[39m
                [33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
                [33mrole[39m=[32m"status"[39m
              [36m/>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 
MuiAlert-root MuiAlert-colorError MuiAlert-standardError MuiAlert-standard css-lf9xu2-MuiPaper-root-MuiAlert-root"[39m
                [33mrole[39m=[32m"alert"[39m
                [33mstyle[39m=[32m"--Paper-shadow: none;"[39m
              [36m>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"MuiAlert-icon css-1wrdnka-MuiAlert-icon"[39m
                [36m>[39m
                  [36m<svg[39m
                    [33maria-hidden[39m=[32m"true"[39m
                    [33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"[39m
                    [33mdata-testid[39m=[32m"ErrorOutlineIcon"[39m
                    [33mfocusable[39m=[32m"false"[39m
                    [33mviewBox[39m=[32m"0 0 24 24"[39m
                  [36m>[39m
                    [36m<path[39m
                      [33md[39m=[32m"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 
22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"[39m
                    [36m/>[39m
                  [36m</svg>[39m
                [36m</div>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"MuiAlert-message css-zioonp-MuiAlert-message"[39m
                [36m>[39m
                  [36m<p[39m
                    [33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root"[39m
                  [36m>[39m
                    [0mIntervjuforberedelse[0m
                  [36m</p>[39m
                  [36m<p[39m
                    [33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"[39m
                  [36m>[39m
                    [0mKunne ikke oppdatere intervjuforberedelsen.[0m
                  [36m</p>[39m
                [36m</div>[39m
              [36m</div>[39m
            [36m</div>[39m
          [36m</section>[39m
          [36m<section[39m
            [33maria-labelledby[39m=[32m"_r_v_"[39m
            [33mclass[39m=[32m"MuiBox-root css-rw0fp9"[39m
          [36m>[39m
            [36m<header[39m
              [33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
              [36m>[39m
                [36m<h3[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle 
css-uf4832-MuiTypography-root"[39m
                  [33mid[39m=[32m"_r_v_"[39m
                [36m>[39m
                  [0mAI-intervjutrening[0m
                [36m</h3>[39m
                [36m<p[39m
                  [33mclass[39m=[32m"MuiTypography-root MuiTypography-pageDescription 
css-1sqgc3a-MuiTypography-root"[39m
                [36m>[39m
                  [0mBruker tilknyttet CV, stillingsannonse og søknadsanalyse. Forslag overskriver aldri notatene 
dine.[0m
                [36m</p>[39m
              [36m</div>[39m
            [36m</header>[39m
            [36m<div[39m
              [33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
            [36m>[39m
              [36m<span[39m
                [33maria-atomic[39m=[32m"true"[39m
                [33maria-live[39m=[32m"polite"[39m
                [33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
                [33mrole[39m=[32m"status"[39m
              [36m/>[39m
              [36m<div[39m
                [33mclass[39m=[32m"MuiStack-root css-1sazv7p-MuiStack-root"[39m
              [36m>[39m
                [36m<span[39m
                  [33maria-atomic[39m=[32m"true"[39m
                  [33maria-live[39m=[32m"polite"[39m
                  [33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
                  [33mrole[39m=[32m"status"[39m
                [36m>[39m
                  [0mInnhold lastet.[0m
                [36m</span>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 
MuiAlert-root MuiAlert-colorSuccess MuiAlert-outlinedSuccess MuiAlert-outlined 
css-1mah8jf-MuiPaper-root-MuiAlert-root"[39m
                  [33mrole[39m=[32m"alert"[39m
                  [33mstyle[39m=[32m"--Paper-shadow: none;"[39m
                [36m>[39m
                  [36m<div[39m
                    [33mclass[39m=[32m"MuiAlert-icon css-1wrdnka-MuiAlert-icon"[39m
                  [36m>[39m
                    [36m<svg[39m
                      [33maria-hidden[39m=[32m"true"[39m
                      [33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeInherit 
css-1ckov0h-MuiSvgIcon-root"[39m
                      [33mdata-testid[39m=[32m"SuccessOutlinedIcon"[39m
                      [33mfocusable[39m=[32m"false"[39m
                      [33mviewBox[39m=[32m"0 0 24 24"[39m
                    [36m>[39m
                      [36m<path[39m
                        [33md[39m=[32m"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 
4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 
22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"[39m
                      [36m/>[39m
                    [36m</svg>[39m
                  [36m</div>[39m
                  [36m<div[39m
                    [33mclass[39m=[32m"MuiAlert-message css-zioonp-MuiAlert-message"[39m
                  [36m>[39m
                    [0mBruker[0m
                    [0m [0m
                    [36m<strong>[39m
                      [0mBackend CV[0m...

      217 |   fireEvent.click(screen.getByRole('button', { name: copy.interviewPrepAdd }));
      218 |   expect(await screen.findByText(copy.interviewPrepUpdateFailed)).toBeVisible();
    > 219 |   expect(screen.getByLabelText(copy.interviewPrepAddLabel)).toHaveValue('  Ask about shift handover  ');
          |                 ^
      220 |   expect(screen.getByRole('textbox', { name: answerName })).toHaveValue('My local STAR answer');
      221 |   expect(mockedApi.post).toHaveBeenCalledTimes(1);
      222 |   expect(mockedApi.get.mock.calls.filter(([url]) => 
String(url).endsWith('/interview-prep'))).toHaveLength(1);

      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 getByLabelText (src/interview-prep.test.tsx:219:17)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 46 skipped, 48 total
Snapshots:   0 total
Time:        8.964 s, estimated 18 s
Ran all test suites within paths "src/interview-prep.test.tsx".
Test results written to: ..\..\interview-add-red.json
