Skip to content

Commit

Permalink
[PRMDR-569] minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
joefong-nhs committed Jan 9, 2024
1 parent 77b91f1 commit 8a0d86c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ const baseUrl = Cypress.config('baseUrl');

const forbiddenRoutes = ['/search/patient', '/search/patient/result', '/search/results'];

const clickSearchPatientButton = async () => {
cy.getByTestId('search-patient-btn').click();
};

const bsolOptions = [true, false];

describe('GP Admin user role has access to the expected GP_ADMIN workflow paths', () => {
Expand All @@ -34,7 +30,7 @@ describe('GP Admin user role has access to the expected GP_ADMIN workflow paths'

cy.login(Roles.GP_ADMIN, isBSOL);
if (!isBSOL) {
clickSearchPatientButton();
cy.getByTestId('search-patient-btn').click();
}

cy.url().should('eq', baseUrl + '/search/upload');
Expand Down

0 comments on commit 8a0d86c

Please sign in to comment.