Skip to content

Commit 3bd4312

Browse files
authored
CCM-9469: Update template sumbitted text (#407)
1 parent fc471ce commit 3bd4312

File tree

8 files changed

+8
-88
lines changed

8 files changed

+8
-88
lines changed

frontend/src/__tests__/components/molecules/__snapshots__/TemplateSubmitted.test.tsx.snap

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,13 @@ exports[`TemplateSubmitted component should render 1`] = `
4343
>
4444
template-id
4545
</p>
46-
<h2
46+
<h3
4747
class="nhsuk-u-margin-top-5"
4848
>
4949
What you need to do next
50-
</h2>
51-
<h3>
52-
If you're currently onboarding
53-
</h3>
54-
<p>
55-
Tell your onboarding manager once you've submitted all your templates.
56-
</p>
57-
<h3>
58-
If you've already onboarded
5950
</h3>
6051
<p>
61-
Once you've submitted all your templates
62-
<a
63-
href="https://nhsdigitallive.service-now.com/nhs_digital?id=sc_cat_item&sys_id=6208dbce1be759102eee65b9bd4bcbf5"
64-
id="servicenow-link"
65-
rel="noopener noreferrer"
66-
target="_blank"
67-
>
68-
raise a request with the service desk (opens in a new tab).
69-
</a>
52+
Tell an onboarding manager once you've submitted all your templates.
7053
</p>
7154
<hr
7255
class="nhsuk-section-break--visible"

frontend/src/components/molecules/TemplateSubmitted/TemplateSubmitted.tsx

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import Link from 'next/link';
44
import { NHSNotifyMain } from '@atoms/NHSNotifyMain/NHSNotifyMain';
55
import content from '@content/content';
66

7-
type TemplateSubmittedProps = {
8-
templateId: string;
9-
templateName: string;
10-
};
7+
type TemplateSubmittedProps = { templateId: string; templateName: string };
118

129
export const TemplateSubmitted = ({
1310
templateId,
@@ -19,11 +16,7 @@ export const TemplateSubmitted = ({
1916
templateNameHeading,
2017
templateIdHeading,
2118
doNextHeading,
22-
notLiveHeading,
23-
notLiveText,
24-
liveHeading,
25-
liveLinkText,
26-
liveText,
19+
doNextText,
2720
} = content.components.templateSubmitted;
2821

2922
return (
@@ -46,21 +39,8 @@ export const TemplateSubmitted = ({
4639
{templateIdHeading}
4740
</h2>
4841
<p id='template-id'>{templateId}</p>
49-
<h2 className='nhsuk-u-margin-top-5'>{doNextHeading}</h2>
50-
<h3>{notLiveHeading}</h3>
51-
<p>{notLiveText}</p>
52-
<h3>{liveHeading}</h3>
53-
<p>
54-
{liveText}{' '}
55-
<Link
56-
id='servicenow-link'
57-
href='https://nhsdigitallive.service-now.com/nhs_digital?id=sc_cat_item&sys_id=6208dbce1be759102eee65b9bd4bcbf5'
58-
target='_blank'
59-
rel='noopener noreferrer'
60-
>
61-
{liveLinkText}
62-
</Link>
63-
</p>
42+
<h3 className='nhsuk-u-margin-top-5'>{doNextHeading}</h3>
43+
<p>{doNextText}</p>
6444
<hr className='nhsuk-section-break--visible' />
6545
<p>
6646
<Link id='go-back-link' href='/message-templates'>

frontend/src/content/content.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,8 @@ const templateSubmitted = {
518518
templateNameHeading: 'Template name',
519519
templateIdHeading: 'Template ID',
520520
doNextHeading: 'What you need to do next',
521-
notLiveHeading: "If you're currently onboarding",
522-
notLiveText:
523-
"Tell your onboarding manager once you've submitted all your templates.",
524-
liveHeading: "If you've already onboarded",
525-
liveText: "Once you've submitted all your templates",
526-
liveLinkText: 'raise a request with the service desk (opens in a new tab).',
521+
doNextText:
522+
"Tell an onboarding manager once you've submitted all your templates.",
527523
backLinkText: backToAllTemplates,
528524
};
529525

frontend/src/domain/errors/coded.error.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

frontend/src/domain/errors/db-operation.error.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

frontend/src/domain/errors/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/test-team/pages/template-mgmt-template-submitted-base-page.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export abstract class TemplateMgmtTemplateSubmittedBasePage extends TemplateMgmt
88

99
public readonly createAnotherTemplateLink: Locator;
1010

11-
public readonly serviceNowLink: Locator;
12-
1311
public readonly goBackLink: Locator;
1412

1513
constructor(page: Page) {
@@ -19,7 +17,6 @@ export abstract class TemplateMgmtTemplateSubmittedBasePage extends TemplateMgmt
1917
this.createAnotherTemplateLink = page.locator(
2018
'[id="create-another-template"]'
2119
);
22-
this.serviceNowLink = page.locator('[id="servicenow-link"]');
2320
this.goBackLink = page.locator('#go-back-link');
2421
}
2522

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ test.describe('Template Submitted Page', () => {
103103
await expect(templateSubmittedPage.templateIdText).toHaveText(
104104
templates[channelIdentifier].id
105105
);
106-
107-
await expect(templateSubmittedPage.serviceNowLink).toHaveAttribute(
108-
'href',
109-
'https://nhsdigitallive.service-now.com/nhs_digital?id=sc_cat_item&sys_id=6208dbce1be759102eee65b9bd4bcbf5'
110-
);
111106
});
112107

113108
// eslint-disable-next-line no-loop-func

0 commit comments

Comments
 (0)