Skip to content

Add option to serve resources#43

Open
apkatsikas wants to merge 13 commits intolpelypenko:mainfrom
apkatsikas:optional-cdn
Open

Add option to serve resources#43
apkatsikas wants to merge 13 commits intolpelypenko:mainfrom
apkatsikas:optional-cdn

Conversation

@apkatsikas
Copy link

@apkatsikas apkatsikas commented Mar 23, 2025

In my organization, we are making use of an HTML report server to view these Axe HTML reports. There is a Content Security Policy (CSP) in place that forbids the HTML from linking to external CDNs, like the ones used in this project.

This PR adds an option to serve the resources instead of using the CDN link, by downloading those assets (if they do not exist in the output folder) and building a report that points to them instead of the CDN.

Sample output:
image

});

it('All optional parameters present, serving resources', async () => {
const reportFileName = 'tcServingResources.html';
Copy link
Author

Choose a reason for hiding this comment

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

@lpelypenko the artifacts directory is ignored - so tcServingResources.html will not be tracked, but other test artifacts will. Was not sure if this is desired behavior.

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.

1 participant