Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
minnakt committed Mar 15, 2024
1 parent ad6bab1 commit 132dc75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/integration/task/execution_task_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ describe("Execution task table", () => {
});

it("Updates the url when column headers are clicked", () => {
cy.dataCy("tasks-table").find("th").contains("Name").click();
const nameSortControl = "button[aria-label='Sort by Name']";
cy.get(nameSortControl).click();
cy.location("search").should("contain", "sortBy=NAME");
cy.location("search").should("contain", "sortDir=ASC");

cy.dataCy("tasks-table").find("th").contains("Name").click();
cy.get(nameSortControl).click();
cy.location("search").should("contain", "sortBy=NAME");
cy.location("search").should("contain", "sortDir=DESC");
});
Expand Down

0 comments on commit 132dc75

Please sign in to comment.