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

Commit 0d83a38

Browse files
authored
Fix cypress tests (#11142)
* Test * Iterate * Try headed mode * Switch Cypress to headed mode
1 parent 34d7b7d commit 0d83a38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cypress.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ jobs:
166166
uses: cypress-io/github-action@d69252d52b9a31bad4f418f05ba2bc83687a02eb
167167
with:
168168
working-directory: matrix-react-sdk
169-
# The built-in Electron runner seems to grind to a halt trying
170-
# to run the tests, so use chrome.
171-
browser: "${{ env.BROWSER_PATH }}"
169+
# The built-in Electron runner seems to grind to a halt trying to run the tests, so use chrome.
170+
browser: ${{ steps.setup-chrome.outputs.chrome-path }}
171+
headed: true
172172
start: npx serve -p 8080 ../webapp
173173
wait-on: "http://localhost:8080"
174174
record: true
@@ -202,7 +202,7 @@ jobs:
202202
# pass the Percy token as an environment variable
203203
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
204204
PERCY_ENABLE: ${{ needs.prepare.outputs.percy_enable }}
205-
PERCY_BROWSER_EXECUTABLE: /usr/bin/chromium-browser
205+
PERCY_BROWSER_EXECUTABLE: ${{ steps.setup-chrome.outputs.chrome-path }}
206206
# tell Percy more details about the context of this run
207207
PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
208208
PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}

0 commit comments

Comments
 (0)