mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 22:21:34 -04:00
Updating site to use USWDS styles (#509)
* Updated header and footer * Updated fonts * Moved files around and updated gulpfile to correct the build process when it goes to production * Adjusted grid templating * Added images to assets * Update app/templates/components/uk_components/footer/template.njk Co-authored-by: Steven Reilly <stvnrlly@users.noreply.github.com>
This commit is contained in:
@@ -2312,23 +2312,6 @@ def client_request(_logged_in_client, mocker, service_one): # noqa (C901 too co
|
||||
)
|
||||
if not normalize_spaces(page_title).startswith(h1):
|
||||
raise AssertionError('Page title ‘{}’ does not start with H1 ‘{}’'.format(page_title, h1))
|
||||
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 (
|
||||
element
|
||||
and not element.has_attr('style') # Elements with inline CSS are exempt
|
||||
and element.text.strip() # Empty elements are exempt
|
||||
):
|
||||
raise AssertionError(
|
||||
f'Found a <{tag}> without a class attribute:\n'
|
||||
f' {element}\n'
|
||||
f'\n'
|
||||
f'(you probably want to add class="{hint}")'
|
||||
)
|
||||
return page
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user