Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Aug 18, 2023
1 parent ba2f682 commit b0120a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/components/HostDetails/HostDetails.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('HostDetails component', () => {

const cleanUpModalButton = screen.getAllByRole('button', {
name: 'Clean up',
})[1];
})[0];
await user.click(cleanUpModalButton);

const actions = store.getActions();
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/HostsList.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('HostsLists component', () => {

const cleanUpModalButton = screen.getAllByRole('button', {
name: 'Clean up',
})[1];
})[0];

await user.click(cleanUpModalButton);

Expand Down

0 comments on commit b0120a7

Please sign in to comment.