Skip to content

Commit

Permalink
Use existing dialog variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlove authored and jmelot committed Oct 30, 2023
1 parent e2e7ea5 commit 2b9372f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/gui-v2/src/components/ListView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe("ListView", () => {
await user.click(removedCheckbox);
expect(removedCheckbox.checked).toEqual(false);
await user.click(getByRole(dialog, 'button', { name: 'Apply' }));
await waitForElementToBeRemoved(() => screen.getByRole('dialog'));
await waitForElementToBeRemoved(dialog);
expect(screen.queryByRole('heading', { name: 'Add/remove columns'})).not.toBeInTheDocument();

// Verify that the changes took effect
Expand Down

0 comments on commit 2b9372f

Please sign in to comment.