Skip to content

Commit 9bcb32a

Browse files
Merge pull request #224 from NHSDigital/feature/CCM-7568_remove_create_template_link
CCM-7568: Remove new template link from submitted page
2 parents 5ccc23a + 3b7346a commit 9bcb32a

File tree

4 files changed

+0
-28
lines changed

4 files changed

+0
-28
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ exports[`TemplateSubmitted component should render 1`] = `
3838
>
3939
template-id
4040
</p>
41-
<a
42-
href="/choose-a-template-type"
43-
id="create-another-template"
44-
>
45-
Create another template
46-
</a>
4741
<h2
4842
class="nhsuk-u-margin-top-5"
4943
>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const TemplateSubmitted = ({
1414
pageHeading,
1515
templateNameHeading,
1616
templateIdHeading,
17-
newTemplateText,
1817
doNextHeading,
1918
doNextText,
2019
notLiveHeading,
@@ -43,9 +42,6 @@ export const TemplateSubmitted = ({
4342
{templateIdHeading}
4443
</h2>
4544
<p id='template-id'>{templateId}</p>
46-
<Link id='create-another-template' href='/choose-a-template-type'>
47-
{newTemplateText}
48-
</Link>
4945
<h2 className='nhsuk-u-margin-top-5'>{doNextHeading}</h2>
5046
<p>{doNextText}</p>
5147
<h3>{notLiveHeading}</h3>

frontend/src/content/content.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ export const templateSubmittedPageContent = {
408408
pageHeading: 'Template submitted',
409409
templateNameHeading: 'Template name',
410410
templateIdHeading: 'Template ID',
411-
newTemplateText: 'Create another template',
412411
doNextHeading: 'What you need to do next',
413412
doNextText:
414413
"You'll receive a confirmation email, which contains the template name and ID.",

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,6 @@ test.describe('Template Submitted Page', () => {
101101
await assertLoginLink(props);
102102
await assertGoBackLinkNotPresent(props);
103103
});
104-
105-
test(`when user clicks ${channelName} "Create another template", then user is redirected to "choose-a-template-type"`, async ({
106-
page,
107-
}) => {
108-
const templateSubmittedPage = new TemplateMgmtTemplateSubmittedPage(
109-
page,
110-
channelIdentifier
111-
);
112-
113-
await templateSubmittedPage.loadPage(templates[channelIdentifier].id);
114-
115-
await templateSubmittedPage.clickCreateAnotherTemplateLink();
116-
117-
await expect(page).toHaveURL(
118-
new RegExp('/templates/choose-a-template-type')
119-
);
120-
});
121104
});
122105

123106
test.describe('Error handling', () => {

0 commit comments

Comments
 (0)