Skip to content

Commit

Permalink
how did i miss out on this one
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Oct 12, 2024
1 parent d737018 commit 53b1983
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ Cypress.Commands.add("selectRadioOption", (name: string, value: string) => {
Cypress.Commands.add("clickAndTypeDate", (selector, date) => {
cy.get(selector).scrollIntoView();
cy.get(selector).click();
cy.get(
`[data-test-id="date-input"]:visible [data-test-id="clear-date-input"]`,
).click({ force: true });
cy.get('[data-test-id="date-input"]:visible [data-time-input]').each((el) =>
cy.wrap(el).clear(),
);
cy.get(`[data-test-id="date-input"]:visible [data-time-input="0"]`)
.click()
.type(date);
Expand Down

0 comments on commit 53b1983

Please sign in to comment.