Skip to content

Commit ee17f3d

Browse files
CCM-9247: Fix e2e tests
1 parent 6e73a64 commit ee17f3d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

tests/test-team/template-mgmt-api-tests/create-letter-template.api.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ test.describe('POST /v1/letter-template', () => {
9898
fileName: 'test-data.csv',
9999
virusScanStatus: 'PENDING',
100100
},
101+
proofs: {},
101102
},
102103
},
103104
});
@@ -176,6 +177,7 @@ test.describe('POST /v1/letter-template', () => {
176177
fileName: 'template.pdf',
177178
virusScanStatus: 'PENDING',
178179
},
180+
proofs: {},
179181
},
180182
},
181183
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ test.describe('letter file validation', () => {
238238
expect(csv?.ChecksumSHA256).toEqual(
239239
pdfUploadFixtures.withPersonalisation.csv.checksumSha256()
240240
);
241-
}).toPass({ timeout: 40_000 });
241+
}).toPass({ timeout: 60_000 });
242242
});
243243

244244
test('validation fails if pdf parameters and test data parameters do not match', async ({

tests/test-team/template-mgmt-e2e-tests/template-mgmt-proofing.e2e.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ const authHelper = createAuthHelper();
1515
const sftpHelper = new SftpHelper();
1616
const lambdaClient = new LambdaClient({ region: 'eu-west-2' });
1717

18+
beforeAll(async () => {
19+
await sftpHelper.connect();
20+
});
21+
22+
afterAll(async () => {
23+
await sftpHelper.end();
24+
});
25+
1826
test('proofs are downloaded and linked to the DB entry', async () => {
1927
const templateId = 'test-template-id-proofing-e2e-success';
2028
const user = await authHelper.getTestUser(TestUserId.User1);

0 commit comments

Comments
 (0)