test: Improve stability of the ImagesTable tests

This should help with tests flaking on the `act()` error.
This commit is contained in:
regexowl 2023-10-10 14:45:45 +02:00 committed by Lucas Garfield
parent cbe710e75e
commit 51ad859747
2 changed files with 11 additions and 12 deletions

View file

@ -129,7 +129,7 @@ describe('On Recreate', () => {
await waitFor(() => expect(createImageButton).toBeEnabled());
// check that the FSC contains a /tmp partition
const navigation = screen.getByRole('navigation');
const navigation = await screen.findByRole('navigation');
await user.click(
await within(navigation).findByRole('button', {
name: /file system configuration/i,