diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 4cead9a63ec..0fbcbc331ab 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -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();