FAIL src/jobs-view-integration.test.tsx (11.1 s)
  ● trash feedback in nb exposes its translated Angre action and restores the same job

    Unable to find role="button" and name "Angre"

    Ignored nodes: comments, script, style
    <body
      style=""
    >
      <div>
        <output
          aria-label="Route"
        >
          /jobs
        </output>
        <button>
          History back
        </button>
        <button>
          History forward
        </button>
        <button>
          Job created
        </button>
        <div
          class="MuiBox-root css-0"
        >
          <div
            class="MuiBox-root css-1g1pux1"
          >
            <div
              aria-label="Jobbvisning"
              class="MuiBox-root css-1utx3w7"
              role="group"
            >
              <a
                aria-current="page"
                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"
                data-discover="true"
                href="/jobs?view=table"
                tabindex="0"
              >
                Tabell
              </a>
              <a
                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"
                data-discover="true"
                href="/jobs?view=board"
                tabindex="0"
              >
                Tavle
              </a>
            </div>
            <p
              class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
              role="status"
            >
              27 jobber samsvarer
            </p>
          </div>
          <div
            class="MuiBox-root css-1eini8u"
          >
            <div
              class="MuiFormControl-root MuiTextField-root css-1lssrpz-MuiFormControl-root-MuiTextField-root"
            >
              <label
                class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
                data-shrink="true"
                for="_r_1i_"
                id="_r_1i_-label"
              >
                Søk
              </label>
              <div
                class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart css-71sp51-MuiInputBase-root-MuiOutlinedInput-root"
              >
                <div
                  class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-outlined MuiInputAdornment-sizeSmall css-1nowbqt-MuiInputAdornment-root"
                >
                  <span
                    aria-hidden="true"
                    class="notranslate"
                  >
                    ​
                  </span>
                  <svg
                    aria-hidden="true"
                    class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root"
                    data-testid="SearchIcon"
                    focusable="false"
                    viewBox="0 0 24 24"
                  >
                    <path
                      d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
                    />
                  </svg>
                </div>
                <input
                  aria-invalid="false"
                  class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart css-14mk4rm-MuiInputBase-input-MuiOutlinedInput-input"
                  id="_r_1i_"
                  placeholder="Tittel, selskap, notater, meldinger"
                  type="text"
                  value=""
                />
                <fieldset
                  aria-hidden="true"
                  class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
                >
                  <legend
                    class="css-ex8a5f-MuiNotchedOutlined-root"
                  >
                    <span>
                      Søk
                    </span>
                  </legend>
                </fieldset>
              </div>
            </div>
            <div
              class="MuiFormControl-root css-1f2y67v-MuiFormControl-root"
            >
              <label
                class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
                data-shrink="true"
                id="job-table-status-label"
              >
                Status
              </label>
              <div
                class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1n9wzir-MuiInputBase-root-MuiOutlinedInput-root-Mui...

      74 |   fireEvent.click(within(dialog).getByRole('button', { name: translations[language].jobTableMove }));
      75 |   await waitFor(() => expect(mockedApi.delete).toHaveBeenCalledWith('/jobapplications/1'));
    > 76 |   fireEvent.click(await screen.findByRole('button', { name: undo }));
         |                                ^
      77 |   await waitFor(() => expect(mockedApi.post).toHaveBeenCalledWith('/jobapplications/1/restore'));
      78 |   expect(await screen.findByText(translations[language].jobTableRestored)).toBeVisible();
      79 | });

      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 findByRole (src/jobs-view-integration.test.tsx:76:32)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 22 skipped, 1 passed, 24 total
Snapshots:   0 total
Time:        12.046 s
Ran all test suites matching src/jobs-view-integration.test.tsx with tests matching "trash feedback".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\jobs-undo-red.json
