Fix cypress tests exploding due to CSP (#10715)

pull/28217/head
Michael Telatynski 2023-04-26 17:35:45 +01:00 committed by GitHub
parent 6e87802add
commit dde0a41ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,10 @@ jobs:
persist-credentials: false persist-credentials: false
path: matrix-react-sdk 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 - name: Run Cypress tests
uses: cypress-io/github-action@59c3b9b4a1a6e623c29806797d849845443487d1 uses: cypress-io/github-action@59c3b9b4a1a6e623c29806797d849845443487d1
with: with: