From 82a71c67dff76a94c14fdc213452db3bf8f10bd1 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 7 Jan 2020 17:47:17 +0000 Subject: [PATCH] Make button more buttony `role=button` for users of voice control software `draggable=false` as per https://github.com/alphagov/govuk-frontend/pull/1020 --- app/templates/views/signedout.html | 2 +- tests/app/main/views/test_index.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates/views/signedout.html b/app/templates/views/signedout.html index ea9e7db75..8f6906b89 100644 --- a/app/templates/views/signedout.html +++ b/app/templates/views/signedout.html @@ -31,7 +31,7 @@ Try GOV.UK Notify now if you work in central government, a local authority, or the NHS.

- + Create an account or sign in if you’ve used diff --git a/tests/app/main/views/test_index.py b/tests/app/main/views/test_index.py index d5c744c0e..2b5232178 100644 --- a/tests/app/main/views/test_index.py +++ b/tests/app/main/views/test_index.py @@ -21,6 +21,10 @@ def test_non_logged_in_user_can_see_homepage( 'Send emails, text messages and letters to your users' ) + assert page.select_one('a[role=button][draggable=false]')['href'] == url_for( + 'main.register' + ) + assert page.select_one('meta[name=description]')['content'].strip() == ( 'GOV.UK Notify lets you send emails, text messages and letters ' 'to your users. Try it now if you work in central government, a '