Skip to content

Commit dbced21

Browse files
committed
CCM-9118 e2e test changes
1 parent eae5e1b commit dbced21

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/test-team/template-mgmt-e2e-tests/template-mgmt-letter-full.e2e.spec.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -130,34 +130,34 @@ test.describe('letter complete e2e journey', () => {
130130
await expect(page).toHaveURL(TemplateMgmtPreviewLetterPage.urlRegexp);
131131
await expect(previewTemplatePage.continueButton).toBeHidden();
132132

133-
// invoke SFTP poll lambda
134-
await lambdaClient.send(
135-
new InvokeCommand({
136-
FunctionName: process.env.SFTP_POLL_LAMBDA_NAME,
137-
Payload: JSON.stringify({
138-
supplier: 'WTMMOCK',
139-
}),
140-
})
141-
);
142-
143133
await expect(async () => {
134+
// invoke SFTP poll lambda
135+
await lambdaClient.send(
136+
new InvokeCommand({
137+
FunctionName: process.env.SFTP_POLL_LAMBDA_NAME,
138+
Payload: JSON.stringify({
139+
supplier: 'WTMMOCK',
140+
}),
141+
})
142+
);
143+
144144
const template = await templateStorageHelper.getTemplate(key);
145145

146146
const pdfVersionId = template.files?.pdfTemplate?.currentVersion;
147147

148148
const batchId = `${templateId}-0000000000000_${pdfVersionId!.replaceAll('-', '').slice(0, 27)}`;
149149

150150
expect(template.files?.proofs).toEqual({
151-
[`${batchId}_proof-1`]: {
152-
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof-1.pdf`,
151+
[`${batchId}_proof_1`]: {
152+
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof_1.pdf`,
153153
virusScanStatus: 'PASSED',
154154
},
155-
[`${batchId}_proof-2`]: {
156-
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof-2.pdf`,
155+
[`${batchId}_proof_2`]: {
156+
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof_2.pdf`,
157157
virusScanStatus: 'PASSED',
158158
},
159-
[`${batchId}_proof-3`]: {
160-
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof-3.pdf`,
159+
[`${batchId}_proof_3`]: {
160+
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof_3.pdf`,
161161
virusScanStatus: 'PASSED',
162162
},
163163
});

0 commit comments

Comments
 (0)