helloflask / bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.
https://bootstrap-flask.readthedocs.io
Other
1.1k stars 189 forks source link

Add tests for integrity values #333

Open greyli opened 8 months ago

greyli commented 8 months ago

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: