Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gzdunek committed Jan 13, 2025
1 parent 9533f43 commit 215958f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ test.each<{
name: 'starting new session in document reopen dialog discards previous documents',
action: async () => {
await userEvent.click(
await screen.findByRole('button', { name: 'Start New Session' })
await screen.findByRole('button', { name: 'Start new session' })
);
},
expectHasDocumentsToReopen: false,
Expand Down Expand Up @@ -233,6 +233,10 @@ test.each<{
</MockAppContextProvider>
);

// Wait for the default unified resources document to render,
// so that we won't get 'act' errors.
expect(await screen.findByText('All Resources')).toBeInTheDocument();

expect(
await screen.findByText(
'Do you want to reopen tabs from the previous session?'
Expand Down

0 comments on commit 215958f

Please sign in to comment.