Skip to content

Commit

Permalink
Fix flaky test because of the current date (metabase#35276)
Browse files Browse the repository at this point in the history
  • Loading branch information
WiNloSt authored Nov 1, 2023
1 parent 901f705 commit 968afd2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ describe("issue 16756", () => {
// The previous filter value should reset
cy.location("search").should("eq", "?filter=");

// Set the date to the 15th of whichever the month and year are when this tests runs
cy.log("Set the date to the 15th of October 2023");
cy.clock(new Date("2023-10-31"), ["Date"]);
filterWidget().click();

popover().contains("15").click();
Expand Down

0 comments on commit 968afd2

Please sign in to comment.