Skip to content

Commit

Permalink
test: simplify flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Sep 11, 2024
1 parent f5796ac commit 0730b5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/library-authoring/LibraryAuthoringPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ describe('<LibraryAuthoringPage />', () => {
await renderLibraryPage();

// Click on the first component
waitFor(() => expect(screen.queryByText(displayName)).toBeInTheDocument());
fireEvent.click(screen.getAllByText(displayName)[0]);
fireEvent.click(await screen.findByText(displayName));

const sidebar = screen.getByTestId('library-sidebar');

Expand Down

0 comments on commit 0730b5e

Please sign in to comment.