feat: 🎸 Add an option to inject HTML to <head> content #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE: This request depends on azachar/screenshoter-report-analyzer#5 and don't work without that update.
Our CI server generates test reports with that plugin and they’re shared among our development teams.
But unfortunately web font icons aren’t displayed on those reports as those reports are placed in the authenticated area and web fonts are always accessed with “anonymous” mode [1] and blocked in this case.
I want to inject a
<link>
tag into the report, which imports css and web fonts from CDN, like ones provided by bootstrap [2] .This request passes options to
screenshoter-report-analyzer
and allow us to inject HTMLs into the<head>
content.Before this change, icons are not shown:
With this change and following configuration, icons are shown:
[1] https://www.w3.org/TR/css-fonts-3/#font-fetching-requirements
[2] https://www.bootstrapcdn.com/fontawesome/