Skip to content

report: display insights when using toggle, even if hidden #16431

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

Merged
merged 2 commits into from
Apr 8, 2025

Conversation

connorjclark
Copy link
Collaborator

This allows the toggle to display these insights, even in their current hidden group. Done this way so that LH consumers/renderers will continue to not display these audits.

see #16418

@connorjclark connorjclark requested a review from a team as a code owner April 8, 2025 17:46
@connorjclark connorjclark requested review from paulirish and removed request for a team April 8, 2025 17:46
@@ -63,7 +63,7 @@ describe('ReportGenerator', () => {

it('should inject the report renderer javascript', () => {
const result = ReportGenerator.generateReportHtml({});
assert.ok(result.includes('configSettings.channel||"unknown"'), 'injects the script');
assert.match(result, /configSettings.channel\s?\|\|\s?"unknown"/);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

drive by fix so test passes even if report is built w/o minifiication

Copy link

Choose a reason for hiding this comment

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

@connorjclark connorjclark merged commit 66cce55 into main Apr 8, 2025
26 of 27 checks passed
@connorjclark connorjclark deleted the fix-insight-hidden branch April 8, 2025 18:49
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