Skip to content

Commit

Permalink
Rename spec method
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Sep 8, 2024
1 parent 65359c0 commit 52f6e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/cypress/e2e/vouchers_spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ context("When traveling into the future", () => {
it("shows only non-expired vouchers (near future)", function () {
ROLES.forEach((role) => {
testCreateVoucher(role);
testExpiresAtTravel(role);
textExpiresAtWithTimeTravel(role);
});

function testExpiresAtTravel(role) {
function textExpiresAtWithTimeTravel(role) {
// find date string, read it, then travel to that date (+1 minute)
cy.getBySelector(`${role}-voucher-expires-at`).then(($expiresAt) => {
const date = new Date($expiresAt.text());
Expand Down

0 comments on commit 52f6e9d

Please sign in to comment.