LDAP mapper test fix (#1860)

This commit is contained in:
mfrances17 2022-01-17 05:39:48 -05:00 committed by GitHub
parent 17eabf41a6
commit 3b50af4678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -154,7 +154,7 @@ describe("User Fed LDAP mapper tests", () => {
listingPage.itemExist(lastNameMapper, false); listingPage.itemExist(lastNameMapper, false);
listingPage.itemExist(modifyDateMapper).deleteItem(modifyDateMapper); listingPage.itemExist(modifyDateMapper).deleteItem(modifyDateMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(true);
masthead.checkNotificationMessage(mapperDeletedSuccess, true); masthead.checkNotificationMessage(mapperDeletedSuccess, true);
listingPage.itemExist(modifyDateMapper, false); listingPage.itemExist(modifyDateMapper, false);
}); });

View file

@ -133,7 +133,7 @@ describe("User Fed LDAP mapper tests", () => {
listingPage listingPage
.itemExist(MsadAccountControlsMapper) .itemExist(MsadAccountControlsMapper)
.deleteItem(MsadAccountControlsMapper); .deleteItem(MsadAccountControlsMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(true);
masthead.checkNotificationMessage(mapperDeletedSuccess, true); masthead.checkNotificationMessage(mapperDeletedSuccess, true);
}); });

View file

@ -6,8 +6,8 @@ export default class ModalUtils {
private cancelModalBtn = "#modal-cancel"; private cancelModalBtn = "#modal-cancel";
private closeModalBtn = ".pf-c-modal-box .pf-m-plain"; private closeModalBtn = ".pf-c-modal-box .pf-m-plain";
confirmModal() { confirmModal(force = false) {
cy.get(this.confirmModalBtn).click(); cy.get(this.confirmModalBtn).click({ force });
return this; return this;
} }