makes client scope test more reliable

This commit is contained in:
Erik Jan de Wit 2021-05-26 10:05:53 +02:00
parent f278f34fe5
commit df5a06a3be
2 changed files with 3 additions and 3 deletions

View file

@ -50,6 +50,7 @@ describe("Client Scopes test", function () {
masthead.checkNotificationMessage("Client scope created");
sidebarPage.goToClientScopes();
cy.get(".pf-c-spinner__tail-ball").should("not.exist");
// Delete
listingPage.itemExist(itemId).deleteItem(itemId);
@ -59,8 +60,7 @@ describe("Client Scopes test", function () {
masthead.checkNotificationMessage("The client scope has been deleted");
listingPage // It is not refreshing after delete
.itemExist(itemId, false);
listingPage.itemExist(itemId, false);
});
});

View file

@ -50,7 +50,7 @@ export default class ListingPage {
clickRowDetails(itemName: string) {
cy.get(this.itemsRows)
.contains(itemName)
.parentsUntil("tbody")
.parentsUntil("tr")
.find(this.itemRowDrpDwn)
.click();
return this;