Skip to content
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

Fix components test #3220

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Fix components test #3220

merged 2 commits into from
Jun 12, 2024

Conversation

andysellick
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What / why

Fix the all components test in government-frontend. See commit for detail. Also updates some components to allow this test to pass (it should have been failing, but the components test was broken).

Thanks to @KludgeKML for noticing this and writing the fix.

Visual changes

None.

Trello card: https://trello.com/c/N3eQJZlU/168-fix-application-component-tests

- needle and haystack were the wrong way around for the assert_no_match, which meant the test always passed
- the `not_applicable` part of this test works in Rspec, which this test was originally written in, but is completely ignored in minitest (it's not useful anyway, the govspeak component isn't in this application)
- doesn't seem like important_metadata needed the html_safe on it
- updated YML example to show links rendered correctly
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3220 June 7, 2024 16:54 Inactive
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andysellick andysellick merged commit 5b81c7e into main Jun 12, 2024
12 checks passed
@andysellick andysellick deleted the fix-components-test branch June 12, 2024 10:42
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.

3 participants