From 3b50af467860b2b6e07bac0d5b45f34c7fd2916c Mon Sep 17 00:00:00 2001 From: mfrances17 <39063664+mfrances17@users.noreply.github.com> Date: Mon, 17 Jan 2022 05:39:48 -0500 Subject: [PATCH] LDAP mapper test fix (#1860) --- .../integration/user_fed_ldap_hardcoded_mapper_test.spec.ts | 2 +- cypress/integration/user_fed_ldap_mapper_test.spec.ts | 2 +- cypress/support/util/ModalUtils.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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; }