Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Dec 20, 2024
1 parent ca87575 commit d92ecd4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cypress/e2e/adminGroups.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ describe("admin groups index page", () => {
const collectionNamesDesc = [...collectionNamesAsc].reverse();

// check that it begins in acending order
cy.get("[data-cy='groups-table'] tbody > tr td:first-child").each(
cy.get("[data-cy='groups-table'] tbody > tr:first-child .sorting_1").each(
($el, index) => {
const expectedCollectionName = collectionNamesAsc[index];
cy.wrap($el).should("contain", expectedCollectionName);
Expand Down Expand Up @@ -191,13 +191,11 @@ describe("admin groups index page", () => {
});

it("searches collections by name", () => {
cy.get("[data-cy='groups-table']").within(() => {
cy.contains("Search").type("collection2");
cy.get("#dt-search-0").type("collection2");

cy.get("tbody > tr")
.should("have.length", 1)
.should("contain", "collection2");
});
cy.get("tbody > tr")
.should("have.length", 1)
.should("contain", "collection2");
});
});
});

0 comments on commit d92ecd4

Please sign in to comment.