Fixed broken tests (#3895)

This commit is contained in:
Erik Jan de Wit 2022-11-30 09:38:04 -05:00 committed by GitHub
parent 8fbc5d545c
commit 4b3eb4a9e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -28,7 +28,7 @@ export default class CreateClientPage extends CommonPage {
private rootUrlInput = "#kc-root-url";
private homeUrlInput = "#kc-home-url";
private firstValidRedirectUrlInput = "redirectUris0";
private firstWebOriginsInput = "#webOrigins0";
private firstWebOriginsInput = "webOrigins0";
private adminUrlInput = "#kc-admin-url";
private loginThemeDrpDwn = "#loginTheme";
@ -233,7 +233,7 @@ export default class CreateClientPage extends CommonPage {
cy.get(this.rootUrlInput).should("not.be.disabled");
cy.get(this.homeUrlInput).should("not.be.disabled");
cy.findByTestId(this.firstValidRedirectUrlInput).should("not.be.disabled");
cy.get(this.firstWebOriginsInput).should("not.be.disabled");
cy.findByTestId(this.firstWebOriginsInput).should("not.be.disabled");
cy.get(this.adminUrlInput).should("not.be.disabled");
return this;

View file

@ -222,7 +222,7 @@ export default class RealmSettingsPage extends CommonPage {
private eventListenersDrwDwnSelect =
".pf-c-button.pf-c-select__toggle-button.pf-m-plain";
private eventListenerRemove = '[data-ouia-component-id="Remove"]';
private roleSelect = "#config\\.roles0";
private roleSelect = "config.roles0";
private selectScopeButton = "addValue";
private deleteClientRolesConditionBtn = "delete-client-roles-condition";
private deleteClientScopesConditionBtn = "delete-client-scopes-condition";
@ -1068,7 +1068,7 @@ export default class RealmSettingsPage extends CommonPage {
cy.findByTestId(this.addConditionDrpDwnOption)
.contains("client-roles")
.click();
cy.get(this.roleSelect).clear().type("manage-realm");
cy.findByTestId(this.roleSelect).clear().type("manage-realm");
cy.findByTestId(this.addConditionSaveBtn).click();
cy.get(this.alertMessage).should(
@ -1079,11 +1079,11 @@ export default class RealmSettingsPage extends CommonPage {
}
addClientScopes() {
cy.get("#config\\.scopes0").clear().type("one");
cy.findByTestId("config.scopes0").clear().type("one");
cy.findByTestId(this.selectScopeButton).click();
cy.get("#config\\.scopes1").clear().type("two");
cy.findByTestId("config.scopes1").clear().type("two");
cy.findByTestId(this.selectScopeButton).click();
cy.get("#config\\.scopes2").clear().type("three");
cy.findByTestId("config.scopes2").clear().type("three");
}
shouldAddClientScopesCondition() {
@ -1109,8 +1109,8 @@ export default class RealmSettingsPage extends CommonPage {
cy.findByTestId(this.clientRolesConditionLink).click();
cy.get(this.roleSelect).should("have.value", "manage-realm");
cy.get(this.roleSelect).clear().type("admin");
cy.findByTestId(this.roleSelect).should("have.value", "manage-realm");
cy.findByTestId(this.roleSelect).clear().type("admin");
cy.findByTestId(this.addConditionSaveBtn).click();
cy.get(this.alertMessage).should(
@ -1124,7 +1124,7 @@ export default class RealmSettingsPage extends CommonPage {
cy.findByTestId(this.clientScopesConditionLink).click();
cy.get("#config\\.scopes0").clear().type("edit");
cy.findByTestId("config.scopes0").clear().type("edit");
cy.findByTestId(this.addConditionSaveBtn).click();
cy.get(this.alertMessage).should(