Skip to content

Commit

Permalink
fixed patient prescription cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Aug 22, 2024
1 parent f9eaca8 commit 1e91fa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ Cypress.Commands.add("clearAllFilters", () => {

Cypress.Commands.add("submitButton", (buttonText = "Submit") => {
cy.get("button[type='submit']").contains(buttonText).scrollIntoView();
cy.get("button[type='submit']").contains(buttonText).click();
cy.get("button[type='submit']")
.filter(":visible")
.contains(buttonText)
.click();
});

Cypress.Commands.add(
Expand Down

0 comments on commit 1e91fa2

Please sign in to comment.