try and fix group tests again (#619)
This commit is contained in:
parent
586375b5f4
commit
0b56f6b1ed
3 changed files with 11 additions and 2 deletions
|
@ -23,8 +23,8 @@ describe("Group test", () => {
|
|||
let groupName = "group";
|
||||
|
||||
const clickGroup = (itemName: string) => {
|
||||
const membersUrl = `/auth/admin/realms/master/groups/*/members`;
|
||||
cy.intercept(membersUrl).as("groupFetch");
|
||||
const groupUrl = "/auth/admin/realms/master/groups/*/members*";
|
||||
cy.intercept(groupUrl).as("groupFetch");
|
||||
cy.get("table").contains(itemName).click();
|
||||
cy.wait(["@groupFetch"]);
|
||||
|
||||
|
@ -88,8 +88,10 @@ describe("Group test", () => {
|
|||
moveGroupModal.clickMove();
|
||||
|
||||
masthead.checkNotificationMessage("Group moved");
|
||||
cy.get(".pf-c-spinner__tail-ball").should("not.exist");
|
||||
listingPage.itemExist(groupName, false);
|
||||
clickGroup(targetGroupName);
|
||||
cy.get(".pf-c-spinner__tail-ball").should("not.exist");
|
||||
listingPage.itemExist(groupName);
|
||||
sidebarPage.goToGroups();
|
||||
listingPage.deleteItem(targetGroupName);
|
||||
|
|
|
@ -15,7 +15,12 @@ export default class GroupModal {
|
|||
}
|
||||
|
||||
clickCreate() {
|
||||
cy.intercept("/auth/admin/realms/master/groups/*/members").as(
|
||||
"groupCreate"
|
||||
);
|
||||
cy.getId(this.createButton).click();
|
||||
cy.wait(["@groupCreate"]);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@ export default class MoveGroupModal {
|
|||
}
|
||||
|
||||
clickMove() {
|
||||
cy.intercept("/auth/admin/realms/master/groups/*/members").as("groupMove");
|
||||
cy.getId(this.moveButton).click();
|
||||
cy.wait(["@groupMove"]);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue