> jest --runInBand --no-cache --runTestsByPath src/correspondence-gmail-import.test.tsx --testNamePattern=changed job recovers --json --outputFile=E:\Storage\Projects\Active\temp docs\jobjakt-local-build\gmail-link-management-lifetime\red-recovery.json
FAIL src/correspondence-gmail-import.test.tsx
  ● correspondence Gmail import › Gmail link management lifetime › unlink follow-up lifetime › a changed job recovers its management controls while the previous write remains pending
    expect(element).toBeEnabled()
    Received element is not enabled:
      <button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root" disabled="" tabindex="-1" type="button" />
      554 |         const pending = deferred<any>(); const view = await beginManagement(action, pending);
      555 |         await act(async () => view.rerender(dialog(77)));
    > 556 |         expect(screen.getByRole("button", { name: translations.en.close })).toBeEnabled();
          |                                                                             ^
      557 |         await act(async () => pending.resolve(result));
      558 |       });
      559 |
      at Object.toBeEnabled (src/correspondence-gmail-import.test.tsx:556:77)
  ● correspondence Gmail import › Gmail link management lifetime › relink follow-up lifetime › a changed job recovers its management controls while the previous write remains pending
    expect(element).toBeEnabled()
    Received element is not enabled:
      <button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root" disabled="" tabindex="-1" type="button" />
      554 |         const pending = deferred<any>(); const view = await beginManagement(action, pending);
      555 |         await act(async () => view.rerender(dialog(77)));
    > 556 |         expect(screen.getByRole("button", { name: translations.en.close })).toBeEnabled();
          |                                                                             ^
      557 |         await act(async () => pending.resolve(result));
      558 |       });
      559 |
      at Object.toBeEnabled (src/correspondence-gmail-import.test.tsx:556:77)
Test Suites: 1 failed, 1 total
Tests:       2 failed, 64 skipped, 66 total
Snapshots:   0 total
Time:        5.101 s
Ran all test suites within paths "src/correspondence-gmail-import.test.tsx".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\gmail-link-management-lifetime\red-recovery.json
