Skip to content

Commit

Permalink
chore: resolve TypeScript errors in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Sep 28, 2023
1 parent 5da5bb6 commit d51d292
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/components/TimeRange.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ describe("Time Range", () => {
getValue().should("have.value", "10:00 AM");
getEndTimeInputComponent().click();
getEndTimeOptions().eq(0).should("have.text", "10:00 AM");
getEndTimeOptions().each(($el) => cy.get($el).should("not.have.value", "9:45 AM"));
getEndTimeOptions().should("not.have.value", "9:45 AM");
});
it("shows options that are before the selected end time for the start time", () => {
getEndTimeInputComponent().click();
getEndTimeOptions().eq(2).click();
getValue(1).should("have.value", "9:30 AM");
getStartTimeInputComponent().click();
getEndTimeOptions().eq(0).should("have.text", "9:00 AM");
getStartTimeOptions().each(($el) => cy.get($el).should("not.have.value", "9:45 AM"));
cy.get("[data-testid='timerange-end-time']").find(TIME_OPTION_SELECTOR).should("not.have.value", "9:45 AM");
getStartTimeOptions().should("not.have.value", "9:45 AM");
});
});
});

0 comments on commit d51d292

Please sign in to comment.