  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          54 |   const view = render(page());
          55 |   try {
        > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
             |                                  ^
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/dom/dist/wait-for.js:71:16
          at node_modules/@testing-library/react/dist/act-compat.js:47:24
          at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
          at node_modules/@testing-library/react/dist/act-compat.js:46:25
          at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
          at node_modules/@testing-library/dom/dist/wait-for.js:65:15
          at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
          at node_modules/@testing-library/dom/dist/wait-for.js:164:54
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
          at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
          at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
          at findByRole (src/attachment-action-lifetime.test.tsx:56:34)

      54 |   const view = render(page());
      55 |   try {
    > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
         |                                  ^
      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/dom/dist/wait-for.js:71:16
      at node_modules/@testing-library/react/dist/act-compat.js:47:24
      at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
      at node_modules/@testing-library/dom/dist/wait-for.js:65:15
      at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
      at node_modules/@testing-library/dom/dist/wait-for.js:164:54
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
      at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
      at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
      at findByRole (src/attachment-action-lifetime.test.tsx:56:34)

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          54 |   const view = render(page());
          55 |   try {
        > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
             |                     ^
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/react/dist/pure.js:96:16
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
          at src/attachment-action-lifetime.test.tsx:56:21

      54 |   const view = render(page());
      55 |   try {
    > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
         |                     ^
      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/react/dist/pure.js:96:16
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
      at src/attachment-action-lifetime.test.tsx:56:21

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          55 |   try {
          56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
        > 57 |     const dialog = await screen.findByRole('dialog');
             |                                 ^
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/dom/dist/wait-for.js:71:16
          at node_modules/@testing-library/react/dist/act-compat.js:47:24
          at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
          at node_modules/@testing-library/react/dist/act-compat.js:46:25
          at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
          at node_modules/@testing-library/dom/dist/wait-for.js:65:15
          at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
          at node_modules/@testing-library/dom/dist/wait-for.js:164:54
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
          at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
          at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
          at findByRole (src/attachment-action-lifetime.test.tsx:57:33)

      55 |   try {
      56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
    > 57 |     const dialog = await screen.findByRole('dialog');
         |                                 ^
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/dom/dist/wait-for.js:71:16
      at node_modules/@testing-library/react/dist/act-compat.js:47:24
      at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
      at node_modules/@testing-library/dom/dist/wait-for.js:65:15
      at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
      at node_modules/@testing-library/dom/dist/wait-for.js:164:54
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
      at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
      at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
      at findByRole (src/attachment-action-lifetime.test.tsx:57:33)

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          55 |   try {
          56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
        > 57 |     const dialog = await screen.findByRole('dialog');
             |                    ^
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/react/dist/pure.js:96:16
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
          at src/attachment-action-lifetime.test.tsx:57:20

      55 |   try {
      56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
    > 57 |     const dialog = await screen.findByRole('dialog');
         |                    ^
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/react/dist/pure.js:96:16
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
      at src/attachment-action-lifetime.test.tsx:57:20

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
        > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
             |                  ^
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
          61 |     expect(mockedApi.post).not.toHaveBeenCalled();
          62 |     expect(mockedApi.patch).not.toHaveBeenCalled();
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/dom/dist/wait-for.js:71:16
          at node_modules/@testing-library/react/dist/act-compat.js:47:24
          at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
          at node_modules/@testing-library/react/dist/act-compat.js:46:25
          at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
          at node_modules/@testing-library/dom/dist/wait-for.js:65:15
          at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
          at node_modules/@testing-library/dom/dist/wait-for.js:164:54
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
          at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
          at src/attachment-action-lifetime.test.tsx:59:18

      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
    > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
         |                  ^
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
      61 |     expect(mockedApi.post).not.toHaveBeenCalled();
      62 |     expect(mockedApi.patch).not.toHaveBeenCalled();

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/dom/dist/wait-for.js:71:16
      at node_modules/@testing-library/react/dist/act-compat.js:47:24
      at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
      at node_modules/@testing-library/dom/dist/wait-for.js:65:15
      at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
      at node_modules/@testing-library/dom/dist/wait-for.js:164:54
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
      at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
      at src/attachment-action-lifetime.test.tsx:59:18

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
        > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
             |     ^
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
          61 |     expect(mockedApi.post).not.toHaveBeenCalled();
          62 |     expect(mockedApi.patch).not.toHaveBeenCalled();
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/react/dist/pure.js:96:16
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
          at src/attachment-action-lifetime.test.tsx:59:5

      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
    > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
         |     ^
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
      61 |     expect(mockedApi.post).not.toHaveBeenCalled();
      62 |     expect(mockedApi.patch).not.toHaveBeenCalled();

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/react/dist/pure.js:96:16
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
      at src/attachment-action-lifetime.test.tsx:59:5

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          54 |   const view = render(page());
          55 |   try {
        > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
             |                                  ^
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/dom/dist/wait-for.js:71:16
          at node_modules/@testing-library/react/dist/act-compat.js:47:24
          at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
          at node_modules/@testing-library/react/dist/act-compat.js:46:25
          at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
          at node_modules/@testing-library/dom/dist/wait-for.js:65:15
          at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
          at node_modules/@testing-library/dom/dist/wait-for.js:164:54
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
          at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
          at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
          at findByRole (src/attachment-action-lifetime.test.tsx:56:34)

      54 |   const view = render(page());
      55 |   try {
    > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
         |                                  ^
      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/dom/dist/wait-for.js:71:16
      at node_modules/@testing-library/react/dist/act-compat.js:47:24
      at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
      at node_modules/@testing-library/dom/dist/wait-for.js:65:15
      at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
      at node_modules/@testing-library/dom/dist/wait-for.js:164:54
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
      at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
      at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
      at findByRole (src/attachment-action-lifetime.test.tsx:56:34)

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          54 |   const view = render(page());
          55 |   try {
        > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
             |                     ^
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/react/dist/pure.js:96:16
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
          at src/attachment-action-lifetime.test.tsx:56:21

      54 |   const view = render(page());
      55 |   try {
    > 56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
         |                     ^
      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/react/dist/pure.js:96:16
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
      at src/attachment-action-lifetime.test.tsx:56:21

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          55 |   try {
          56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
        > 57 |     const dialog = await screen.findByRole('dialog');
             |                                 ^
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/dom/dist/wait-for.js:71:16
          at node_modules/@testing-library/react/dist/act-compat.js:47:24
          at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
          at node_modules/@testing-library/react/dist/act-compat.js:46:25
          at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
          at node_modules/@testing-library/dom/dist/wait-for.js:65:15
          at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
          at node_modules/@testing-library/dom/dist/wait-for.js:164:54
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
          at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
          at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
          at findByRole (src/attachment-action-lifetime.test.tsx:57:33)

      55 |   try {
      56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
    > 57 |     const dialog = await screen.findByRole('dialog');
         |                                 ^
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/dom/dist/wait-for.js:71:16
      at node_modules/@testing-library/react/dist/act-compat.js:47:24
      at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
      at node_modules/@testing-library/dom/dist/wait-for.js:65:15
      at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
      at node_modules/@testing-library/dom/dist/wait-for.js:164:54
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
      at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
      at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
      at findByRole (src/attachment-action-lifetime.test.tsx:57:33)

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          55 |   try {
          56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
        > 57 |     const dialog = await screen.findByRole('dialog');
             |                    ^
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
          59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/react/dist/pure.js:96:16
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
          at src/attachment-action-lifetime.test.tsx:57:20

      55 |   try {
      56 |     fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
    > 57 |     const dialog = await screen.findByRole('dialog');
         |                    ^
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/react/dist/pure.js:96:16
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
      at src/attachment-action-lifetime.test.tsx:57:20

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
        > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
             |                  ^
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
          61 |     expect(mockedApi.post).not.toHaveBeenCalled();
          62 |     expect(mockedApi.patch).not.toHaveBeenCalled();
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/dom/dist/wait-for.js:71:16
          at node_modules/@testing-library/react/dist/act-compat.js:47:24
          at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
          at node_modules/@testing-library/react/dist/act-compat.js:46:25
          at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
          at node_modules/@testing-library/dom/dist/wait-for.js:65:15
          at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
          at node_modules/@testing-library/dom/dist/wait-for.js:164:54
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
          at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
          at src/attachment-action-lifetime.test.tsx:59:18

      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
    > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
         |                  ^
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
      61 |     expect(mockedApi.post).not.toHaveBeenCalled();
      62 |     expect(mockedApi.patch).not.toHaveBeenCalled();

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/dom/dist/wait-for.js:71:16
      at node_modules/@testing-library/react/dist/act-compat.js:47:24
      at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
      at node_modules/@testing-library/dom/dist/wait-for.js:65:15
      at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
      at node_modules/@testing-library/dom/dist/wait-for.js:164:54
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
      at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
      at src/attachment-action-lifetime.test.tsx:59:18

  console.warn
    A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
    Stack Trace:
    
          57 |     const dialog = await screen.findByRole('dialog');
          58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
        > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
             |     ^
          60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
          61 |     expect(mockedApi.post).not.toHaveBeenCalled();
          62 |     expect(mockedApi.patch).not.toHaveBeenCalled();
    
          Error: 
          at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
          at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
          at node_modules/@testing-library/react/dist/pure.js:96:16
          at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
          at src/attachment-action-lifetime.test.tsx:59:5

      57 |     const dialog = await screen.findByRole('dialog');
      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
    > 59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
         |     ^
      60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
      61 |     expect(mockedApi.post).not.toHaveBeenCalled();
      62 |     expect(mockedApi.patch).not.toHaveBeenCalled();

      at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
      at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
      at node_modules/@testing-library/react/dist/pure.js:96:16
      at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
      at src/attachment-action-lifetime.test.tsx:59:5

FAIL src/attachment-action-lifetime.test.tsx
  ● preview download keeps the attachment identity and filename (en)

    expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 1

      Array [
        "/attachments/download/7",
    -   "/attachments/download/7",
    +   "/attachments/download/0",
      ]

      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
    > 60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
         |                                                                                                                ^
      61 |     expect(mockedApi.post).not.toHaveBeenCalled();
      62 |     expect(mockedApi.patch).not.toHaveBeenCalled();
      63 |     expect(mockedApi.delete).not.toHaveBeenCalled();

      at toEqual (src/attachment-action-lifetime.test.tsx:60:112)

  ● preview download keeps the attachment identity and filename (nb)

    expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 1

      Array [
        "/attachments/download/7",
    -   "/attachments/download/7",
    +   "/attachments/download/0",
      ]

      58 |     fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
      59 |     await waitFor(() => expect(downloads).toEqual([file.fileName]));
    > 60 |     expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
         |                                                                                                                ^
      61 |     expect(mockedApi.post).not.toHaveBeenCalled();
      62 |     expect(mockedApi.patch).not.toHaveBeenCalled();
      63 |     expect(mockedApi.delete).not.toHaveBeenCalled();

      at toEqual (src/attachment-action-lifetime.test.tsx:60:112)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 60 skipped, 62 total
Snapshots:   0 total
Time:        3.825 s
Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "preview download keeps".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-preview-download-red.json
