diff --git a/test/cypress/integration/payment-links/details-provided-in-query-params.cy.js b/test/cypress/integration/payment-links/details-provided-in-query-params.cy.js index 6541313a4..d8a476caf 100644 --- a/test/cypress/integration/payment-links/details-provided-in-query-params.cy.js +++ b/test/cypress/integration/payment-links/details-provided-in-query-params.cy.js @@ -71,8 +71,8 @@ describe('Payment link visited with invalid amount in query params', () => { it('should show an error page when the payment link is visited', () => { cy.visit(`/redirect/${serviceNamePath}/${productNamePath}?amount=not-valid`, { failOnStatusCode: false }) cy.get('h1').should('have.text', 'An error occurred:') - cy.get('[data-cy=error-message]').should('contain.text', 'Amount must be in pounds and pence using digits and a decimal point, like 123.45 or 156.00 and £100,000 or less.') - cy.get('[data-cy=error-message]').should('contain.text', 'There is a problem with the link you have been sent to use to pay. Please contact the service you\'re trying to make a payment to.') + cy.get('[data-cy=error-message]').should('contain.text', 'Enter an amount in pence. For example “2000”.') + cy.get('[data-cy=error-message]').should('contain.text', 'There is a problem with the link you have been sent to use to pay. Please contact the service you are trying to make a payment to.') }) }) @@ -90,7 +90,7 @@ describe('Payment link visited with invalid reference in query params', () => { it('should show an error page when the payment link is visited', () => { cy.visit(`/redirect/${serviceNamePath}/${productNamePath}?reference=<>`, { failOnStatusCode: false }) cy.get('h1').should('have.text', 'An error occurred:') - cy.get('[data-cy=error-message]').should('contain.text', 'Reference must be 255 characters or fewer. You can’t use any of the following characters') - cy.get('[data-cy=error-message]').should('contain.text', 'There is a problem with the link you have been sent to use to pay. Please contact the service you\'re trying to make a payment to.') + cy.get('[data-cy=error-message]').should('contain.text', 'Reference must be 255 characters or fewer. You cannot use any of the following characters') + cy.get('[data-cy=error-message]').should('contain.text', 'There is a problem with the link you have been sent to use to pay. Please contact the service you are trying to make a payment to.') }) }) \ No newline at end of file