Skip to content

Conversation

@connorjclark
Copy link
Collaborator

#8185

Fixes:
image

The PWA gauge depends on many style declarations defined in the template for regular gauges. When there are no regular gauges, that style element never gets add. I moved all those styles to the main stylesheet to cope.

@connorjclark connorjclark requested a review from paulirish as a code owner May 7, 2019 04:54
@paulirish
Copy link
Member

i can tell you love these tests by now :)

image

Copy link
Contributor

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM

const result = prepareLabData(sampleResultsStr, document);
assert.ok(result.scoreGaugeEl instanceof document.defaultView.Element);
assert.equal(result.scoreGaugeEl.querySelector('.lh-gauge__wrapper').href, '');
assert.ok(result.scoreGaugeEl.outerHTML.includes('<style>'), 'score gauge comes with CSS');
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume this is ok? The PSI renderer already includes report-styles.css?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pretty sure it does. @exterkamp to confirm

Copy link
Member

Choose a reason for hiding this comment

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

Yup, PSI imports report-styles. Should be g2g!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants