diff --git a/cypress/integration/user_fed_ldap_hardcoded_mapper_test.spec.ts b/cypress/integration/user_fed_ldap_hardcoded_mapper_test.spec.ts index 2056f20b80..77bcc9b61e 100644 --- a/cypress/integration/user_fed_ldap_hardcoded_mapper_test.spec.ts +++ b/cypress/integration/user_fed_ldap_hardcoded_mapper_test.spec.ts @@ -154,7 +154,7 @@ describe("User Fed LDAP mapper tests", () => { listingPage.itemExist(lastNameMapper, false); listingPage.itemExist(modifyDateMapper).deleteItem(modifyDateMapper); - modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); + modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(true); masthead.checkNotificationMessage(mapperDeletedSuccess, true); listingPage.itemExist(modifyDateMapper, false); }); diff --git a/cypress/integration/user_fed_ldap_mapper_test.spec.ts b/cypress/integration/user_fed_ldap_mapper_test.spec.ts index e88e8e34ff..c67dc9c9bc 100644 --- a/cypress/integration/user_fed_ldap_mapper_test.spec.ts +++ b/cypress/integration/user_fed_ldap_mapper_test.spec.ts @@ -133,7 +133,7 @@ describe("User Fed LDAP mapper tests", () => { listingPage .itemExist(MsadAccountControlsMapper) .deleteItem(MsadAccountControlsMapper); - modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); + modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(true); masthead.checkNotificationMessage(mapperDeletedSuccess, true); }); diff --git a/cypress/support/util/ModalUtils.ts b/cypress/support/util/ModalUtils.ts index b1c5ec4ff5..26099fddfb 100644 --- a/cypress/support/util/ModalUtils.ts +++ b/cypress/support/util/ModalUtils.ts @@ -6,8 +6,8 @@ export default class ModalUtils { private cancelModalBtn = "#modal-cancel"; private closeModalBtn = ".pf-c-modal-box .pf-m-plain"; - confirmModal() { - cy.get(this.confirmModalBtn).click(); + confirmModal(force = false) { + cy.get(this.confirmModalBtn).click({ force }); return this; }