Skip to content

Commit a78adeb

Browse files
authored
[PRMP-1175] Remove Christmas notification banner (#979)
1 parent 613d8fe commit a78adeb

File tree

3 files changed

+10
-42
lines changed

3 files changed

+10
-42
lines changed

app/src/pages/startPage/StartPage.test.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ describe('StartPage', () => {
5151
);
5252
expect(downloadOdsReport).toHaveLength(2);
5353

54-
const contact = screen.getAllByText(/Contact the/i);
55-
expect(contact.length).toBe(2);
56-
const contactLinks = screen.getAllByRole('link', {
57-
name: /NHS National Service Desk/i,
58-
});
59-
expect(contactLinks.length).toBe(2);
54+
expect(screen.getByText(/Contact the/i)).toBeInTheDocument();
55+
expect(
56+
screen.getByRole('link', {
57+
name: /NHS National Service Desk/i,
58+
}),
59+
).toBeInTheDocument();
6060
expect(
6161
screen.getByText(/if there is an issue with this service or call 0300 303 5035\./i),
6262
).toBeInTheDocument();
@@ -65,20 +65,19 @@ describe('StartPage', () => {
6565
it('renders a service link that takes you to service help-desk in a new tab', () => {
6666
render(<StartPage />);
6767

68-
const contactTexts = screen.getAllByText(/Contact the/i);
69-
expect(contactTexts.length).toBe(2);
70-
const nationalServiceDeskLink = screen.getAllByRole('link', {
68+
expect(screen.getByText(/Contact the/i)).toBeInTheDocument();
69+
const nationalServiceDeskLink = screen.getByRole('link', {
7170
name: /NHS National Service Desk/i,
7271
});
7372
expect(
7473
screen.getByText(/if there is an issue with this service or call 0300 303 5035/i),
7574
).toBeInTheDocument();
7675

77-
expect(nationalServiceDeskLink[1]).toHaveAttribute(
76+
expect(nationalServiceDeskLink).toHaveAttribute(
7877
'href',
7978
'https://digital.nhs.uk/about-nhs-digital/contact-us#nhs-digital-service-desks',
8079
);
81-
expect(nationalServiceDeskLink[1]).toHaveAttribute('target', '_blank');
80+
expect(nationalServiceDeskLink).toHaveAttribute('target', '_blank');
8281
});
8382

8483
it('pass accessibility checks', async () => {

app/src/pages/startPage/StartPage.tsx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import useBaseAPIUrl from '../../helpers/hooks/useBaseAPIUrl';
1010
import TestPanel from '../../components/blocks/testPanel/TestPanel';
1111
import ServiceDeskLink from '../../components/generic/serviceDeskLink/ServiceDeskLink';
1212
import useTitle from '../../helpers/hooks/useTitle';
13-
import NotificationBanner from '../../components/layout/notificationBanner/NotificationBanner';
1413

1514
const StartPage = (): React.JSX.Element => {
1615
const navigate = useNavigate();
@@ -27,36 +26,11 @@ const StartPage = (): React.JSX.Element => {
2726
}
2827
};
2928

30-
const nhsServiceDeskLink = <ServiceDeskLink />;
31-
const nationalServiceDeskEmail = (
32-
33-
);
34-
3529
const pageHeader = 'Access and store digital patient documents';
3630
useTitle({ pageTitle: pageHeader });
3731

3832
return !isLoading ? (
3933
<>
40-
<NotificationBanner
41-
title="Important"
42-
className="start_page_notification_banner"
43-
dataTestId="start_page_notification_banner"
44-
scrollToRef={null}
45-
>
46-
<span>
47-
<p>
48-
<b>
49-
There will be reduced support for this service between 24 December 2025
50-
and 2 January 2026
51-
</b>
52-
</p>
53-
<p>
54-
If there is a problem with this service between these dates, contact the{' '}
55-
{nhsServiceDeskLink} on 0300 303 5035, or email {nationalServiceDeskEmail}.
56-
</p>
57-
</span>
58-
</NotificationBanner>
59-
6034
<h1>{pageHeader}</h1>
6135
<p>
6236
This service gives you access to Lloyd George digital health records. You may have

app/src/styles/App.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,11 +1161,6 @@ $hunit: '%';
11611161
border-color: black;
11621162
}
11631163

1164-
.start_page_notification_banner {
1165-
background-color: #005eb8;
1166-
border-color: #005eb8;
1167-
}
1168-
11691164
.download-failed-banner {
11701165
max-width: fit-content;
11711166
}

0 commit comments

Comments
 (0)