mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Don’t allow paragraphs without class attribute
All paragraphs should have class="govuk-body", or be otherwise custom-styled. This commit adds some extra checks to our test fixture that looks for paragraphs that don’t have any styling. Our test coverage is pretty good, so this should check almost all pages, and prevent regressions. I’ve done this in such a way that it can be extended for other elements (e.g. links) in the future.
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
New API key
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
<p class="govuk-body">
|
||||
Copy your key to somewhere safe.
|
||||
</p>
|
||||
<p>
|
||||
<p class="govuk-body">
|
||||
You will not be able to see it again once you leave this page.
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user