Skip to content

Commit

Permalink
Use British spelling for unauthorized page
Browse files Browse the repository at this point in the history
  • Loading branch information
markhobson committed Oct 25, 2023
1 parent f5cc6b2 commit 7801a09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion schemes/templates/unauthorized.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Unauthorized</h1>
<h1 class="govuk-heading-l">Unauthorised</h1>
<p class="govuk-body">
If you have been invited to use this service,
<a href="mailto:contact@activetravelengland.gov.uk" class="govuk-link">contact Active Travel England</a>
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, app: Flask, page: Page):
self._page = page

def visible(self) -> bool:
return self._page.get_by_role("heading", name="Unauthorized").is_visible()
return self._page.get_by_role("heading", name="Unauthorised").is_visible()


class HomePage:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def open(self) -> UnauthorizedPage:
return self

def visible(self) -> bool:
return self._soup.h1.string == "Unauthorized" if self._soup.h1 else False
return self._soup.h1.string == "Unauthorised" if self._soup.h1 else False

def is_unauthorized(self) -> bool:
return self._response.status_code == 401
Expand Down

0 comments on commit 7801a09

Please sign in to comment.