diff --git a/app/main/views/api_keys.py b/app/main/views/api_keys.py index f8fccc83e..8ea786659 100644 --- a/app/main/views/api_keys.py +++ b/app/main/views/api_keys.py @@ -93,7 +93,7 @@ def create_api_key(service_id): disabled_options = [KEY_TYPE_NORMAL] option_hints[KEY_TYPE_NORMAL] = Markup( 'Not available because your service is in ' - 'trial mode' + 'trial mode' ) if current_service.has_permission('letter'): option_hints[KEY_TYPE_TEAM] = 'Cannot be used to send letters' diff --git a/app/main/views/invites.py b/app/main/views/invites.py index e2b32219f..99d676f8d 100644 --- a/app/main/views/invites.py +++ b/app/main/views/invites.py @@ -22,7 +22,8 @@ def accept_invite(token): message = Markup(""" You’re signed in as {}. This invite is for another email address. - Sign out and click the link again to accept this invite. + Sign out + and click the link again to accept this invite. """.format( current_user.email_address, url_for("main.sign_out", _external=True))) @@ -78,7 +79,8 @@ def accept_org_invite(token): message = Markup(""" You’re signed in as {}. This invite is for another email address. - Sign out and click the link again to accept this invite. + Sign out + and click the link again to accept this invite. """.format( current_user.email_address, url_for("main.sign_out", _external=True))) diff --git a/app/templates/views/service-settings/send-files-by-email.html b/app/templates/views/service-settings/send-files-by-email.html index 34b6c9cea..b2f8fd1f1 100644 --- a/app/templates/views/service-settings/send-files-by-email.html +++ b/app/templates/views/service-settings/send-files-by-email.html @@ -21,7 +21,7 @@ This is an API-only feature.
- To send a file by email, follow the instructions in our API documentation. + To send a file by email, follow the instructions in our API documentation.
diff --git a/tests/app/main/views/test_accept_invite.py b/tests/app/main/views/test_accept_invite.py index d779beae4..adc1e098b 100644 --- a/tests/app/main/views/test_accept_invite.py +++ b/tests/app/main/views/test_accept_invite.py @@ -453,7 +453,7 @@ def test_signed_in_existing_user_cannot_use_anothers_invite( assert page.h1.string.strip() == 'You’re not allowed to see this page' flash_banners = page.find_all('div', class_='banner-dangerous') assert len(flash_banners) == 1 - banner_contents = flash_banners[0].text.strip() + banner_contents = normalize_spaces(flash_banners[0].text) assert "You’re signed in as test@user.gov.uk." in banner_contents assert "This invite is for another email address." in banner_contents assert "Sign out and click the link again to accept this invite." in banner_contents diff --git a/tests/conftest.py b/tests/conftest.py index 58f5e7260..25b5b083d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3030,6 +3030,7 @@ def client_request( if _test_for_elements_without_class and _expected_status not in (301, 302): for tag, hint in ( ('p', 'govuk-body'), + ('a', 'govuk-link govuk-link--no-visited-state'), ): element = page.select_one(f'{tag}:not([class])') if (