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(modifyDateMapper).deleteItem(modifyDateMapper);
|
||||
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
|
||||
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(true);
|
||||
masthead.checkNotificationMessage(mapperDeletedSuccess, true);
|
||||
listingPage.itemExist(modifyDateMapper, false);
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue