Skip to content

Commit

Permalink
updated closeNotification to close sonner toast notification
Browse files Browse the repository at this point in the history
  • Loading branch information
nilay-v3rma committed Dec 19, 2024
1 parent a828352 commit 9434c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Cypress.Commands.add("preventPrint", () => {
});

Cypress.Commands.add("closeNotification", () => {
cy.get(".pnotify")
cy.get("li[data-sonner-toast] div[data-title]")
.should("exist")
.each(($div) => {
cy.wrap($div).click();
Expand Down

0 comments on commit 9434c27

Please sign in to comment.