Skip to content

Commit

Permalink
test: Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Apr 11, 2024
1 parent 75013f9 commit 56bf156
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/storyMap/components/StoryMapForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,11 @@ test('StoryMapForm: Change chapter style', async () => {
fireEvent.click(screen.getByRole('button', { name: 'Confirm' }))
);

await screen.findByRole('button', { name: 'Set Location' });
await waitFor(() => {
expect(
screen.getByRole('button', { name: 'Set Location' })
).toBeInTheDocument();
});

await act(async () =>
fireEvent.click(screen.getByRole('button', { name: 'Set Location' }))
Expand Down

0 comments on commit 56bf156

Please sign in to comment.