Skip to content

Add tests for integrity values #333

@greyli

Description

@greyli

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions