* small fix

* fixes delete
This commit is contained in:
Erik Jan de Wit 2022-02-03 15:13:39 +01:00 committed by GitHub
parent 6a970e6cb7
commit 5ff338eedf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -626,7 +626,9 @@ export default class RealmSettingsPage {
"This action will permanently delete the policy Test. This cannot be undone."
);
cy.findByTestId(this.modalConfirm).contains("Delete");
cy.get(this.deleteDialogCancelBtn).contains("Cancel").click();
cy.get(this.deleteDialogCancelBtn)
.contains("Cancel")
.click({ force: true });
cy.get("table").should("be.visible").contains("td", "Test");
}
@ -634,7 +636,7 @@ export default class RealmSettingsPage {
this.listingPage.searchItem("Test", false);
this.listingPage.clickRowDetails("Test").clickDetailMenu("Delete");
cy.findByTestId(this.modalConfirm).contains("Delete");
cy.findByTestId(this.modalConfirm).click();
cy.findByTestId(this.modalConfirm).click({ force: true });
cy.get(this.alertMessage).should("be.visible", "Client profile deleted");
cy.get("table").should("not.have.text", "Test");
}
@ -820,7 +822,7 @@ export default class RealmSettingsPage {
});
cy.get(this.moreDrpDwnItems).click();
cy.findByTestId(this.modalConfirm).contains("Delete");
cy.findByTestId(this.modalConfirm).click();
cy.findByTestId(this.modalConfirm).click({ force: true });
cy.get(this.alertMessage).should("be.visible", "Client profile deleted");
cy.get("table").should("not.have.text", "Edit");
}
@ -1011,9 +1013,9 @@ export default class RealmSettingsPage {
addClientScopes() {
cy.findByTestId(this.selectScopeButton).click();
cy.get(".pf-c-table__check > input[name=checkrow0]").click();
cy.get(".pf-c-table__check > input[name=checkrow1]").click();
cy.get(".pf-c-table__check > input[name=checkrow2]").click();
cy.get("input[name=checkrow0]").click();
cy.get("input[name=checkrow1]").click();
cy.get("input[name=checkrow2]").click();
cy.findByTestId(this.modalConfirm).contains("Add").click();
}
@ -1108,7 +1110,7 @@ export default class RealmSettingsPage {
"This action will permanently delete client-scopes. This cannot be undone."
);
cy.findByTestId(this.modalConfirm).contains("Delete");
cy.findByTestId(this.modalConfirm).click();
cy.findByTestId(this.modalConfirm).click({ force: true });
cy.get('h6[class*="kc-emptyConditions"]').should(
"have.text",
"No conditions configured"