mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Merge pull request #3241 from alphagov/fix-logo-svg-fallback-image
Send asset path to Header component
This commit is contained in:
@@ -125,7 +125,8 @@
|
|||||||
"homepageUrl": url_for('main.show_accounts_or_dashboard'),
|
"homepageUrl": url_for('main.show_accounts_or_dashboard'),
|
||||||
"productName": "Notify",
|
"productName": "Notify",
|
||||||
"navigation": navigation,
|
"navigation": navigation,
|
||||||
"navigationClasses": "govuk-header__navigation--end"
|
"navigationClasses": "govuk-header__navigation--end",
|
||||||
|
"assetsPath": asset_path + "images"
|
||||||
}) }}
|
}) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@@ -177,6 +177,15 @@ def test_css_is_served_from_correct_path(client_request):
|
|||||||
][index])
|
][index])
|
||||||
|
|
||||||
|
|
||||||
|
def test_resources_that_use_asset_path_variable_have_correct_path(client_request):
|
||||||
|
|
||||||
|
page = client_request.get('main.documentation') # easy static page
|
||||||
|
|
||||||
|
logo_svg_fallback = page.select_one('.govuk-header__logotype-crown-fallback-image')
|
||||||
|
|
||||||
|
assert logo_svg_fallback['src'].startswith('https://static.example.com/images/govuk-logotype-crown.png')
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('extra_args, email_branding_retrieved', (
|
@pytest.mark.parametrize('extra_args, email_branding_retrieved', (
|
||||||
(
|
(
|
||||||
{},
|
{},
|
||||||
|
|||||||
Reference in New Issue
Block a user