Skip to content

Commit

Permalink
PRMDR-412 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Jan 9, 2024
1 parent 2b9e840 commit 24d2d8b
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,8 @@ describe('LloydGeorgeRecordDetails', () => {

renderComponent();

expect(screen.getByText(`Select an action...`)).toBeInTheDocument();
expect(screen.getByTestId('actions-menu')).toBeInTheDocument();

act(() => {
userEvent.click(screen.getByTestId('actions-menu'));
});
await waitFor(async () => {
expect(screen.queryByText(action.label)).not.toBeInTheDocument();
});
expect(screen.queryByText(`Select an action...`)).not.toBeInTheDocument();
expect(screen.queryByTestId('actions-menu')).not.toBeInTheDocument();
},
);

Expand Down

0 comments on commit 24d2d8b

Please sign in to comment.