diff --git a/tests/cypress/e2e/form/access_policies/direct_access.cy.js b/tests/cypress/e2e/form/access_policies/direct_access.cy.js index 97aa736d912..64366869963 100644 --- a/tests/cypress/e2e/form/access_policies/direct_access.cy.js +++ b/tests/cypress/e2e/form/access_policies/direct_access.cy.js @@ -258,7 +258,7 @@ describe('Form access policy', () => { .invoke('val') .then((direct_access_url) => { cy.visit(direct_access_url); - cy.findByRole('heading', { 'name': 'Test form for the access policy form suite' }).should('exist'); + cy.findByRole('heading', { 'name': 'Form title' }).should('exist'); cy.findByRole('textbox', { 'name': 'Question 1' }).type('My answer'); cy.findByRole('button', { 'name': 'Send form' }).click(); cy.findByRole('alert').should('contain.text', 'Item successfully created');