Skip to content

Commit

Permalink
remove waitForPopOverOpen, check for element directly
Browse files Browse the repository at this point in the history
  • Loading branch information
js-jankisalvi committed Feb 13, 2024
1 parent 2c86c2e commit 0d8cb79
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ describe('RegisteredAttachmentsPropertyActions', () => {

userEvent.click(await screen.findByTestId('property-actions-user-action-ellipses'));

await waitForEuiPopoverOpen();

expect((await screen.findByTestId('property-actions-user-action-group')).children.length).toBe(
1
);
expect(await screen.findByTestId('property-actions-user-action-group')).toBeInTheDocument();
});

it('renders the modal info correctly', async () => {
Expand Down

0 comments on commit 0d8cb79

Please sign in to comment.