From 46f0b5250972443a32b5d74b366af9b37e72162e Mon Sep 17 00:00:00 2001 From: Cameron Hutchison Date: Wed, 11 Dec 2024 16:46:20 -0600 Subject: [PATCH] Update error messages for login tests --- test/cypress/e2e/ui/Login.cy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cypress/e2e/ui/Login.cy.js b/test/cypress/e2e/ui/Login.cy.js index 2b17ffa8..3b765920 100644 --- a/test/cypress/e2e/ui/Login.cy.js +++ b/test/cypress/e2e/ui/Login.cy.js @@ -67,7 +67,7 @@ describe('Login', () => { // Expect a 401 from the backend cy.get('@login').its('response.statusCode').should('eq', 401); // Expect an error message on the UI - cy.get('div[data-cy="password-error"]').should('contain.text', 'Invalid password'); + cy.get('div[data-cy="password-error"]').should('contain.text', 'Invalid email or password'); }); it('should show an error message if the email is incorrect', () => { @@ -85,7 +85,7 @@ describe('Login', () => { // Expect a 401 from the backend cy.get('@login').its('response.statusCode').should('eq', 401); // Expect an error message on the UI - cy.get('div[data-cy="password-error"]').should('contain.text', 'No relevant user found'); + cy.get('div[data-cy="password-error"]').should('contain.text', 'Invalid email or password'); }); }); }); @@ -150,7 +150,7 @@ describe('Login', () => { // Expect a 401 from the backend cy.get('@login').its('response.statusCode').should('eq', 401); // Expect an error message on the UI - cy.get('div[data-cy="password-error"]').should('contain.text', 'Invalid password'); + cy.get('div[data-cy="password-error"]').should('contain.text', 'Invalid email or password'); }); it('should show an error message if the email is incorrect', () => { @@ -168,7 +168,7 @@ describe('Login', () => { // Expect a 401 from the backend cy.get('@login').its('response.statusCode').should('eq', 401); // Expect an error message on the UI - cy.get('div[data-cy="password-error"]').should('contain.text', 'No relevant user found'); + cy.get('div[data-cy="password-error"]').should('contain.text', 'Invalid email or password'); }); });