From f5f448f7020d524219c9a81b195487a0dbf0db59 Mon Sep 17 00:00:00 2001 From: stephhou Date: Mon, 9 Mar 2026 13:23:58 +0000 Subject: [PATCH 1/8] Added new cookies page, updated urls and footer link --- .../core/jinja2/layout.jinja | 4 + .../questions/jinja2/cookies.jinja | 107 ++++++++++++++++++ lung_cancer_screening/questions/urls.py | 1 + 3 files changed, 112 insertions(+) create mode 100644 lung_cancer_screening/questions/jinja2/cookies.jinja diff --git a/lung_cancer_screening/core/jinja2/layout.jinja b/lung_cancer_screening/core/jinja2/layout.jinja index 71fd83c2..d8530ab0 100644 --- a/lung_cancer_screening/core/jinja2/layout.jinja +++ b/lung_cancer_screening/core/jinja2/layout.jinja @@ -56,6 +56,10 @@ {{ footer({ "meta": { "items": [ + { + "href": url("questions:cookies"), + "text": "Cookies" + }, { "href": url("questions:privacy_policy"), "text": "Privacy policy" diff --git a/lung_cancer_screening/questions/jinja2/cookies.jinja b/lung_cancer_screening/questions/jinja2/cookies.jinja new file mode 100644 index 00000000..9d7f8d9c --- /dev/null +++ b/lung_cancer_screening/questions/jinja2/cookies.jinja @@ -0,0 +1,107 @@ +{% extends 'layout.jinja' %} + +{% block content %} + +
+
+

NHS check if you need a lung scan cookies policy

+
+

Version 1.0, 11 March 2025

+
+
+

Information:

+ +

First release of the service for pilot GP surgeries.

+ +

This cookies policy relates to the service provided by NHS England.

+ +

NHS England ("we" or "us") uses cookies to deliver the NHS check if you need a lung scan.

+ +

The information set out in this policy is provided in addition to the NHS check if you need a lung scan privacy + policy and should be read alongside it.

+ +

We put small files called cookies on your device (for example, your phone).

+ +

Cookies are widely used to make websites and apps work, or work more efficiently, as well as to provide + services and functionalities for users.

+ +

We only put cookies on your device that are required for the NHS check if you need a lung scan to work + ("strictly necessary cookies").

+ +

We ask you to accept our cookies policy when you accept the NHS check if you need a lung scan terms of use and + privacy policy. In doing so, you agree to let us put the strictly necessary cookies on your device.

+ +

The strictly necessary cookies we need to put on your device for the NHS check if you need a lung scan to work + are listed here.

+
+ +
+
+ + + + + + + + + + + + + + + + +
Essential cookies
NamePurposeDescription
+

auth

+
+

This cookie is set when you log in to the NHS check if you need a lung scan service. + It makes temporary use of your personal information previously collected by us. + It's used to ensure you're securely logged in and your information is secure and is deleted when your + session ends.

+
+

The end of the session. When you close the app or browser window, sign out or your session expires. +

+
+
+
+
+

Cookies set by Qualtrics

+

The NHS check if you need a lung scan uses Qualtrics cookies for the purpose of capturing responses to feedback + surveys.

+ +

Details on how Qualtrics uses cookies can be found in the Qualtrics cookies policy, which can be accessed from + within the feedback survey.

+ +
+
+

Your cookie choices

+

The majority of devices and browsers will allow you to alter the settings used for cookies and disable and + enable them as you require.

+ +

You can select your cookie preferences so that you do not get any cookies (except strictly necessary cookies) + if you prefer not to receive them.

+ +

You can also delete the cookies already on your device, and you can set your browser or device to prevent them + being placed.

+ +

Please be aware that if you set your preferences to not allow cookies, it could limit the functionality of the + NHS check if you need a lung scan as it needs the strictly necessary cookies to function.

+
+
+

Changes to this cookies policy

+

The NHS check if you need a lung scan terms of use, + privacy policy and cookies policy may change. If + you use the NHS check if you need a lung scan service again in the future you will be subject to the policies + which exist at that time. +

+
+

Version history

+

Version 1, 11 March 2025 - first release of the service for pilot GP surgeries.

+
+
+
+{% endblock %} diff --git a/lung_cancer_screening/questions/urls.py b/lung_cancer_screening/questions/urls.py index 04a95a5f..a32af907 100644 --- a/lung_cancer_screening/questions/urls.py +++ b/lung_cancer_screening/questions/urls.py @@ -81,4 +81,5 @@ path('weight', WeightView.as_view(), name='weight'), path('confirmation', ConfirmationView.as_view(), name='confirmation'), path('privacy-policy', TemplateView.as_view(template_name='privacy_policy.jinja'), name='privacy_policy'), + path('cookies', TemplateView.as_view(template_name='cookies.jinja'), name='cookies'), ] From 09f2274bc5a6f8de988a608ad801c10f66fe9c2b Mon Sep 17 00:00:00 2001 From: stephhou Date: Mon, 9 Mar 2026 14:26:23 +0000 Subject: [PATCH 2/8] test:Added ui test for Cookies page --- features/cookies.feature | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 features/cookies.feature diff --git a/features/cookies.feature b/features/cookies.feature new file mode 100644 index 00000000..840d9c68 --- /dev/null +++ b/features/cookies.feature @@ -0,0 +1,6 @@ +@Cookies +Feature: Cookies page + Scenario: The page is accessible + Given I am logged in + When I go to "/cookies" + Then there are no accessibility violations From 69ce6f349289b8c7af09d98805a7038e58c03233 Mon Sep 17 00:00:00 2001 From: stephhou Date: Mon, 9 Mar 2026 14:44:58 +0000 Subject: [PATCH 3/8] test: made static page tests more generic --- features/cookies.feature | 6 ------ features/static.feature | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 features/cookies.feature create mode 100644 features/static.feature diff --git a/features/cookies.feature b/features/cookies.feature deleted file mode 100644 index 840d9c68..00000000 --- a/features/cookies.feature +++ /dev/null @@ -1,6 +0,0 @@ -@Cookies -Feature: Cookies page - Scenario: The page is accessible - Given I am logged in - When I go to "/cookies" - Then there are no accessibility violations diff --git a/features/static.feature b/features/static.feature new file mode 100644 index 00000000..90d8bf95 --- /dev/null +++ b/features/static.feature @@ -0,0 +1,8 @@ +@StaticContent +Feature: Static Pages + Scenario: The cookies page is accessible + Given I am logged in + When I go to "/cookies" + Then there are no accessibility violations + When I go to "/privacy-policy" + Then there are no accessibility violations From 735c0e4589ab315b515ce4c32c5bf1360367302c Mon Sep 17 00:00:00 2001 From: stephhou Date: Mon, 9 Mar 2026 15:02:14 +0000 Subject: [PATCH 4/8] test: updated scenario name --- features/static.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/static.feature b/features/static.feature index 90d8bf95..7b503ee1 100644 --- a/features/static.feature +++ b/features/static.feature @@ -1,6 +1,6 @@ @StaticContent Feature: Static Pages - Scenario: The cookies page is accessible + Scenario: The static pages are accessible Given I am logged in When I go to "/cookies" Then there are no accessibility violations From 1d196bec392aaf957acc6564bdb5fcd2d65f3a2e Mon Sep 17 00:00:00 2001 From: stephhou Date: Mon, 9 Mar 2026 16:08:58 +0000 Subject: [PATCH 5/8] feat:Removed section, added inset text --- .../questions/jinja2/cookies.jinja | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lung_cancer_screening/questions/jinja2/cookies.jinja b/lung_cancer_screening/questions/jinja2/cookies.jinja index 9d7f8d9c..8f9d455e 100644 --- a/lung_cancer_screening/questions/jinja2/cookies.jinja +++ b/lung_cancer_screening/questions/jinja2/cookies.jinja @@ -1,17 +1,18 @@ {% extends 'layout.jinja' %} + {% block content %}

NHS check if you need a lung scan cookies policy

-
-

Version 1.0, 11 March 2025

-
-
-

Information:

+
+ Information: +

Version 1.0, 11 March 2025

+
+ -

First release of the service for pilot GP surgeries.

+

This cookies policy relates to the service provided by NHS England.

From ca01ec10a3529088abb5ca8acba1687ac837b81d Mon Sep 17 00:00:00 2001 From: stephhou Date: Mon, 9 Mar 2026 17:07:26 +0000 Subject: [PATCH 6/8] fix: updates to tests and content --- features/static.feature | 10 ++++++- .../questions/jinja2/cookies.jinja | 29 ++++++++++--------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/features/static.feature b/features/static.feature index 7b503ee1..65cf7c0a 100644 --- a/features/static.feature +++ b/features/static.feature @@ -1,8 +1,16 @@ @StaticContent Feature: Static Pages - Scenario: The static pages are accessible +Scenario: The static pages are available without logging in + When I go to "/cookies" + Then I see a page title "NHS check if you need a lung scan cookies policy" + When I go to "/privacy-policy" + Then I see a page title "NHS check if you need a lung scan privacy policy" + + Scenario: The static pages are available when logged in and accessible Given I am logged in When I go to "/cookies" Then there are no accessibility violations + And I see a page title "NHS check if you need a lung scan cookies policy" When I go to "/privacy-policy" Then there are no accessibility violations + And I see a page title "NHS check if you need a lung scan privacy policy" diff --git a/lung_cancer_screening/questions/jinja2/cookies.jinja b/lung_cancer_screening/questions/jinja2/cookies.jinja index 8f9d455e..2c3f3e85 100644 --- a/lung_cancer_screening/questions/jinja2/cookies.jinja +++ b/lung_cancer_screening/questions/jinja2/cookies.jinja @@ -1,25 +1,23 @@ {% extends 'layout.jinja' %} - {% block content %} -

NHS check if you need a lung scan cookies policy

+

Version 1.0, 09 March 2026

- Information: -

Version 1.0, 11 March 2025

-
- - + Information: +

First release of the service for pilot GP surgeries.

+

This cookies policy relates to the service provided by NHS England.

NHS England ("we" or "us") uses cookies to deliver the NHS check if you need a lung scan.

-

The information set out in this policy is provided in addition to the NHS check if you need a lung scan privacy +

The information set out in this policy is provided in addition to the NHS check if you need a lung scan + privacy policy and should be read alongside it.

We put small files called cookies on your device (for example, your phone).

@@ -45,7 +43,7 @@ Name Purpose - Description + Expires @@ -74,7 +72,7 @@ surveys.

Details on how Qualtrics uses cookies can be found in the Qualtrics cookies policy, which can be accessed from + target="_blank" rel="noopener">Qualtrics cookies policy, which can be accessed from within the feedback survey.

@@ -94,14 +92,17 @@

Changes to this cookies policy

-

The NHS check if you need a lung scan terms of use, - privacy policy and cookies policy may change. If +

The NHS check if you need a lung scan terms of + use, + privacy policy and cookies + policy may change. If you use the NHS check if you need a lung scan service again in the future you will be subject to the policies which exist at that time. +

Version history

-

Version 1, 11 March 2025 - first release of the service for pilot GP surgeries.

+

Version 1, 09 March 2026 - first release of the service for pilot GP surgeries.

From fdb5a5cab37bc81b2978b1fa7abc651dd619fb09 Mon Sep 17 00:00:00 2001 From: stephhou Date: Mon, 9 Mar 2026 17:14:52 +0000 Subject: [PATCH 7/8] fix:indetntation --- lung_cancer_screening/questions/jinja2/cookies.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lung_cancer_screening/questions/jinja2/cookies.jinja b/lung_cancer_screening/questions/jinja2/cookies.jinja index 2c3f3e85..2f4e46eb 100644 --- a/lung_cancer_screening/questions/jinja2/cookies.jinja +++ b/lung_cancer_screening/questions/jinja2/cookies.jinja @@ -4,7 +4,9 @@

NHS check if you need a lung scan cookies policy

-

Version 1.0, 09 March 2026

+
+

Version 1.0, 09 March 2026

+
Information:

First release of the service for pilot GP surgeries.

From b8072cfa25eb9353d82be9f5becddd986a01821e Mon Sep 17 00:00:00 2001 From: Steph Housden <167300771+stephhou@users.noreply.github.com> Date: Tue, 10 Mar 2026 09:08:15 +0000 Subject: [PATCH 8/8] Update features/static.feature Indentation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Steph Housden <167300771+stephhou@users.noreply.github.com> --- features/static.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/static.feature b/features/static.feature index 65cf7c0a..27f6092c 100644 --- a/features/static.feature +++ b/features/static.feature @@ -1,6 +1,6 @@ @StaticContent Feature: Static Pages -Scenario: The static pages are available without logging in + Scenario: The static pages are available without logging in When I go to "/cookies" Then I see a page title "NHS check if you need a lung scan cookies policy" When I go to "/privacy-policy"