Skip to content

Commit eae5e1b

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

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,21 @@ test.describe('letter complete e2e journey', () => {
143143
await expect(async () => {
144144
const template = await templateStorageHelper.getTemplate(key);
145145

146+
const pdfVersionId = template.files?.pdfTemplate?.currentVersion;
147+
148+
const batchId = `${templateId}-0000000000000_${pdfVersionId!.replaceAll('-', '').slice(0, 27)}`;
149+
146150
expect(template.files?.proofs).toEqual({
147-
'proof-1': {
148-
fileName: `proofs/${user.userId}/${templateId}/proof-1.pdf`,
151+
[`${batchId}_proof-1`]: {
152+
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof-1.pdf`,
149153
virusScanStatus: 'PASSED',
150154
},
151-
'proof-2': {
152-
fileName: `proofs/${user.userId}/${templateId}/proof-2.pdf`,
155+
[`${batchId}_proof-2`]: {
156+
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof-2.pdf`,
153157
virusScanStatus: 'PASSED',
154158
},
155-
'proof-3': {
156-
fileName: `proofs/${user.userId}/${templateId}/proof-3.pdf`,
159+
[`${batchId}_proof-3`]: {
160+
fileName: `proofs/${user.userId}/${templateId}/${batchId}_proof-3.pdf`,
157161
virusScanStatus: 'PASSED',
158162
},
159163
});

0 commit comments

Comments
 (0)