Skip to content

Commit c3395c2

Browse files
[PRMP-561] [Add files] Update document upload to allow adding files (#825)
Co-authored-by: adamwhitingnhs <[email protected]>
1 parent 024ff02 commit c3395c2

File tree

26 files changed

+2494
-230
lines changed

26 files changed

+2494
-230
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
@@ -95,6 +95,16 @@ describe('GP Workflow: View Lloyd George record', () => {
9595
body: viewLloydGeorgePayload,
9696
});
9797
}).as('stitchJobCompleted');
98+
99+
return new Date(viewLloydGeorgePayload.lastUpdated).toLocaleDateString('en-GB', {
100+
day: '2-digit',
101+
month: 'long',
102+
year: 'numeric',
103+
hour: 'numeric',
104+
minute: 'numeric',
105+
second: 'numeric',
106+
timeZone: 'Europe/London',
107+
});
98108
};
99109

100110
gpRoles.forEach((role) => {
@@ -106,16 +116,17 @@ describe('GP Workflow: View Lloyd George record', () => {
106116
roleName(role) + ' can view a Lloyd George document of an active patient',
107117
{ tags: 'regression' },
108118
() => {
109-
setUpStitchJobIntercepts();
119+
const date = setUpStitchJobIntercepts();
110120

111121
cy.get('#verify-submit').click();
112122
cy.wait('@stitchJobCompleted', { timeout: 20000 });
113123

114124
// Assert
115125
assertPatientInfo();
126+
cy.getByTestId('pdf-card').scrollIntoView();
116127
cy.getByTestId('pdf-card')
117128
.should('include.text', 'Lloyd George record')
118-
.should('include.text', 'Last updated: 09 October 2023 at 15:41:38');
129+
.should('include.text', `Last updated: ${date}`);
119130
cy.getByTestId('pdf-viewer').should('be.visible');
120131

121132
// Act - open full screen view

0 commit comments

Comments
 (0)