From 9b607a30211c9f8d69f4b87a949b414a88c00551 Mon Sep 17 00:00:00 2001 From: mfrances Date: Fri, 7 May 2021 16:43:10 -0400 Subject: [PATCH] use alternate click than helpid --- cypress/integration/identity_providers.spec.ts | 3 +++ .../manage/identity_providers/CreateProviderPage.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/integration/identity_providers.spec.ts b/cypress/integration/identity_providers.spec.ts index e202b7d753..7f8facc641 100644 --- a/cypress/integration/identity_providers.spec.ts +++ b/cypress/integration/identity_providers.spec.ts @@ -60,6 +60,7 @@ describe("Identity provider test", () => { .fill("facebook", "123") .clickAdd(); + cy.wait(2000); sidebarPage.goToIdentityProviders(); listingPage.itemExist("facebook"); @@ -69,6 +70,7 @@ describe("Identity provider test", () => { .fill(identityProviderName, "123") .clickAdd(); + cy.wait(2000); sidebarPage.goToIdentityProviders(); listingPage.itemExist(identityProviderName); @@ -78,6 +80,7 @@ describe("Identity provider test", () => { .fill("bitbucket", "123") .clickAdd(); + cy.wait(2000); sidebarPage.goToIdentityProviders(); listingPage.itemExist(identityProviderName); diff --git a/cypress/support/pages/admin_console/manage/identity_providers/CreateProviderPage.ts b/cypress/support/pages/admin_console/manage/identity_providers/CreateProviderPage.ts index b84c26607b..210b19c9ed 100644 --- a/cypress/support/pages/admin_console/manage/identity_providers/CreateProviderPage.ts +++ b/cypress/support/pages/admin_console/manage/identity_providers/CreateProviderPage.ts @@ -45,7 +45,7 @@ export default class CreateProviderPage { } clickCreateDropdown() { - cy.getId(this.addProviderDropdown, { timeout: 10000 }).click(); + cy.contains('Add provider').click(); return this; }