Skip to content

Commit 1b931f5

Browse files
authored
chore(e2e-tests): update interval on starting import to ensure we disconnect before fully importing (#7029)
1 parent 37c9633 commit 1b931f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/compass-e2e-tests/tests/collection-import.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,11 @@ describe('Collection import', function () {
14711471
// Confirm import.
14721472
await browser.clickVisible(Selectors.ImportConfirm);
14731473
// Wait for the in progress toast to appear.
1474-
await browser.$(Selectors.ImportToastAbort).waitForDisplayed();
1474+
await browser.$(Selectors.ImportToastAbort).waitForDisplayed({
1475+
// This is defaulted to 100, which can cause a race condition as the import could succeed.
1476+
// So we make it quicker. This could still cause flakes, but it is less likely.
1477+
interval: 1,
1478+
});
14751479

14761480
await browser.disconnectAll({ closeToasts: false });
14771481

0 commit comments

Comments
 (0)