Skip to content

Commit 28a6536

Browse files
committed
CCM-14583: review
1 parent 0f8c892 commit 28a6536

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

frontend/src/app/review-and-approve-letter-template/[templateId]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const ReviewAndApproveLetterTemplatePage = async (props: TemplatePageProps) => {
5151
}
5252

5353
if (
54-
// since lock number is unchanged, the following should never be true
5554
!validatedTemplate.letterVariantId ||
5655
validatedTemplate.files.longFormRender?.status !== 'RENDERED' ||
5756
validatedTemplate.files.shortFormRender?.status !== 'RENDERED'

tests/test-team/template-mgmt-accessibility/letter-templates.accessibility.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ test.describe('Letter templates', () => {
380380
}
381381
));
382382

383-
test('Get ready to approve letter template', async ({ page, analyze }) =>
383+
test('Get ready to approve letter template page', async ({
384+
page,
385+
analyze,
386+
}) =>
384387
analyze(
385388
new TemplateMgmtGetReadyToApproveLetterTemplatePage(page).setPathParam(
386389
'templateId',

tests/test-team/template-mgmt-component-tests/letter/template-mgmt-get-ready-to-approve-letter.component.spec.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ test.describe('Get ready to approve letter template page', () => {
2121
const templateStorageHelper = new TemplateStorageHelper();
2222

2323
test.beforeAll(async () => {
24-
const user = await getTestContext().auth.getTestUser(
25-
testUsers.User1.userId
26-
);
24+
const context = getTestContext();
25+
26+
const user = await context.auth.getTestUser(testUsers.User1.userId);
27+
28+
const [globalVariant] =
29+
await context.letterVariants.getGlobalLetterVariants();
2730

2831
await templateStorageHelper.seedTemplateData([
2932
TemplateFactory.uploadLetterTemplate(
@@ -35,7 +38,13 @@ test.describe('Get ready to approve letter template page', () => {
3538
TemplateFactory.createAuthoringLetterTemplate(
3639
templateIds.LETTER_AUTHORING,
3740
user,
38-
`Authoring letter - ${templateIds.LETTER_AUTHORING}`
41+
`Authoring letter - ${templateIds.LETTER_AUTHORING}`,
42+
'NOT_YET_SUBMITTED',
43+
{
44+
letterVariantId: globalVariant.id,
45+
shortFormRender: { status: 'RENDERED' },
46+
longFormRender: { status: 'RENDERED' },
47+
}
3948
),
4049
]);
4150
});
@@ -70,9 +79,7 @@ test.describe('Get ready to approve letter template page', () => {
7079
await assertFooterLinks(props);
7180
});
7281

73-
// TODO: CCM-14753 - unskip test then ticket is merged
74-
// eslint-disable-next-line playwright/no-skipped-test
75-
test.skip('when user clicks "Continue", then user is taken to review and approve letter template page', async ({
82+
test('when user clicks "Continue", then user is taken to review and approve letter template page', async ({
7683
page,
7784
baseURL,
7885
}) => {

0 commit comments

Comments
 (0)