Skip to content

Commit 76b66de

Browse files
CCM-9247: Fix e2e tests
1 parent 0b1be2f commit 76b66de

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ test.describe('letter file validation', () => {
251251
expect(pdf?.ChecksumSHA256).toEqual(
252252
pdfUploadFixtures.withPersonalisation.pdf.checksumSha256()
253253
);
254-
}).toPass({ timeout: 20_000 });
254+
}).toPass({ timeout: 60_000 });
255255

256256
await page.reload();
257257

@@ -380,7 +380,7 @@ test.describe('letter file validation', () => {
380380
expect(template.templateStatus).toBe('VALIDATION_FAILED');
381381
expect(template.personalisationParameters).toBeUndefined();
382382
expect(template.testDataCsvHeaders).toBeUndefined();
383-
}).toPass({ timeout: 40_000 });
383+
}).toPass({ timeout: 60_000 });
384384

385385
await page.reload();
386386

@@ -433,7 +433,7 @@ test.describe('letter file validation', () => {
433433
expect(template.templateStatus).toBe('VALIDATION_FAILED');
434434
expect(template.personalisationParameters).toBeUndefined();
435435
expect(template.testDataCsvHeaders).toBeUndefined();
436-
}).toPass({ timeout: 40_000 });
436+
}).toPass({ timeout: 60_000 });
437437

438438
await page.reload();
439439

@@ -481,7 +481,7 @@ test.describe('letter file validation', () => {
481481
expect(template.templateStatus).toBe('VALIDATION_FAILED');
482482
expect(template.personalisationParameters).toBeUndefined();
483483
expect(template.testDataCsvHeaders).toBeUndefined();
484-
}).toPass({ timeout: 40_000 });
484+
}).toPass({ timeout: 60_000 });
485485

486486
await page.reload();
487487

@@ -582,7 +582,7 @@ test.describe('letter file validation', () => {
582582
expect(template.templateStatus).toBe('VALIDATION_FAILED');
583583
expect(template.personalisationParameters).toBeUndefined();
584584
expect(template.testDataCsvHeaders).toBeUndefined();
585-
}).toPass({ timeout: 40_000 });
585+
}).toPass({ timeout: 60_000 });
586586

587587
await page.reload();
588588

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ test.describe('letter complete e2e journey', () => {
114114

115115
const previewTemplatePage = new TemplateMgmtPreviewLetterPage(page);
116116
await expect(previewTemplatePage.continueButton).toBeVisible();
117+
}).toPass({ timeout: 40_000 });
118+
119+
await expect(async () => {
120+
const previewTemplatePage = new TemplateMgmtPreviewLetterPage(page);
117121
await previewTemplatePage.clickContinueButton();
118122

119123
await expect(page).toHaveURL(TemplateMgmtRequestProofPage.urlRegexp);

0 commit comments

Comments
 (0)