Skip to content

Commit

Permalink
GH-105: Link header logo to ATE website
Browse files Browse the repository at this point in the history
  • Loading branch information
markhobson committed Jun 17, 2024
1 parent 5578bde commit 03c2b2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion schemes/views/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

{% block header %}
{{ ateHeader({
"homepageUrl": url_for("start.index")
"homepageUrl": "https://www.gov.uk/government/organisations/active-travel-england"
}) }}
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion schemes/views/templates/service_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% block header %}
{{ ateServiceHeader({
"serviceName": "Update your capital schemes",
"homepageLink": url_for("start.index"),
"homepageLink": "https://www.gov.uk/government/organisations/active-travel-england",
"oneLoginLink": oneLoginLink,
"signOutLink": url_for("auth.logout")
}) }}
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@


class TestHeaderWhenUnauthenticated:
def test_home_shows_start(self, client: FlaskClient) -> None:
def test_home_shows_website(self, client: FlaskClient) -> None:
start_page = StartPage.open(client)

assert start_page.header.home_url == "/"
assert start_page.header.home_url == "https://www.gov.uk/government/organisations/active-travel-england"


class TestHeaderWhenAuthenticated:
Expand All @@ -27,10 +27,10 @@ def auth_fixture(self, authorities: AuthorityRepository, users: UserRepository,
with client.session_transaction() as session:
session["user"] = {"email": "boardman@example.com"}

def test_home_shows_start(self, client: FlaskClient) -> None:
def test_home_shows_website(self, client: FlaskClient) -> None:
schemes_page = SchemesPage.open(client)

assert schemes_page.header.home_url == "/"
assert schemes_page.header.home_url == "https://www.gov.uk/government/organisations/active-travel-england"

def test_profile_shows_profile(self, client: FlaskClient) -> None:
schemes_page = SchemesPage.open(client)
Expand Down

0 comments on commit 03c2b2d

Please sign in to comment.