Skip to content

Commit 328b7cd

Browse files
committed
change https error message
1 parent d3169f4 commit 328b7cd

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

frontend/src/__tests__/components/forms/NhsAppTemplateForm/server-action.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('CreateNHSAppTemplate server actions', () => {
8787
errorState: {
8888
formErrors: [],
8989
fieldErrors: {
90-
nhsAppTemplateMessage: ['URLs cannot start with http://'],
90+
nhsAppTemplateMessage: ['URLs must start with https://'],
9191
},
9292
},
9393
});

frontend/src/__tests__/components/forms/SmsTemplateForm/server-action.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('CreateSmsTemplate server actions', () => {
8181
errorState: {
8282
formErrors: [],
8383
fieldErrors: {
84-
smsTemplateMessage: ['URLs cannot start with http://'],
84+
smsTemplateMessage: ['URLs must start with https://'],
8585
},
8686
},
8787
});

frontend/src/content/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const goBackButtonText = 'Go back';
1010
const enterATemplateName = 'Enter a template name';
1111
const enterATemplateMessage = 'Enter a template message';
1212
const templateMessageTooLong = 'Template message too long';
13-
const templateMessageHasInsecureLink = 'URLs cannot start with http://';
13+
const templateMessageHasInsecureLink = 'URLs must start with https://';
1414
const selectAnOption = 'Select an option';
1515

1616
const header = {

tests/test-team/template-mgmt-component-tests/email/template-mgmt-create-email-page.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ test.describe('Create Email message template Page', () => {
342342
test('when user submits form with an http link, then an error is displayed', async ({
343343
page,
344344
}) => {
345-
const errorMessage = 'URLs cannot start with http://';
345+
const errorMessage = 'URLs must start with https://';
346346

347347
const createEmailTemplatePage = new TemplateMgmtCreateEmailPage(page);
348348

tests/test-team/template-mgmt-component-tests/email/template-mgmt-edit-email-page.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ test.describe('Edit Email message template Page', () => {
423423
test('when user submits form with an http link, then an error is displayed', async ({
424424
page,
425425
}) => {
426-
const errorMessage = 'URLs cannot start with http://';
426+
const errorMessage = 'URLs must start with https://';
427427

428428
const createEmailTemplatePage = new TemplateMgmtEditEmailPage(page);
429429

tests/test-team/template-mgmt-component-tests/nhs-app/template-mgmt-create-nhs-app-template-page.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ test.describe('Create NHS App Template Page', () => {
174174

175175
await expect(
176176
page.locator('ul[class="nhsuk-list nhsuk-error-summary__list"] > li')
177-
).toHaveText(['URLs cannot start with http://']);
177+
).toHaveText(['URLs must start with https://']);
178178
});
179179

180180
test('Validate error messages on the create NHS App message template page with angle brackets in linked url', async ({

tests/test-team/template-mgmt-component-tests/nhs-app/template-mgmt-edit-nhs-app-template-page.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ test.describe('Edit NHS App Template Page', () => {
235235

236236
await expect(
237237
page.locator('ul[class="nhsuk-list nhsuk-error-summary__list"] > li')
238-
).toHaveText(['URLs cannot start with http://']);
238+
).toHaveText(['URLs must start with https://']);
239239
});
240240

241241
test('Validate error messages on the edit NHS App message template page with angle brackets in linked url', async ({

tests/test-team/template-mgmt-component-tests/sms/template-mgmt-create-sms-page.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ test.describe('Create SMS message template Page', () => {
315315
test('when user submits form with an http link, then an error is displayed', async ({
316316
page,
317317
}) => {
318-
const errorMessage = 'URLs cannot start with http://';
318+
const errorMessage = 'URLs must start with https://';
319319

320320
const createSmsTemplatePage = new TemplateMgmtCreateSmsPage(page);
321321

tests/test-team/template-mgmt-component-tests/sms/template-mgmt-edit-sms-page.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ test.describe('Edit SMS message template Page', () => {
391391
test('when user submits form with an http link, then an error is displayed', async ({
392392
page,
393393
}) => {
394-
const errorMessage = 'URLs cannot start with http://';
394+
const errorMessage = 'URLs must start with https://';
395395

396396
const createSmsTemplatePage = new TemplateMgmtEditSmsPage(page);
397397

0 commit comments

Comments
 (0)