Skip to content

Commit f07b211

Browse files
Make templateStatuses const
1 parent 9edcd4f commit f07b211

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

amplify/data/resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const templateTypes = [
2323
const templateStatuses = [
2424
TemplateStatus.NOT_YET_SUBMITTED,
2525
TemplateStatus.SUBMITTED,
26-
];
26+
] as const;
2727

2828
const TemplateStorageModel = {
2929
id: a.string().required(),

tests/test-team/pages/email/template-mgmt-preview-email-page.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ export class TemplateMgmtPreviewEmailPage extends TemplateMgmtBasePage {
1212

1313
public readonly messageText: Locator;
1414

15-
public readonly whoYourEmailWillBeSentFrom: Locator;
16-
1715
constructor(page: Page) {
1816
super(page);
1917
this.editRadioOption = page.locator(
@@ -25,9 +23,6 @@ export class TemplateMgmtPreviewEmailPage extends TemplateMgmtBasePage {
2523
this.errorSummary = page.locator('[class="nhsuk-error-summary"]');
2624
this.subjectLineText = page.locator('[id="preview-content-subject"]');
2725
this.messageText = page.locator('[id="preview-content-message"]');
28-
this.whoYourEmailWillBeSentFrom = page.locator(
29-
'[data-testid="preview-message-details"]'
30-
);
3126
}
3227

3328
async loadPage(templateId: string) {

tests/test-team/pages/nhs-app/template-mgmt-preview-nhs-app-page.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export class TemplateMgmtPreviewNhsAppPage extends TemplateMgmtBasePage {
1010

1111
public readonly messageText: Locator;
1212

13-
public readonly whoYourNhsAppNotificationWillBeSentFrom: Locator;
14-
1513
constructor(page: Page) {
1614
super(page);
1715
this.editRadioOption = page.locator(
@@ -22,9 +20,6 @@ export class TemplateMgmtPreviewNhsAppPage extends TemplateMgmtBasePage {
2220
);
2321
this.errorSummary = page.locator('[class="nhsuk-error-summary"]');
2422
this.messageText = page.locator('[id="preview-content-message"]');
25-
this.whoYourNhsAppNotificationWillBeSentFrom = page.locator(
26-
'[data-testid="preview-message-details"]'
27-
);
2823
}
2924

3025
async loadPage(sessionId: string) {

0 commit comments

Comments
 (0)