Skip to content

Commit 5e3296d

Browse files
lillie-daeadamwhitingnhs
authored andcommitted
[PRMP-561] [Add files] Update document upload to allow adding files
1 parent 0e6467c commit 5e3296d

File tree

20 files changed

+2452
-221
lines changed

20 files changed

+2452
-221
lines changed

app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/view_lloyd_george_workflow.cy.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ describe('GP Workflow: View Lloyd George record', () => {
8080
body: viewLloydGeorgePayload,
8181
});
8282
}).as('stitchJobCompleted');
83+
84+
return new Date(viewLloydGeorgePayload.lastUpdated).toLocaleDateString('en-GB', {
85+
day: '2-digit',
86+
month: 'long',
87+
year: 'numeric',
88+
hour: 'numeric',
89+
minute: 'numeric',
90+
second: 'numeric',
91+
timeZone: 'Europe/London',
92+
});
8393
};
8494

8595
gpRoles.forEach((role) => {
@@ -91,16 +101,17 @@ describe('GP Workflow: View Lloyd George record', () => {
91101
roleName(role) + ' can view a Lloyd George document of an active patient',
92102
{ tags: 'regression' },
93103
() => {
94-
setUpStitchJobIntercepts();
104+
const date = setUpStitchJobIntercepts();
95105

96106
cy.get('#verify-submit').click();
97107
cy.wait('@stitchJobCompleted', { timeout: 20000 });
98108

99109
// Assert
100110
assertPatientInfo();
111+
cy.getByTestId('pdf-card').scrollIntoView();
101112
cy.getByTestId('pdf-card')
102113
.should('include.text', 'Lloyd George record')
103-
.should('include.text', 'Last updated: 09 October 2023 at 15:41:38');
114+
.should('include.text', `Last updated: ${date}`);
104115
cy.getByTestId('pdf-viewer').should('be.visible');
105116

106117
// Act - open full screen view

0 commit comments

Comments
 (0)