diff --git a/src/core/components/auth/oauth2.jsx b/src/core/components/auth/oauth2.jsx index d41a90356d9..a47cbff2ab2 100644 --- a/src/core/components/auth/oauth2.jsx +++ b/src/core/components/auth/oauth2.jsx @@ -196,11 +196,11 @@ export default class Oauth2 extends React.Component { { ( flow === AUTH_FLOW_APPLICATION || flow === AUTH_FLOW_IMPLICIT || flow === AUTH_FLOW_ACCESS_CODE || flow === AUTH_FLOW_PASSWORD ) && ( !isAuthorized || isAuthorized && this.state.clientId) && - + { isAuthorized ? ****** : - - + { isAuthorized ? ****** : - div:nth-child(2)").within(() => { - cy.get("#client_id") + cy.get("#client_id_application") .clear() .type("confidentialApplication") - .get("#client_secret") + .get("#client_secret_application") .clear() .type("topSecret") diff --git a/test/e2e-cypress/e2e/features/oauth2-flows/password.cy.js b/test/e2e-cypress/e2e/features/oauth2-flows/password.cy.js index fb1ff54feb6..7adead541ba 100644 --- a/test/e2e-cypress/e2e/features/oauth2-flows/password.cy.js +++ b/test/e2e-cypress/e2e/features/oauth2-flows/password.cy.js @@ -18,11 +18,11 @@ describe("OAuth2 Password flow", function() { .get("#password_type") .select("basic") - .get("#client_id") + .get("#client_id_password") .clear() .type("application") - .get("#client_secret") + .get("#client_secret_password") .clear() .type("secret") @@ -75,11 +75,11 @@ describe("OAuth2 Password flow", function() { .get("#password_type") .select("request-body") - .get("#client_id") + .get("#client_id_password") .clear() .type("application") - .get("#client_secret") + .get("#client_secret_password") .clear() .type("secret") diff --git a/test/e2e-cypress/e2e/security/sequential-import-chaining.cy.js b/test/e2e-cypress/e2e/security/sequential-import-chaining.cy.js index 90887def3ad..0e8234a9bc4 100644 --- a/test/e2e-cypress/e2e/security/sequential-import-chaining.cy.js +++ b/test/e2e-cypress/e2e/security/sequential-import-chaining.cy.js @@ -20,7 +20,7 @@ describe("Security: CSS Sequential Import Chaining", () => { cy.visit("/?url=/documents/petstore-expanded.openapi.yaml") .get(".scheme-container > .schemes > .auth-wrapper > .btn > span") .click() - .get("div > div > .wrapper > .block-tablet > #client_id") + .get("div > div > .wrapper > .block-tablet > #client_id_implicit") .clear() .type("abc") .should("not.have.attr", "value", "abc") @@ -48,7 +48,7 @@ describe("Security: CSS Sequential Import Chaining", () => { cy.visit("/?url=/documents/petstore.swagger.yaml") .get(".scheme-container > .schemes > .auth-wrapper > .btn > span") .click() - .get("div > div > .wrapper > .block-tablet > #client_id") + .get("div > div > .wrapper > .block-tablet > #client_id_implicit") .clear() .type("abc") .should("not.have.attr", "value", "abc")