test: fix flakiness in GH connection test case (#1383)

This commit is contained in:
QAComet
2023-10-25 03:04:04 -06:00
committed by GitHub
parent d82b50fcdb
commit 2fceaf2cf4
3 changed files with 13 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ test('Github OAuth integration', async ({ page, applicationsPage }) => {
await page.waitForURL('/apps');
}
const connectionModal = await applicationsPage.openAddConnectionModal();
expect(connectionModal.modal).toBeVisible();
await expect(connectionModal.modal).toBeVisible();
return await connectionModal.selectLink('github');
}
);
@@ -18,7 +18,7 @@ test('Github OAuth integration', async ({ page, applicationsPage }) => {
'Ensure the github connection modal is visible',
async () => {
const connectionModal = githubConnectionPage.addConnectionModal;
expect(connectionModal.modal).toBeVisible();
await expect(connectionModal.modal).toBeVisible();
return connectionModal;
}
);
@@ -35,9 +35,9 @@ test('Github OAuth integration', async ({ page, applicationsPage }) => {
);
await test.step('Ensure github popup is not a 404', async () => {
// expect(githubPopup).toBeVisible();
// await expect(githubPopup).toBeVisible();
const title = await githubPopup.title();
expect(title).not.toMatch(/^Page not found/);
await expect(title).not.toMatch(/^Page not found/);
});
/* Skip these in CI