Skip to content

Commit

Permalink
smoketest url endpoint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Alexander committed May 17, 2024
1 parent 83637bf commit 889de0d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const bucketName = `${workspace}-lloyd-george-store`;
const tableName = `${workspace}_LloydGeorgeReferenceMetadata`;
const fileName = `${activePatient}/e4a6d7f7-01f3-44be-8964-515b2c0ec180`;

const patientVerifyUrl = '/patient/verify';
const lloydGeorgeRecordUrl = '/patient/lloyd-george-record';

describe('GP Workflow: View Lloyd George record', () => {
context('Download Lloyd George document', () => {
beforeEach(() => {
Expand All @@ -36,10 +39,10 @@ describe('GP Workflow: View Lloyd George record', () => {
cy.get('#nhs-number-input').type(activePatient);
cy.get('#search-submit').click();

cy.url().should('contain', '/search/patient/verify');
cy.url().should('contain', patientVerifyUrl);
cy.get('#verify-submit').click();

cy.url().should('contain', '/patient/view/lloyd-george-record');
cy.url().should('contain', lloydGeorgeRecordUrl);

cy.getByTestId('pdf-viewer').should('be.visible');

Expand Down

0 comments on commit 889de0d

Please sign in to comment.