diff --git a/ui/cypress/support/commands.js b/ui/cypress/support/commands.js index d8a52717..04443b4e 100644 --- a/ui/cypress/support/commands.js +++ b/ui/cypress/support/commands.js @@ -220,9 +220,7 @@ Cypress.Commands.add("fetchLinkAndGrantPermission", (email) => { // *ADD ID cy.get(".mt-5").within(() => { - cy.get("h2") - .filter('[jhitranslate="landingPage.success.thanks.string"]') - .should("exist"); + cy.get("h2").filter('[data-cy="thanksMessage"]').should("exist"); }); });