diff --git a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_is_bsol_workflow.cy.js b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_is_bsol_workflow.cy.js index d5ab01524..9d79fc49e 100644 --- a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_is_bsol_workflow.cy.js +++ b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_is_bsol_workflow.cy.js @@ -127,8 +127,7 @@ describe('GP Workflow: View Lloyd George record', () => { cy.get('#verify-submit').click(); //Assert - assertPatientInfo(); - assertFailedLloydGeorgeLoad(); + cy.contains('Sorry, there is a problem with the service').should('be.visible'); }, ); }); @@ -136,7 +135,7 @@ describe('GP Workflow: View Lloyd George record', () => { context('View Lloyd George document with specific role tests', () => { it( - 'It displays an error with a download link when a Lloyd George stitching timeout occures via the API Gatway for a GP_ADMIN', + 'It displays an error with a download link when a Lloyd George stitching timeout occurs via the API Gateway for a GP_ADMIN', { tags: 'regression' }, () => { beforeEachConfiguration(Roles.GP_ADMIN); @@ -151,7 +150,7 @@ describe('GP Workflow: View Lloyd George record', () => { ); it( - 'It displays an error with download link when a Lloyd George stitching timeout occures via the API Gatway for a GP_CLINICAL but link access is denied', + 'It displays an error with download link when a Lloyd George stitching timeout occurs via the API Gateway for a GP_CLINICAL but link access is denied', { tags: 'regression' }, () => { beforeEachConfiguration(Roles.GP_CLINICAL); @@ -287,7 +286,7 @@ describe('GP Workflow: View Lloyd George record', () => { cy.wait('@documentDelete'); // assert - cy.getByTestId('service-error').should('be.visible'); + cy.contains('Sorry, there is a problem with the service').should('be.visible'); }, ); @@ -346,7 +345,7 @@ describe('GP Workflow: View Lloyd George record', () => { cy.wait('@documentManifest'); // Assert - cy.contains('An error has occurred while preparing your download').should('be.visible'); + cy.contains('Sorry, there is a problem with the service').should('be.visible'); }); }); }); diff --git a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_not_bsol_workflow.cy.js b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_not_bsol_workflow.cy.js index 237e0ec31..01f0ee783 100644 --- a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_not_bsol_workflow.cy.js +++ b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_not_bsol_workflow.cy.js @@ -136,8 +136,9 @@ describe('GP Workflow: View Lloyd George record', () => { cy.get('#verify-submit').click(); //Assert - assertPatientInfo(); - assertFailedLloydGeorgeLoad(); + cy.contains('Sorry, there is a problem with the service').should( + 'be.visible', + ); }, ); diff --git a/app/cypress/e2e/0-ndr-core-tests/pcse_user_workflows/download_patient_files_workflow.cy.js b/app/cypress/e2e/0-ndr-core-tests/pcse_user_workflows/download_patient_files_workflow.cy.js index 7766e4b2e..5551b0ead 100644 --- a/app/cypress/e2e/0-ndr-core-tests/pcse_user_workflows/download_patient_files_workflow.cy.js +++ b/app/cypress/e2e/0-ndr-core-tests/pcse_user_workflows/download_patient_files_workflow.cy.js @@ -180,7 +180,7 @@ describe('PCSE Workflow: Access and download found files', () => { navigateToDownload(roles.PCSE); - cy.get('#service-error').should('exist'); + cy.contains('Sorry, there is a problem with the service').should('be.visible'); }, ); @@ -307,7 +307,7 @@ describe('PCSE Workflow: Access and download found files', () => { cy.getByTestId('delete-submit-btn').click(); // assert - cy.getByTestId('service-error').should('be.visible'); + cy.contains('Sorry, there is a problem with the service').should('be.visible'); }, ); @@ -330,7 +330,7 @@ describe('PCSE Workflow: Access and download found files', () => { cy.getByTestId('delete-submit-btn').click(); // assert - cy.getByTestId('service-error').should('be.visible'); + cy.contains('Sorry, there is a problem with the service').should('be.visible'); }, ); });