Skip to content

Commit 97fd4c0

Browse files
committed
close modal using close button
1 parent 80185d5 commit 97fd4c0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/compass-e2e-tests/tests/collection-aggregations-tab.test.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,15 +1332,7 @@ describe('Collection aggregations tab', function () {
13321332
});
13331333
await browser.waitForAriaDisabled(previousButton, true);
13341334

1335-
// previousButton has a tooltip and as it becomes disabled,
1336-
// tooltip disappers. wait for it to disappear
1337-
await browser.waitForAnimations(Selectors.FocusModeModal);
1338-
1339-
// As the tooltip disappeared at this point, the previousButton still
1340-
// has the focus. Pressing escape twice, should close the modal.
1341-
await browser.keys([Key.Escape]);
1342-
await sleep(100);
1343-
await browser.keys([Key.Escape]);
1335+
await browser.clickVisible(Selectors.FocusModeCloseModalButton);
13441336

13451337
await modal.waitForDisplayed({ reverse: true });
13461338
});

0 commit comments

Comments
 (0)