Skip to content

Fix tests running against GOV.UK Frontend 6.0.0#2504

Merged
romaricpascal merged 4 commits intomainfrom
branch-to-run-ci
Feb 12, 2026
Merged

Fix tests running against GOV.UK Frontend 6.0.0#2504
romaricpascal merged 4 commits intomainfrom
branch-to-run-ci

Conversation

@romaricpascal
Copy link
Member

@romaricpascal romaricpascal commented Feb 10, 2026

Because the Prototype Kit installs the latest version of GOV.UK Frontend, tests now run against GOV.UK Frontend v6.0.0.
Some test expectations look at the colours in the built CSS and other compile the step-by-step plugin, which uses the $legacy parameter of govuk-colour.

I pushed two commits that fix the selector for grabbing items in the GOV.UK Footer, as well as the selector for changing the header's colour.

Tests remain failing until a new version of the step-by-step plugin is released, as the plugin uses the $legacy parameter.

This is more robust to changes of semantics in the GOV.UK Footer component,
like the one introduced by GOV.UK Frontend v6.0.0.
@romaricpascal romaricpascal changed the title [DO NOT MERGE] Run tests against main Fix tests running against GOV.UK Frontend 6.0.0 Feb 12, 2026
Variables for applied colours no longer configure GOV.UK Frontend,
instead us `$govuk-functional-colour`
@romaricpascal romaricpascal force-pushed the branch-to-run-ci branch 3 times, most recently from 9deca45 to 6d67ec1 Compare February 12, 2026 14:24
This plugin is not compatible with the version of GOV.UK Frontend
installed by default when creating new prototypes, which makes the test
fail not because their actions fail, but because they can't be set up
as intended.

The amount of work to untangle this is non-trivial and the features
were working manually.

Co-authored-by: Oliver Byford <oliver.byford@digital.cabinet-office.gov.uk>
@romaricpascal romaricpascal merged commit 901358f into main Feb 12, 2026
52 of 54 checks passed
@romaricpascal romaricpascal deleted the branch-to-run-ci branch February 12, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants