From 4d196261df511ff20fd260860d096193a305f69e Mon Sep 17 00:00:00 2001 From: LKCSmith <99051851+LKCSmith@users.noreply.github.com> Date: Tue, 22 Nov 2022 14:34:29 -0600 Subject: [PATCH 1/2] Update cypress tests for okta --- clients/admin-ui/cypress/e2e/config-wizard.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/admin-ui/cypress/e2e/config-wizard.cy.ts b/clients/admin-ui/cypress/e2e/config-wizard.cy.ts index 7950c6c08b..e066300835 100644 --- a/clients/admin-ui/cypress/e2e/config-wizard.cy.ts +++ b/clients/admin-ui/cypress/e2e/config-wizard.cy.ts @@ -143,7 +143,7 @@ describe.skip("Config Wizard", () => { cy.getByTestId("okta-btn").click(); // Fill form cy.getByTestId("authenticate-okta-form"); - cy.getByTestId("input-orgUrl").type("fakeOrgUrl"); + cy.getByTestId("input-orgUrl").type("https://ethyca.com/"); cy.getByTestId("input-token").type("fakeToken"); }); @@ -188,7 +188,7 @@ describe.skip("Config Wizard", () => { cy.wait("@postGenerate403"); // Expect the custom message for this specific error. cy.getByTestId("scanner-error"); - cy.getByTestId("permission-msg"); + cy.getByTestId("generic-msg"); cy.intercept("POST", "/api/v1/generate", { statusCode: 500, From bbab0188ba10f4e16cfe96e20249158fa6fe7bcc Mon Sep 17 00:00:00 2001 From: LKCSmith <99051851+LKCSmith@users.noreply.github.com> Date: Tue, 22 Nov 2022 15:17:17 -0600 Subject: [PATCH 2/2] Update commented code --- clients/admin-ui/cypress/e2e/config-wizard.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/admin-ui/cypress/e2e/config-wizard.cy.ts b/clients/admin-ui/cypress/e2e/config-wizard.cy.ts index e066300835..42c6f0fe91 100644 --- a/clients/admin-ui/cypress/e2e/config-wizard.cy.ts +++ b/clients/admin-ui/cypress/e2e/config-wizard.cy.ts @@ -186,7 +186,7 @@ describe.skip("Config Wizard", () => { }).as("postGenerate403"); cy.getByTestId("submit-btn").click(); cy.wait("@postGenerate403"); - // Expect the custom message for this specific error. + // Expect the general message with a log. cy.getByTestId("scanner-error"); cy.getByTestId("generic-msg");