Add automated testing infrastructure (Vitest + Playwright E2E) #110
@@ -60,6 +60,11 @@ jobs:
|
|||||||
- name: Ensure a display for Electron
|
- name: Ensure a display for Electron
|
||||||
run: command -v xvfb-run >/dev/null || (sudo apt-get update && sudo apt-get install -y xvfb)
|
run: command -v xvfb-run >/dev/null || (sudo apt-get update && sudo apt-get install -y xvfb)
|
||||||
|
|
||||||
|
# The login form only renders after the auth-flows request succeeds, so an
|
||||||
|
# unreachable homeserver shows up as a 30s locator timeout. Fail fast instead.
|
||||||
|
- name: Homeserver reachable from the runner
|
||||||
|
run: curl -sS --max-time 20 -o /dev/null -w '%{http_code}\n' "https://$E2E_HOMESERVER/.well-known/matrix/client"
|
||||||
|
|
||||||
- name: Run login E2E
|
- name: Run login E2E
|
||||||
run: xvfb-run -a npm run test:e2e
|
run: xvfb-run -a npm run test:e2e
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user