Skip to content

Commit b588912

Browse files
committed
Update e2e tests to use waitForDisplayed over waitForExist as this is more important with the new dialog
1 parent 388351d commit b588912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-e2e-tests/tests/tabs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('Global Tabs', function () {
121121
);
122122
await browser
123123
.$(Selectors.ConfirmTabCloseModal)
124-
.waitForExist({ reverse: true });
124+
.waitForDisplayed({ reverse: true });
125125

126126
// Checking first that cancel leaves the tab on the screen
127127
expect(await browser.$$(Selectors.workspaceTab()).length).to.equal(1);
@@ -140,7 +140,7 @@ describe('Global Tabs', function () {
140140
);
141141
await browser
142142
.$(Selectors.ConfirmTabCloseModal)
143-
.waitForExist({ reverse: true });
143+
.waitForDisplayed({ reverse: true });
144144

145145
// When confirmed, should remove the tab
146146
expect(await browser.$$(Selectors.workspaceTab()).length).to.equal(0);

0 commit comments

Comments
 (0)