From 31cf7f098fe3c74a06dcffa0dc5e687a76fa74b1 Mon Sep 17 00:00:00 2001 From: nirajCITZ <94716060+nirajCITZ@users.noreply.github.com> Date: Fri, 6 Jan 2023 10:01:39 -0800 Subject: [PATCH] Feature/shared idp cypress (#690) * add sync_org to feeder options * change urls for ckan feeder * initial working version of shared idp * put back align in radio-card-group * add the shared idp aud mapper * add support for shared idp roles * upd data rule for isShared * upd controllers * fix invalid idp shared check * First pass at new login screens * fix invalid query * add namespace field to metrics * upd types * upd kong_http_requests_hourly_service grouping * upd to handle Activity feed context * Consolidate login pages to single entry * Fix dialog, button fixes. * minor cleanup * make auto the default for issuer mode * show error on failed deletion of issuer and svc acct * add validation on issuer name * add validation for availableScopes * add in the delete access catch error * Fix tabs losing data when creating/editing * Switch access request button to a button, not link * Fix button again * Add content, developer layout * Update login options order. * Fix redirect bug, multiple query params * Create shared-idp.yaml * Update init.sh * Optimized Cypress Test and added Cypress Tests for update product environment scenarios * Fix login redirect inception * upd shared-idp local * upg database * cleanup feeder init * handle logout on local properly * Add ignored redirect list, move some content to server * Fix missing type data * Update cypress scripts which were failing due to changes in fixture/test data * include identity content * upg helm chart for mongodb * upg helm chart for mongodb * upg helm chart for mongodb * upg helm chart for mongodb * upd mongodb * add auth callback page * upd mongodb deploy strategy * Update ci-build-deploy.yaml * Fix login data test ids * Added changes for login refresh scenarios * removed debugger statement * Added Testdata ID for login button * Update Test scenario for Shared IDP * Remove commented code * Added wait statement to synchronize the test Co-authored-by: ikethecoder Co-authored-by: Joshua Jones Co-authored-by: Niraj Patel --- e2e/cypress/pageObjects/serviceAccounts.ts | 1 + e2e/cypress/support/auth-commands.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/e2e/cypress/pageObjects/serviceAccounts.ts b/e2e/cypress/pageObjects/serviceAccounts.ts index 81d6540e7..ebf387998 100644 --- a/e2e/cypress/pageObjects/serviceAccounts.ts +++ b/e2e/cypress/pageObjects/serviceAccounts.ts @@ -12,6 +12,7 @@ class ServiceAccountsPage { cy.get(this.newServiceAccountBtn).first().click() this.selectPermissions(scopes) cy.get(this.shareBtn).click() + cy.wait(8000) } checkServiceAccountNotExist() : void diff --git a/e2e/cypress/support/auth-commands.ts b/e2e/cypress/support/auth-commands.ts index d613c4d4d..d7d2369fc 100644 --- a/e2e/cypress/support/auth-commands.ts +++ b/e2e/cypress/support/auth-commands.ts @@ -254,6 +254,7 @@ Cypress.Commands.add('publishApi', (fileName: string, namespace: string, flag?:b const serviceAcctCreds = JSON.parse(creds.credentials) cy.getAccessToken(serviceAcctCreds.clientId, serviceAcctCreds.clientSecret).then( () => { + cy.wait(3000) cy.get('@accessTokenResponse').then((res: any) => { const options = { method: 'PUT',