-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Browser E2E tests for compass-web sandbox COMPASS-7598 COMPASS…
…-7599 (#5439) * test-web * add test-web-sandbox to CI * undo a change that was accidentally overridden * skip at the top level * explicitly exit * try why-is-node-running * shutdown driver * error while copying logs that don't exist * kill nicely? * more killing * print pid and drop the negative * use tree-kill * some TODOs * ticket number * remove the node 18+ hack * remove why-is-node-running again * unused import * re-shrinkwrap * drive-by debugging * add unhandled rejection handler * Revert "add unhandled rejection handler" This reverts commit 855371b. * disconnect by redirecting * fix disconnect * disable chrome tests for now as webdriverio is unable to download chromedriver
- Loading branch information
Showing
51 changed files
with
776 additions
and
95 deletions.
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
6 changes: 5 additions & 1 deletion
6
packages/compass-e2e-tests/helpers/commands/wait-for-connection-screen.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,9 +1,13 @@ | ||
import { TEST_COMPASS_WEB } from '../compass'; | ||
import type { CompassBrowser } from '../compass-browser'; | ||
import * as Selectors from '../selectors'; | ||
|
||
export async function waitForConnectionScreen( | ||
browser: CompassBrowser | ||
): Promise<void> { | ||
const connectScreenElement = await browser.$(Selectors.ConnectSection); | ||
const selector = TEST_COMPASS_WEB | ||
? 'textarea[title="Connection string"]' | ||
: Selectors.ConnectSection; | ||
const connectScreenElement = await browser.$(selector); | ||
await connectScreenElement.waitForDisplayed(); | ||
} |
Oops, something went wrong.