-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GOV.UK Frontend v5 on management pages and tests #2327
Conversation
6f55f04
to
65a2e3e
Compare
f2b5762
to
4e782dc
Compare
65a2e3e
to
c602cf6
Compare
4e782dc
to
e5d6c76
Compare
18fc10b
to
e12f909
Compare
e5d6c76
to
79c7701
Compare
e12f909
to
3ec7f0f
Compare
79c7701
to
f2fa86a
Compare
3ec7f0f
to
88a76ec
Compare
f2fa86a
to
56fc65d
Compare
7291342
to
79bbbe4
Compare
4ed5548
to
32c38b7
Compare
79bbbe4
to
ed36da2
Compare
32c38b7
to
aef666e
Compare
ed36da2
to
4a40024
Compare
aef666e
to
517c9ed
Compare
517c9ed
to
5495022
Compare
bbf1687
to
d598993
Compare
2905408
to
ae1af80
Compare
0ca11e4
to
02c7bff
Compare
02c7bff
to
97b777c
Compare
Updated with GOV.UK Frontend |
97b777c
to
a4be636
Compare
a4be636
to
6728198
Compare
dd37d5d
to
e4ece89
Compare
|
||
const fontUrl = '/plugin-assets/govuk-frontend/govuk/assets/fonts/bold-b542beb274-v2.woff2' | ||
const fontUrl = '/manage-prototype/dependencies/govuk-frontend/dist/govuk/assets/fonts/bold-b542beb274-v2.woff2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since plugins can use a different GOV.UK Frontend version, let's test the internal version
cy.get('.govuk-header__logotype-text') | ||
cy.get('.govuk-header__logotype') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed the logo to use the parent .govuk-header__logotype
This way they'll work with both v4 and v5 should we need to switch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for sorting.
PR to use GOV.UK Frontend v5 on management pages including the error server
Plugins can freely use GOV.UK Frontend v5 already but internal pages still use v4 and fail some tests
Test fixes
This PR also unblocks status checks on
main
where we know some tests install the latestgovuk-frontend
plugin. Current CSS selectors for the logo were incompatible between v4 and v5 so have been fixed.govuk-header__logotype-text
→.govuk-header__logotype