FAIL src/cv-document-controls.test.tsx (6.279 s)
  ● Console

    console.error
      An update to CvTemplateThumbnail inside a test was not wrapped in act(...).
      
      When testing, code that causes React state updates should be wrapped into act(...):
      
      act(() => {
        /* fire events that update state */
      });
      /* assert on the output */
      
      This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

      49 |     let alive = true;
      50 |     setFailed(false);
    > 51 |     sample(theme.id).then(value => { if (alive) setHtml({ id: theme.id, value }); })
         |                                                 ^
      52 |       .catch(() => { if (alive) setFailed(true); });
      53 |     return () => { alive = false; };
      54 |   }, [theme?.id, visible]);

      at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
      at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
      at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
      at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
      at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
      at setHtml (src/components/CvTemplateThumbnail.tsx:51:49)

    console.error
      An update to CvTemplateThumbnail inside a test was not wrapped in act(...).
      
      When testing, code that causes React state updates should be wrapped into act(...):
      
      act(() => {
        /* fire events that update state */
      });
      /* assert on the output */
      
      This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

      49 |     let alive = true;
      50 |     setFailed(false);
    > 51 |     sample(theme.id).then(value => { if (alive) setHtml({ id: theme.id, value }); })
         |                                                 ^
      52 |       .catch(() => { if (alive) setFailed(true); });
      53 |     return () => { alive = false; };
      54 |   }, [theme?.id, visible]);

      at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
      at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
      at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
      at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
      at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
      at setHtml (src/components/CvTemplateThumbnail.tsx:51:49)

    console.error
      An update to CvTemplateThumbnail inside a test was not wrapped in act(...).
      
      When testing, code that causes React state updates should be wrapped into act(...):
      
      act(() => {
        /* fire events that update state */
      });
      /* assert on the output */
      
      This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

      49 |     let alive = true;
      50 |     setFailed(false);
    > 51 |     sample(theme.id).then(value => { if (alive) setHtml({ id: theme.id, value }); })
         |                                                 ^
      52 |       .catch(() => { if (alive) setFailed(true); });
      53 |     return () => { alive = false; };
      54 |   }, [theme?.id, visible]);

      at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
      at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
      at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
      at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
      at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
      at setHtml (src/components/CvTemplateThumbnail.tsx:51:49)

    console.error
      An update to ForwardRef(TouchRipple) inside a test was not wrapped in act(...).
      
      When testing, code that causes React state updates should be wrapped into act(...):
      
      act(() => {
        /* fire events that update state */
      });
      /* assert on the output */
      
      This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

      at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
      at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
      at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
      at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
      at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
      at node_modules/@mui/material/ButtonBase/TouchRipple.js:171:5
      at node_modules/@mui/material/ButtonBase/TouchRipple.js:264:7
      at Object.pulsate (node_modules/@mui/material/ButtonBase/TouchRipple.js:274:5)
      at node_modules/@mui/material/useLazyRipple/useLazyRipple.js:77:47

    console.error
      An update to ForwardRef(TouchRipple) inside a test was not wrapped in act(...).
      
      When testing, code that causes React state updates should be wrapped into act(...):
      
      act(() => {
        /* fire events that update state */
      });
      /* assert on the output */
      
      This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

      at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
      at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
      at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
      at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
      at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
      at node_modules/@mui/material/ButtonBase/TouchRipple.js:171:5
      at node_modules/@mui/material/ButtonBase/TouchRipple.js:264:7
      at Object.pulsate (node_modules/@mui/material/ButtonBase/TouchRipple.js:274:5)
      at node_modules/@mui/material/useLazyRipple/useLazyRipple.js:77:47

    console.error
      An update to ForwardRef(TouchRipple) inside a test was not wrapped in act(...).
      
      When testing, code that causes React state updates should be wrapped into act(...):
      
      act(() => {
        /* fire events that update state */
      });
      /* assert on the output */
      
      This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

      at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
      at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
      at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
      at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
      at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
      at node_modules/@mui/material/ButtonBase/TouchRipple.js:171:5
      at node_modules/@mui/material/ButtonBase/TouchRipple.js:264:7
      at Object.pulsate (node_modules/@mui/material/ButtonBase/TouchRipple.js:274:5)
      at node_modules/@mui/material/useLazyRipple/useLazyRipple.js:77:47

  ● template reset confirmation follows en while preserving overrides until approval

    TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Code"

    Here are the accessible roles:

      heading:

      Name "Mal":
      <h3
        class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
      />

      --------------------------------------------------
      paragraph:

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
      />

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
      />

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
      />

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
      />

      --------------------------------------------------
      button:

      Name "ATS-maler":
      <button
        aria-pressed="true"
        class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
        tabindex="0"
        type="button"
      />

      Name "Alle maler":
      <button
        aria-pressed="false"
        class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
        tabindex="0"
        type="button"
      />

      Name "Moderne":
      <div
        aria-describedby="_r_3_-modern-category _r_3_-modern-description _r_3_-modern-features"
        aria-disabled="false"
        aria-label="Moderne"
        aria-pressed="true"
        class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
        role="button"
        tabindex="0"
      />

      Name "Kode":
      <div
        aria-describedby="_r_3_-code-category _r_3_-code-description _r_3_-code-features"
        aria-disabled="false"
        aria-label="Kode"
        aria-pressed="false"
        class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
        role="button"
        tabindex="0"
      />

      Name "Teknisk":
      <div
        aria-describedby="_r_3_-technical-category _r_3_-technical-description _r_3_-technical-features"
        aria-disabled="true"
        aria-label="Teknisk"
        aria-pressed="false"
        class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
        role="button"
        tabindex="-1"
      />

      --------------------------------------------------

    Ignored nodes: comments, script, style
    <body
      style=""
    >
      <div>
        <div
          class="MuiStack-root css-10kbc59-MuiStack-root"
        >
          <h3
            class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
          >
            Mal
          </h3>
          <p
            class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
          >
            Maler endrer bare presentasjonen. Innholdet og valgene for skjulte seksjoner beholdes.
          </p>
          <div
            class="MuiStack-root css-14nepse-MuiStack-root"
          >
            <div
              class="MuiStack-root css-16fzs56-MuiStack-root"
            >
              <button
                aria-pressed="true"
                class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
                tabindex="0"
                type="button"
              >
                ATS-maler
              </button>
              <button
                aria-pressed="false"
                class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
                tabindex="0"
                type="button"
              >
                Alle maler
              </button>
              <span
                class="MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"
              >
                Anbefalt for pålitelig tolking og tydelig leserekkefølge.
              </span>
            </div>
            <div
              class="MuiBox-root css-1xx3gcm"
            >
              <div
                aria-describedby="_r_3_-modern-category _r_3_-modern-description _r_3_-modern-features"
                aria-disabled="false"
                aria-label="Moderne"
                aria-pressed="true"
                class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
                role="button"
                tabindex="0"
              >
                <svg
                  aria-hidden="true"
                  aria-label="Valgt mal"
                  class="MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"
                  data-testid="CheckCircleIcon"
                  focusable="false"
                  viewBox="0 0 24 24"
                >
                  <path
                    d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
                  />
                </svg>
                <div
                  class="MuiBox-root css-19idom"
                >
                  <div
                    aria-hidden="true"
                    class="MuiBox-root css-1jkon9e"
                  >
                    <div
                      class="MuiBox-root css-xhl4z"
                    >
                      <iframe
                        sandbox=""
                        srcdoc="<html><body>Sample</body></html>"
                        style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
                        tabindex="-1"
                        title="Eksempelforhåndsvisning av mal"
                      />
                    </div>
                  </div>
                </div>
                <p
                  class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
                >
                  Moderne
                </p>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
                  id="_r_3_-modern-category"
                >
                  Moderne og profesjonell
                </span>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
                  id="_r_3_-modern-description"
                >
                  Ren SaaS-inspirert utforming med en tydelig topptekst i aksentfarge.
                </span>
                <div
                  class="MuiStack-root css-a7rvdw-MuiStack-root"
                  id="_r_3_-modern-features"
                >
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      ATS-vennlig
                    </span>
                  </div>
                  <div
                    aria-hidden="true"
                    class="MuiStack-root css-1vaohjx-MuiStack-root"
                  />
                </div>
              </div>
              <div
                aria-describedby="_r_3_-code-category _r_3_-code-description _r_3_-code-features"
                aria-disabled="false"
                aria-label="Kode"
                aria-pressed="false"
                class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
                role="button"
                tabindex="0"
              >
                <div
                  class="MuiBox-root css-19idom"
                >
                  <div
                    aria-hidden="true"
                    class="MuiBox-root css-1jkon9e"
                  >
                    <div
                      class="MuiBox-root css-xhl4z"
                    >
                      <iframe
                        sandbox=""
                        srcdoc="<html><body>Sample</body></html>"
                        style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
                        tabindex="-1"
                        title="Eksempelforhåndsvisning av mal"
                      />
                    </div>
                  </div>
                </div>
                <p
                  class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
                >
                  Kode
                </p>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
                  id="_r_3_-code-category"
                >
                  Teknisk
                </span>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
                  id="_r_3_-code-description"
                >
                  Redaksjonell utforming for utviklere med nummererte seksjoner og presise detaljer i fastbreddeskrift.
                </span>
                <div
                  class="MuiStack-root css-a7rvdw-MuiStack-root"
                  id="_r_3_-code-features"
                >
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      ATS-vennlig
                    </span>
                  </div>
                  <div
                    aria-hidden="true"
                    class="MuiStack-root css-1vaohjx-MuiStack-root"
                  />
                </div>
              </div>
              <div
                aria-describedby="_r_3_-technical-category _r_3_-technical-description _r_3_-technical-features"
                aria-disabled="true"
                aria-label="Teknisk"
                aria-pressed="false"
                class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
                role="button"
                tabindex="-1"
              >
                <div
                  class="MuiBox-root css-19idom"
                >
                  <div
                    aria-hidden="true"
                    class="MuiBox-root css-1jkon9e"
                  >
                    <div
                      class="MuiBox-root css-xhl4z"
                    >
                      <iframe
                        sandbox=""
                        srcdoc="<html><body>Sample</body></html>"
                        style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
                        tabindex="-1"
                        title="Eksempelforhåndsvisning av mal"
                      />
                    </div>
                  </div>
                </div>
                <p
                  class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
                >
                  Teknisk
                </p>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
                  id="_r_3_-technical-category"
                >
                  Teknisk
                </span>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
                  id="_r_3_-technical-description"
                >
                  Kompakt tokolonneutforming for tekniske CV-er, med ferdigheter og prosjekter først.
                </span>
                <div
                  class="MuiStack-root css-a7rvdw-MuiStack-root"
                  id="_r_3_-technical-features"
                >
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      ATS-vennlig
                    </span>
                  </div>
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSecondary MuiChip-outlinedSecondary css-jjatep-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      Pro
                    </span>
                  </div>
                  <div
                    aria-hidden="true"
                    class="MuiStack-root css-1vaohjx-MuiStack-root"
                  />
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      53 |   const snapshot = JSON.stringify(settings());
      54 |   const openReset = async (language: 'en' | 'nb') => {
    > 55 |     fireEvent.click(screen.getByRole('button', { name: 'Code' }));
         |                            ^
      56 |     const candidate = await screen.findByRole('dialog');
      57 |     const apply = within(candidate).getByRole('button', { name: translations[language].cvEditorApplyTemplate });
      58 |     await waitFor(() => expect(apply).toBeEnabled());

      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 getByRole (src/cv-document-controls.test.tsx:55:28)
      at openReset (src/cv-document-controls.test.tsx:71:32)

  ● template reset confirmation follows nb while preserving overrides until approval

    TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Code"

    Here are the accessible roles:

      heading:

      Name "Mal":
      <h3
        class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
      />

      --------------------------------------------------
      paragraph:

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
      />

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
      />

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
      />

      Name "":
      <p
        class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
      />

      --------------------------------------------------
      button:

      Name "ATS-maler":
      <button
        aria-pressed="true"
        class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
        tabindex="0"
        type="button"
      />

      Name "Alle maler":
      <button
        aria-pressed="false"
        class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
        tabindex="0"
        type="button"
      />

      Name "Moderne":
      <div
        aria-describedby="_r_g_-modern-category _r_g_-modern-description _r_g_-modern-features"
        aria-disabled="false"
        aria-label="Moderne"
        aria-pressed="true"
        class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
        role="button"
        tabindex="0"
      />

      Name "Kode":
      <div
        aria-describedby="_r_g_-code-category _r_g_-code-description _r_g_-code-features"
        aria-disabled="false"
        aria-label="Kode"
        aria-pressed="false"
        class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
        role="button"
        tabindex="0"
      />

      Name "Teknisk":
      <div
        aria-describedby="_r_g_-technical-category _r_g_-technical-description _r_g_-technical-features"
        aria-disabled="true"
        aria-label="Teknisk"
        aria-pressed="false"
        class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
        role="button"
        tabindex="-1"
      />

      --------------------------------------------------

    Ignored nodes: comments, script, style
    <body
      style=""
    >
      <div>
        <div
          class="MuiStack-root css-10kbc59-MuiStack-root"
        >
          <h3
            class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
          >
            Mal
          </h3>
          <p
            class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
          >
            Maler endrer bare presentasjonen. Innholdet og valgene for skjulte seksjoner beholdes.
          </p>
          <div
            class="MuiStack-root css-14nepse-MuiStack-root"
          >
            <div
              class="MuiStack-root css-16fzs56-MuiStack-root"
            >
              <button
                aria-pressed="true"
                class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
                tabindex="0"
                type="button"
              >
                ATS-maler
              </button>
              <button
                aria-pressed="false"
                class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
                tabindex="0"
                type="button"
              >
                Alle maler
              </button>
              <span
                class="MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"
              >
                Anbefalt for pålitelig tolking og tydelig leserekkefølge.
              </span>
            </div>
            <div
              class="MuiBox-root css-1xx3gcm"
            >
              <div
                aria-describedby="_r_g_-modern-category _r_g_-modern-description _r_g_-modern-features"
                aria-disabled="false"
                aria-label="Moderne"
                aria-pressed="true"
                class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
                role="button"
                tabindex="0"
              >
                <svg
                  aria-hidden="true"
                  aria-label="Valgt mal"
                  class="MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"
                  data-testid="CheckCircleIcon"
                  focusable="false"
                  viewBox="0 0 24 24"
                >
                  <path
                    d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
                  />
                </svg>
                <div
                  class="MuiBox-root css-19idom"
                >
                  <div
                    aria-hidden="true"
                    class="MuiBox-root css-1jkon9e"
                  >
                    <span
                      class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-3sr0vz-MuiSkeleton-root"
                      style="width: 100%; height: 100%;"
                    />
                  </div>
                </div>
                <p
                  class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
                >
                  Moderne
                </p>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
                  id="_r_g_-modern-category"
                >
                  Moderne og profesjonell
                </span>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
                  id="_r_g_-modern-description"
                >
                  Ren SaaS-inspirert utforming med en tydelig topptekst i aksentfarge.
                </span>
                <div
                  class="MuiStack-root css-a7rvdw-MuiStack-root"
                  id="_r_g_-modern-features"
                >
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      ATS-vennlig
                    </span>
                  </div>
                  <div
                    aria-hidden="true"
                    class="MuiStack-root css-1vaohjx-MuiStack-root"
                  />
                </div>
              </div>
              <div
                aria-describedby="_r_g_-code-category _r_g_-code-description _r_g_-code-features"
                aria-disabled="false"
                aria-label="Kode"
                aria-pressed="false"
                class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
                role="button"
                tabindex="0"
              >
                <div
                  class="MuiBox-root css-19idom"
                >
                  <div
                    aria-hidden="true"
                    class="MuiBox-root css-1jkon9e"
                  >
                    <span
                      class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-3sr0vz-MuiSkeleton-root"
                      style="width: 100%; height: 100%;"
                    />
                  </div>
                </div>
                <p
                  class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
                >
                  Kode
                </p>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
                  id="_r_g_-code-category"
                >
                  Teknisk
                </span>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
                  id="_r_g_-code-description"
                >
                  Redaksjonell utforming for utviklere med nummererte seksjoner og presise detaljer i fastbreddeskrift.
                </span>
                <div
                  class="MuiStack-root css-a7rvdw-MuiStack-root"
                  id="_r_g_-code-features"
                >
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      ATS-vennlig
                    </span>
                  </div>
                  <div
                    aria-hidden="true"
                    class="MuiStack-root css-1vaohjx-MuiStack-root"
                  />
                </div>
              </div>
              <div
                aria-describedby="_r_g_-technical-category _r_g_-technical-description _r_g_-technical-features"
                aria-disabled="true"
                aria-label="Teknisk"
                aria-pressed="false"
                class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
                role="button"
                tabindex="-1"
              >
                <div
                  class="MuiBox-root css-19idom"
                >
                  <div
                    aria-hidden="true"
                    class="MuiBox-root css-1jkon9e"
                  >
                    <span
                      class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-3sr0vz-MuiSkeleton-root"
                      style="width: 100%; height: 100%;"
                    />
                  </div>
                </div>
                <p
                  class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
                >
                  Teknisk
                </p>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
                  id="_r_g_-technical-category"
                >
                  Teknisk
                </span>
                <span
                  class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
                  id="_r_g_-technical-description"
                >
                  Kompakt tokolonneutforming for tekniske CV-er, med ferdigheter og prosjekter først.
                </span>
                <div
                  class="MuiStack-root css-a7rvdw-MuiStack-root"
                  id="_r_g_-technical-features"
                >
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      ATS-vennlig
                    </span>
                  </div>
                  <div
                    class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSecondary MuiChip-outlinedSecondary css-jjatep-MuiChip-root"
                  >
                    <span
                      class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
                    >
                      Pro
                    </span>
                  </div>
                  <div
                    aria-hidden="true"
                    class="MuiStack-root css-1vaohjx-MuiStack-root"
                  />
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      53 |   const snapshot = JSON.stringify(settings());
      54 |   const openReset = async (language: 'en' | 'nb') => {
    > 55 |     fireEvent.click(screen.getByRole('button', { name: 'Code' }));
         |                            ^
      56 |     const candidate = await screen.findByRole('dialog');
      57 |     const apply = within(candidate).getByRole('button', { name: translations[language].cvEditorApplyTemplate });
      58 |     await waitFor(() => expect(apply).toBeEnabled());

      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 getByRole (src/cv-document-controls.test.tsx:55:28)
      at openReset (src/cv-document-controls.test.tsx:62:24)


Test Suites: 1 failed, 3 passed, 4 total
Tests:       2 failed, 25 passed, 27 total
Snapshots:   0 total
Time:        14.599 s
Ran all test suites matching src/career-evidence.test.tsx|src/cv-document-controls.test.tsx|src/cv-photo-controls.test.tsx|src/named-controls.test.tsx.
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-template-dialog-green.json
