[MM-49724] More robust check for startup before starting E2E tests (#2504)

* [MM-49724] More robust check for startup before starting E2E tests

* Fix a few more tests
This commit is contained in:
Devin Binnie
2023-01-18 05:11:11 -05:00
committed by GitHub
parent 7d79cab916
commit c8c88a274f
4 changed files with 27 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ describe('popup', function desc() {
await firstServer.click('#sidebarItem_suscipit-4');
await firstServer.click('#post_textbox');
await firstServer.type('#post_textbox', '/github connect ');
await firstServer.press('#post_textbox', 'Enter');
await firstServer.click('button[data-testid="SendMessageButton"]');
const githubLink = await firstServer.waitForSelector('a.theme.markdown__link:has-text("GitHub account")');
githubLink.click();
@@ -100,7 +100,7 @@ describe('popup', function desc() {
await firstServer.click('#sidebarItem_suscipit-4');
await firstServer.click('#post_textbox');
await firstServer.type('#post_textbox', '/github connect ');
await firstServer.press('#post_textbox', 'Enter');
await firstServer.click('button[data-testid="SendMessageButton"]');
const githubLink = await firstServer.waitForSelector('a.theme.markdown__link:has-text("GitHub account")');
githubLink.click();