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: Add Percy specific CSS to root resource after asset discovery #352

Merged
merged 3 commits into from
Sep 24, 2019

Conversation

Robdel12
Copy link
Contributor

What is this?

While debugging some percy CSS weirdness I thought it would be pretty nice to see in the logs when this is created and if its skipped, why?

@Robdel12 Robdel12 changed the title fix: Add debug logs to percy specific CSS fix: Add Percy specific CSS to root resource after asset discovery Sep 24, 2019
Before, it's possible the asset discovery resource saves the CSS as a different
content type (for example, if their server just serves the root index for this
request, we would get DOM instead of CSS)
rootResourceUrl,
domSnapshot,
options,
logger,
)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This method no longer seems useful. Could leave it as an alias, or just call this.snapshotService.assetDiscoveryService.discoverResources directly from the agent service.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah for sure, going to clean that up in future PRs

Copy link
Contributor

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

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

4th review is the charm?

@Robdel12 Robdel12 merged commit 5984a65 into master Sep 24, 2019
@delete-merged-branch delete-merged-branch bot deleted the rd/log-percy-css branch September 24, 2019 17:15
djones pushed a commit that referenced this pull request Sep 24, 2019
## [0.15.2](v0.15.1...v0.15.2) (2019-09-24)

### Bug Fixes

* Add Percy specific CSS to root resource after asset discovery ([#352](#352)) ([5984a65](5984a65))
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.

None yet

2 participants