LDAP mapper test fix (#1860)
This commit is contained in:
parent
17eabf41a6
commit
3b50af4678
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue