-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(e2e): remove TEST_MULTIPLE_CONNECTIONS flag from e2e tests (#6393)
- Loading branch information
1 parent
8884e7f
commit 6b68561
Showing
30 changed files
with
417 additions
and
1,073 deletions.
There are no files selected for viewing
20 changes: 4 additions & 16 deletions
20
packages/compass-e2e-tests/helpers/commands/close-shell.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
import { TEST_MULTIPLE_CONNECTIONS } from '../compass'; | ||
import type { CompassBrowser } from '../compass-browser'; | ||
import retryWithBackoff from '../retry-with-backoff'; | ||
import * as Selectors from '../selectors'; | ||
|
||
export async function closeShell( | ||
browser: CompassBrowser, | ||
connectionName: string | ||
): Promise<void> { | ||
if (TEST_MULTIPLE_CONNECTIONS) { | ||
await browser.closeWorkspaceTab({ | ||
connectionName, | ||
type: 'Shell', | ||
}); | ||
} else { | ||
await retryWithBackoff(async function () { | ||
const shellContentElement = await browser.$(Selectors.ShellContent); | ||
if (await shellContentElement.isDisplayed()) { | ||
await browser.clickVisible(Selectors.ShellExpandButton); | ||
} | ||
}); | ||
} | ||
await browser.closeWorkspaceTab({ | ||
connectionName, | ||
type: 'Shell', | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.