mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-15 12:03:46 +00:00
Fix remaining act-related warningsin tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { act, render, screen, waitFor } from '@testing-library/react';
|
||||
import { act, render, screen } from '@testing-library/react';
|
||||
import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { AppFactory } from '../../src/app/App';
|
||||
@@ -23,7 +23,7 @@ describe('<App />', () => {
|
||||
fetchServers={() => {}}
|
||||
servers={{}}
|
||||
settings={fromPartial({})}
|
||||
appUpdated
|
||||
appUpdated={false}
|
||||
resetAppUpdate={() => {}}
|
||||
/>
|
||||
</MemoryRouter>,
|
||||
@@ -36,9 +36,6 @@ describe('<App />', () => {
|
||||
|
||||
expect(screen.getByText('MainHeader')).toBeInTheDocument();
|
||||
expect(screen.getByText('ShlinkVersions')).toBeInTheDocument();
|
||||
|
||||
await waitFor(() => screen.getByRole('alert'));
|
||||
expect(screen.getByText('This app has just been updated!')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it.each([
|
||||
|
||||
Reference in New Issue
Block a user