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

Add tests for integrity values #333

Open
greyli opened this issue Oct 12, 2023 · 0 comments
Open

Add tests for integrity values #333

greyli opened this issue Oct 12, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@greyli
Copy link
Member

greyli commented Oct 12, 2023

When the wrong integrity value is used, the CCS/JS file will be blocked. Not sure what's the best way to test it, maybe we could just read the Browser console log to check if it contains info like "Failed to find a valid digest in the 'integrity' attribute for resource".

Ref: https://stackoverflow.com/questions/20907180/getting-console-log-output-from-chrome-with-selenium-python-api-bindings
Related issues:

@greyli greyli added enhancement New feature or request good first issue Good for newcomers labels Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant