diff --git a/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_gp_admin_path_access.cy.js b/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_gp_admin_path_access.cy.js index 64c819465..a312a53db 100644 --- a/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_gp_admin_path_access.cy.js +++ b/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_gp_admin_path_access.cy.js @@ -11,7 +11,9 @@ const patient = { }; const smokeTest = Cypress.env('CYPRESS_RUN_AS_SMOKETEST') ?? false; -const baseUrl = Cypress.env('CYPRESS_BASE_URL') ?? 'http://localhost:3000/'; +const baseUrl = Cypress.env('CYPRESS_BASE_URL') ?? 'http://localhost:3000'; + +const forbiddenRoutes = ['/search/patient', '/search/patient/result', '/search/results']; describe('assert GP_ADMIN user has access to the GP_ADMIM workflow path', () => { const baseUrl = 'http://localhost:3000'; diff --git a/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_pcse_path_access.cy.js b/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_pcse_path_access.cy.js index 7e5b3c525..f5abf8cd3 100644 --- a/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_pcse_path_access.cy.js +++ b/app/cypress/e2e/0-ndr-core-tests/auth_routes/auth_pcse_path_access.cy.js @@ -12,10 +12,15 @@ const patient = { const smokeTest = Cypress.env('CYPRESS_RUN_AS_SMOKETEST') ?? false; const baseUrl = Cypress.env('CYPRESS_BASE_URL') ?? 'http://localhost:3000/'; +const forbiddenRoutes = [ + '/search/patient/lloyd-george-record', + '/search/upload', + '/search/upload/result', + '/upload/submit', +]; +const authUnauthorisedRoute = '/unauthorised'; -describe('assert PCSE workflow path', () => { - const baseUrl = 'http://localhost:3000'; - +describe('assert PCSE user has access to the PCSE workflow path ', () => { context('session management', () => { it('sets session storage on login and checks starting url route', () => { if (!smokeTest) { @@ -35,7 +40,7 @@ describe('assert PCSE workflow path', () => { cy.wait('@search'); cy.get('#verify-submit').click(); - cy.url().should('eq', baseUrl + '/search/results'); + cy.url().should('eq', baseUrl + 'search/results'); }); }); }); diff --git a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lg_step_1_workflow.cy.js b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lg_step_1_workflow.cy.js index 8ae6a8081..a813abb20 100644 --- a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lg_step_1_workflow.cy.js +++ b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lg_step_1_workflow.cy.js @@ -1,5 +1,5 @@ -import viewLloydGeorgePayload from '../../fixtures/requests/GET_LloydGeorgeStitch.json'; -import searchPatientPayload from '../../fixtures/requests/GET_SearchPatient.json'; +import viewLloydGeorgePayload from '../../../fixtures/requests/GET_LloydGeorgeStitch.json'; +import searchPatientPayload from '../../../fixtures/requests/GET_SearchPatient.json'; const baseUrl = Cypress.env('CYPRESS_BASE_URL') ?? 'http://localhost:3000/';