Skip to content

Commit

Permalink
Fixes #37635 - HostsAndInputs.test.js missing an await
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and adamruzicka committed Jul 9, 2024
1 parent 1eb59bb commit f7f60f5
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,20 @@ describe('Hosts', () => {
await act(async () => {
fireEvent.click(screen.getByText('Host groups'));
});
fireEvent.click(select('host groups'));
await act(async () => {
fireEvent.click(select('host groups'));
});
await act(async () => {
fireEvent.click(screen.getByText('host_group1'));
});

fireEvent.click(
screen.getByText('Host groups', { selector: '.pf-c-select__toggle-text' })
);
await act(async () => {
fireEvent.click(
screen.getByText('Host groups', {
selector: '.pf-c-select__toggle-text',
})
);
});
await act(async () => {
fireEvent.click(screen.getByText('Host collections'));
});
Expand Down

0 comments on commit f7f60f5

Please sign in to comment.