makes client scope test more reliable
This commit is contained in:
parent
f278f34fe5
commit
df5a06a3be
2 changed files with 3 additions and 3 deletions
|
@ -50,6 +50,7 @@ describe("Client Scopes test", function () {
|
||||||
masthead.checkNotificationMessage("Client scope created");
|
masthead.checkNotificationMessage("Client scope created");
|
||||||
|
|
||||||
sidebarPage.goToClientScopes();
|
sidebarPage.goToClientScopes();
|
||||||
|
cy.get(".pf-c-spinner__tail-ball").should("not.exist");
|
||||||
|
|
||||||
// Delete
|
// Delete
|
||||||
listingPage.itemExist(itemId).deleteItem(itemId);
|
listingPage.itemExist(itemId).deleteItem(itemId);
|
||||||
|
@ -59,8 +60,7 @@ describe("Client Scopes test", function () {
|
||||||
|
|
||||||
masthead.checkNotificationMessage("The client scope has been deleted");
|
masthead.checkNotificationMessage("The client scope has been deleted");
|
||||||
|
|
||||||
listingPage // It is not refreshing after delete
|
listingPage.itemExist(itemId, false);
|
||||||
.itemExist(itemId, false);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ export default class ListingPage {
|
||||||
clickRowDetails(itemName: string) {
|
clickRowDetails(itemName: string) {
|
||||||
cy.get(this.itemsRows)
|
cy.get(this.itemsRows)
|
||||||
.contains(itemName)
|
.contains(itemName)
|
||||||
.parentsUntil("tbody")
|
.parentsUntil("tr")
|
||||||
.find(this.itemRowDrpDwn)
|
.find(this.itemRowDrpDwn)
|
||||||
.click();
|
.click();
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in a new issue