bootstrap-flask icon indicating copy to clipboard operation
bootstrap-flask copied to clipboard

Add tests for integrity values

Open greyli opened this issue 8 months ago • 0 comments

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:

  • https://github.com/helloflask/bootstrap-flask/issues/331
  • https://github.com/helloflask/bootstrap-flask/pull/332

greyli avatar Oct 12 '23 00:10 greyli