Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix cypress tests exploding due to CSP (#10715)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Apr 26, 2023
1 parent 6e87802 commit dde0a41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ jobs:
persist-credentials: false
path: matrix-react-sdk

# This is necessary as Cypress relies on eval for passing functions between processes
- name: Allow CSP script-src unsafe-eval
run: sed -i "s/script-src /script-src 'unsafe-eval' /" ../webapp/index.html

- name: Run Cypress tests
uses: cypress-io/github-action@59c3b9b4a1a6e623c29806797d849845443487d1
with:
Expand Down

0 comments on commit dde0a41

Please sign in to comment.