prevent stacked notifications (#1438)

This commit is contained in:
mfrances17 2021-10-28 14:58:54 -04:00 committed by GitHub
parent 9e116daf62
commit 75da445971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,31 +153,37 @@ describe("User Fed LDAP mapper tests", () => {
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
masthead.checkNotificationMessage(mapperDeletedSuccess); masthead.checkNotificationMessage(mapperDeletedSuccess);
listingPage.itemExist(creationDateMapper, false); listingPage.itemExist(creationDateMapper, false);
cy.wait(5000);
listingPage.itemExist(emailMapper).deleteItem(emailMapper); listingPage.itemExist(emailMapper).deleteItem(emailMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
masthead.checkNotificationMessage(mapperDeletedSuccess); masthead.checkNotificationMessage(mapperDeletedSuccess);
listingPage.itemExist(emailMapper, false); listingPage.itemExist(emailMapper, false);
cy.wait(5000);
listingPage.itemExist(lastNameMapper).deleteItem(lastNameMapper); listingPage.itemExist(lastNameMapper).deleteItem(lastNameMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
masthead.checkNotificationMessage(mapperDeletedSuccess); masthead.checkNotificationMessage(mapperDeletedSuccess);
listingPage.itemExist(lastNameMapper, false); listingPage.itemExist(lastNameMapper, false);
cy.wait(5000);
listingPage.itemExist(modifyDateMapper).deleteItem(modifyDateMapper); listingPage.itemExist(modifyDateMapper).deleteItem(modifyDateMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
masthead.checkNotificationMessage(mapperDeletedSuccess); masthead.checkNotificationMessage(mapperDeletedSuccess);
listingPage.itemExist(modifyDateMapper, false); listingPage.itemExist(modifyDateMapper, false);
cy.wait(5000);
listingPage.itemExist(usernameMapper).deleteItem(usernameMapper); listingPage.itemExist(usernameMapper).deleteItem(usernameMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
masthead.checkNotificationMessage(mapperDeletedSuccess); masthead.checkNotificationMessage(mapperDeletedSuccess);
listingPage.itemExist(usernameMapper, false); listingPage.itemExist(usernameMapper, false);
cy.wait(5000);
listingPage.itemExist(firstNameMapper).deleteItem(firstNameMapper); listingPage.itemExist(firstNameMapper).deleteItem(firstNameMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
masthead.checkNotificationMessage(mapperDeletedSuccess); masthead.checkNotificationMessage(mapperDeletedSuccess);
listingPage.itemExist(firstNameMapper, false); listingPage.itemExist(firstNameMapper, false);
cy.wait(5000);
listingPage listingPage
.itemExist(MsadAccountControlsMapper) .itemExist(MsadAccountControlsMapper)