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 (#11142)
Browse files Browse the repository at this point in the history
* Test

* Iterate

* Try headed mode

* Switch Cypress to headed mode
  • Loading branch information
t3chguy authored Jun 26, 2023
1 parent 34d7b7d commit 0d83a38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ jobs:
uses: cypress-io/github-action@d69252d52b9a31bad4f418f05ba2bc83687a02eb
with:
working-directory: matrix-react-sdk
# The built-in Electron runner seems to grind to a halt trying
# to run the tests, so use chrome.
browser: "${{ env.BROWSER_PATH }}"
# The built-in Electron runner seems to grind to a halt trying to run the tests, so use chrome.
browser: ${{ steps.setup-chrome.outputs.chrome-path }}
headed: true
start: npx serve -p 8080 ../webapp
wait-on: "http://localhost:8080"
record: true
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
# pass the Percy token as an environment variable
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
PERCY_ENABLE: ${{ needs.prepare.outputs.percy_enable }}
PERCY_BROWSER_EXECUTABLE: /usr/bin/chromium-browser
PERCY_BROWSER_EXECUTABLE: ${{ steps.setup-chrome.outputs.chrome-path }}
# tell Percy more details about the context of this run
PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}
Expand Down

0 comments on commit 0d83a38

Please sign in to comment.