1946 lines
125 KiB
Plaintext
1946 lines
125 KiB
Plaintext
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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:34)
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134:21
|
|
|
|
132 | const view = render(page());
|
|
133 | try {
|
|
> 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
| ^
|
|
135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
|
|
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:134: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:
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
133 | try {
|
|
134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` }));
|
|
> 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' }));
|
|
| ^
|
|
136 | if (boundary === 'session') mockSessionActive = false;
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
|
|
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:135:5
|
|
|
|
FAIL src/attachment-action-lifetime.test.tsx (12.212 s)
|
|
● late attachment Download after unmount / resolve cannot expose an obsolete blob
|
|
|
|
expect(jest.fn()).not.toHaveBeenCalled()
|
|
|
|
Expected number of calls: 0
|
|
Received number of calls: 1
|
|
|
|
1: {}
|
|
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
> 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();
|
|
| ^
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
|
|
at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)
|
|
|
|
● late attachment Download after unmount / reject cannot expose an obsolete blob
|
|
|
|
expect(element).not.toBeInTheDocument()
|
|
|
|
expected document not to contain element, found <div class="MuiAlert-message css-zioonp-MuiAlert-message">Download failed.</div> instead
|
|
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
> 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
| ^
|
|
143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
|
144 | } finally {
|
|
145 | view.unmount(); click.mockRestore();
|
|
|
|
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79)
|
|
|
|
● late attachment Download after job change / resolve cannot expose an obsolete blob
|
|
|
|
expect(jest.fn()).not.toHaveBeenCalled()
|
|
|
|
Expected number of calls: 0
|
|
Received number of calls: 1
|
|
|
|
1: {}
|
|
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
> 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();
|
|
| ^
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
|
|
at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)
|
|
|
|
● late attachment Download after job change / reject cannot expose an obsolete blob
|
|
|
|
expect(element).not.toBeInTheDocument()
|
|
|
|
expected document not to contain element, found <div class="MuiAlert-message css-zioonp-MuiAlert-message">Download failed.</div> instead
|
|
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
> 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
| ^
|
|
143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
|
144 | } finally {
|
|
145 | view.unmount(); click.mockRestore();
|
|
|
|
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79)
|
|
|
|
● late attachment Download after session / resolve cannot expose an obsolete blob
|
|
|
|
expect(jest.fn()).not.toHaveBeenCalled()
|
|
|
|
Expected number of calls: 0
|
|
Received number of calls: 1
|
|
|
|
1: {}
|
|
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
> 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();
|
|
| ^
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
|
|
at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)
|
|
|
|
● late attachment Download after session / reject cannot expose an obsolete blob
|
|
|
|
expect(element).not.toBeInTheDocument()
|
|
|
|
expected document not to contain element, found <div class="MuiAlert-message css-zioonp-MuiAlert-message">Download failed.</div> instead
|
|
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
> 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
| ^
|
|
143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
|
144 | } finally {
|
|
145 | view.unmount(); click.mockRestore();
|
|
|
|
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79)
|
|
|
|
● late attachment Preview after unmount / resolve cannot expose an obsolete blob
|
|
|
|
expect(jest.fn()).not.toHaveBeenCalled()
|
|
|
|
Expected number of calls: 0
|
|
Received number of calls: 1
|
|
|
|
1: {}
|
|
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
> 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();
|
|
| ^
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
|
|
at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)
|
|
|
|
● late attachment Preview after unmount / reject cannot expose an obsolete blob
|
|
|
|
expect(element).not.toBeInTheDocument()
|
|
|
|
expected document not to contain element, found <div class="MuiAlert-message css-zioonp-MuiAlert-message">Preview failed.</div> instead
|
|
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
> 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
|
| ^
|
|
144 | } finally {
|
|
145 | view.unmount(); click.mockRestore();
|
|
146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); });
|
|
|
|
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78)
|
|
|
|
● late attachment Preview after job change / resolve cannot expose an obsolete blob
|
|
|
|
expect(jest.fn()).not.toHaveBeenCalled()
|
|
|
|
Expected number of calls: 0
|
|
Received number of calls: 1
|
|
|
|
1: {}
|
|
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
> 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();
|
|
| ^
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
|
|
at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)
|
|
|
|
● late attachment Preview after job change / reject cannot expose an obsolete blob
|
|
|
|
expect(element).not.toBeInTheDocument()
|
|
|
|
expected document not to contain element, found <div class="MuiAlert-message css-zioonp-MuiAlert-message">Preview failed.</div> instead
|
|
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
> 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
|
| ^
|
|
144 | } finally {
|
|
145 | view.unmount(); click.mockRestore();
|
|
146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); });
|
|
|
|
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78)
|
|
|
|
● late attachment Preview after session / resolve cannot expose an obsolete blob
|
|
|
|
expect(jest.fn()).not.toHaveBeenCalled()
|
|
|
|
Expected number of calls: 0
|
|
Received number of calls: 1
|
|
|
|
1: {}
|
|
|
|
137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });
|
|
138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });
|
|
> 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();
|
|
| ^
|
|
140 | expect(click).not.toHaveBeenCalled();
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
|
|
at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)
|
|
|
|
● late attachment Preview after session / reject cannot expose an obsolete blob
|
|
|
|
expect(element).not.toBeInTheDocument()
|
|
|
|
expected document not to contain element, found <div class="MuiAlert-message css-zioonp-MuiAlert-message">Preview failed.</div> instead
|
|
|
|
141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
|
142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();
|
|
> 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
|
| ^
|
|
144 | } finally {
|
|
145 | view.unmount(); click.mockRestore();
|
|
146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); });
|
|
|
|
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78)
|
|
|
|
● delayed attachment Download failure uses the current locale
|
|
|
|
Unable to find an element with the text: Nedlasting mislyktes.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
|
|
|
|
Ignored nodes: comments, script, style
|
|
[36m<body[39m
|
|
[33mstyle[39m=[32m""[39m
|
|
[36m>[39m
|
|
[36m<div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-0"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-1owejxv"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-0"[39m
|
|
[36m>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1v8ok63-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mVedlegg (1)[0m
|
|
[36m</p>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.[0m
|
|
[36m</p>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-x2j9i8"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
|
[36m>[39m
|
|
[0m0 bilder[0m
|
|
[36m</span>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
|
[36m>[39m
|
|
[0m1 PDF-er[0m
|
|
[36m</span>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
|
[36m>[39m
|
|
[0mMaks 10 MB hver[0m
|
|
[36m</span>[39m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"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"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiButton-icon MuiButton-startIcon MuiButton-iconSizeSmall css-d8i980-MuiButton-startIcon"[39m
|
|
[36m>[39m
|
|
[36m<svg[39m
|
|
[33maria-hidden[39m=[32m"true"[39m
|
|
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"[39m
|
|
[33mdata-testid[39m=[32m"CloudUploadOutlinedIcon"[39m
|
|
[33mfocusable[39m=[32m"false"[39m
|
|
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
|
[36m>[39m
|
|
[36m<path[39m
|
|
[33md[39m=[32m"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"[39m
|
|
[36m/>[39m
|
|
[36m</svg>[39m
|
|
[36m</span>[39m
|
|
[0mLast opp[0m
|
|
[36m</button>[39m
|
|
[36m<input[39m
|
|
[33mhidden[39m=[32m""[39m
|
|
[33mmultiple[39m=[32m""[39m
|
|
[33mtype[39m=[32m"file"[39m
|
|
[36m/>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-497k9w"[39m
|
|
[36m>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1g7ym63-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mDra og slipp filer her[0m
|
|
[36m</p>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1moljxt-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.[0m
|
|
[36m</p>[39m
|
|
[36m</div>[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
|
|
[33maria-label[39m=[32m"Vedlegg (1)"[39m
|
|
[33mclass[39m=[32m"MuiTableContainer-root css-1sde01b-MuiTableContainer-root"[39m
|
|
[33mrole[39m=[32m"region"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[36m>[39m
|
|
[36m<table[39m
|
|
[33maria-label[39m=[32m"Gjeldende dokumenter"[39m
|
|
[33mclass[39m=[32m"MuiTable-root css-1ii7ygr-MuiTable-root"[39m
|
|
[36m>[39m
|
|
[36m<thead[39m
|
|
[33mclass[39m=[32m"MuiTableHead-root css-1a7iywq-MuiTableHead-root"[39m
|
|
[36m>[39m
|
|
[36m<tr[39m
|
|
[33mclass[39m=[32m"MuiTableRow-root MuiTableRow-head css-1xtozoh-MuiTableRow-root"[39m
|
|
[36m>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-10umtgd-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
[0mNavn[0m
|
|
[36m</th>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-vgdc2f-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
[0mType[0m
|
|
[36m</th>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-by61h7-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
[0mFiltype[0m
|
|
[36m</th>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-1vxk39h-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
...
|
|
|
|
158 | await act(async () => pending.reject(new Error('synthetic blob failure')));
|
|
159 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed';
|
|
> 160 | expect(await screen.findByText(translations.nb[key])).toBeVisible();
|
|
| ^
|
|
161 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();
|
|
162 | });
|
|
163 |
|
|
|
|
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 findByText (src/attachment-action-lifetime.test.tsx:160:23)
|
|
|
|
● delayed attachment Preview failure uses the current locale
|
|
|
|
Unable to find an element with the text: Forhåndsvisning mislyktes.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
|
|
|
|
Ignored nodes: comments, script, style
|
|
[36m<body[39m
|
|
[33mstyle[39m=[32m""[39m
|
|
[36m>[39m
|
|
[36m<div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-0"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-1owejxv"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-0"[39m
|
|
[36m>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1v8ok63-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mVedlegg (1)[0m
|
|
[36m</p>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.[0m
|
|
[36m</p>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-x2j9i8"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
|
[36m>[39m
|
|
[0m0 bilder[0m
|
|
[36m</span>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
|
[36m>[39m
|
|
[0m1 PDF-er[0m
|
|
[36m</span>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
|
[36m>[39m
|
|
[0mMaks 10 MB hver[0m
|
|
[36m</span>[39m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"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"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m>[39m
|
|
[36m<span[39m
|
|
[33mclass[39m=[32m"MuiButton-icon MuiButton-startIcon MuiButton-iconSizeSmall css-d8i980-MuiButton-startIcon"[39m
|
|
[36m>[39m
|
|
[36m<svg[39m
|
|
[33maria-hidden[39m=[32m"true"[39m
|
|
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"[39m
|
|
[33mdata-testid[39m=[32m"CloudUploadOutlinedIcon"[39m
|
|
[33mfocusable[39m=[32m"false"[39m
|
|
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
|
[36m>[39m
|
|
[36m<path[39m
|
|
[33md[39m=[32m"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"[39m
|
|
[36m/>[39m
|
|
[36m</svg>[39m
|
|
[36m</span>[39m
|
|
[0mLast opp[0m
|
|
[36m</button>[39m
|
|
[36m<input[39m
|
|
[33mhidden[39m=[32m""[39m
|
|
[33mmultiple[39m=[32m""[39m
|
|
[33mtype[39m=[32m"file"[39m
|
|
[36m/>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-497k9w"[39m
|
|
[36m>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1g7ym63-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mDra og slipp filer her[0m
|
|
[36m</p>[39m
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1moljxt-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.[0m
|
|
[36m</p>[39m
|
|
[36m</div>[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
|
|
[33maria-label[39m=[32m"Vedlegg (1)"[39m
|
|
[33mclass[39m=[32m"MuiTableContainer-root css-1sde01b-MuiTableContainer-root"[39m
|
|
[33mrole[39m=[32m"region"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[36m>[39m
|
|
[36m<table[39m
|
|
[33maria-label[39m=[32m"Gjeldende dokumenter"[39m
|
|
[33mclass[39m=[32m"MuiTable-root css-1ii7ygr-MuiTable-root"[39m
|
|
[36m>[39m
|
|
[36m<thead[39m
|
|
[33mclass[39m=[32m"MuiTableHead-root css-1a7iywq-MuiTableHead-root"[39m
|
|
[36m>[39m
|
|
[36m<tr[39m
|
|
[33mclass[39m=[32m"MuiTableRow-root MuiTableRow-head css-1xtozoh-MuiTableRow-root"[39m
|
|
[36m>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-10umtgd-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
[0mNavn[0m
|
|
[36m</th>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-vgdc2f-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
[0mType[0m
|
|
[36m</th>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-by61h7-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
[0mFiltype[0m
|
|
[36m</th>[39m
|
|
[36m<th[39m
|
|
[33mclass[39m=[32m"MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-1vxk39h-MuiTableCell-root"[39m
|
|
[33mscope[39m=[32m"col"[39m
|
|
[36m>[39m
|
|
...
|
|
|
|
158 | await act(async () => pending.reject(new Error('synthetic blob failure')));
|
|
159 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed';
|
|
> 160 | expect(await screen.findByText(translations.nb[key])).toBeVisible();
|
|
| ^
|
|
161 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();
|
|
162 | });
|
|
163 |
|
|
|
|
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 findByText (src/attachment-action-lifetime.test.tsx:160:23)
|
|
|
|
Test Suites: 1 failed, 1 total
|
|
Tests: 14 failed, 24 skipped, 38 total
|
|
Snapshots: 0 total
|
|
Time: 13.064 s
|
|
Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "obsolete blob|delayed attachment (Download|Preview)".
|
|
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-blob-corrected-red.json
|