Research: browser-e2e tooling for Vue dashboard + Electron app under nix CI #270

Closed
opened 2026-08-02 03:13:30 +00:00 by ben · 1 comment
Owner

Question

Survey browser-e2e tooling for this stack: Vue 3 dashboard (vite), Electron operator app, all CI inside nix develop on a self-hosted Linux runner. Cover Playwright (incl. Electron support status), WebdriverIO, and nixpkgs packaging / browser-download constraints; note headless requirements and flake-control practices. Findings land on a throwaway research/browser-e2e-tooling branch, pointer commented here.

Parent

Wayfinder map — e2e testing: the product and the swarm pipeline

## Question Survey browser-e2e tooling for this stack: Vue 3 dashboard (vite), Electron operator app, all CI inside `nix develop` on a self-hosted Linux runner. Cover Playwright (incl. Electron support status), WebdriverIO, and nixpkgs packaging / browser-download constraints; note headless requirements and flake-control practices. Findings land on a throwaway `research/browser-e2e-tooling` branch, pointer commented here. ## Parent [Wayfinder map — e2e testing: the product and the swarm pipeline](https://git.matou.nz/Matou/ourcloud/issues/262)
ben self-assigned this 2026-08-02 03:14:18 +00:00
Author
Owner

Research landed: docs/research/browser-e2e-tooling.md (branch research/browser-e2e-tooling, all sources checked 2026-08-01).

Findings, compact:

  • Playwright _electron is still documented experimental (playwright.dev), but it drives our own electron 33.4.11 binary over CDP — so the nix browser-download pain does not apply to the app at all. Known limits: nodeCliInspect fuse must stay enabled; native dialogs not intercepted (stub via electronApplication.evaluate()). Needs xvfb-run on the headless runner (Electron requires a display driver — electronjs.org).
  • Nix pain is dashboard-only: playwright-driver.browsers + PLAYWRIGHT_BROWSERS_PATH works, but npm @playwright/test must version-match nixpkgs. Our pinned nixos-24.11 (EOL) carries 1.50.1; nixpkgs unstable 1.61.1; npm latest 1.62.1 → wants a dedicated playwright nixpkgs input.
  • WDIO @wdio/electron-service 10.1.0 (official wdio org, active, Electron docs's non-caveated path) is the credible fallback — but auto-downloads Chromedriver (unpinned) and means a second e2e stack.
  • Cypress: cannot test Electron apps; discarded.
  • Flake control: retries: 2 (CI), trace: 'on-first-retry', video: 'retain-on-failure', workers: 1, quarantine tag + non-blocking job.

Recommendation: Playwright for both surfaces; start with the Electron app (no nix browser dependency, just add xvfb-run to the dev shell), take the nixpkgs playwright-driver route with a pinned input when dashboard browser tests land; keep wdio-electron-service as the documented fallback if fuses/dialog limits bite.

Research landed: [docs/research/browser-e2e-tooling.md](https://git.matou.nz/Matou/ourcloud/src/branch/research/browser-e2e-tooling/docs/research/browser-e2e-tooling.md) (branch `research/browser-e2e-tooling`, all sources checked 2026-08-01). **Findings, compact:** - **Playwright** `_electron` is still documented **experimental** (playwright.dev), but it drives *our own* `electron` 33.4.11 binary over CDP — so the nix browser-download pain does not apply to the app at all. Known limits: `nodeCliInspect` fuse must stay enabled; native dialogs not intercepted (stub via `electronApplication.evaluate()`). Needs `xvfb-run` on the headless runner (Electron requires a display driver — electronjs.org). - **Nix pain is dashboard-only**: `playwright-driver.browsers` + `PLAYWRIGHT_BROWSERS_PATH` works, but npm `@playwright/test` must version-match nixpkgs. Our pinned nixos-24.11 (EOL) carries **1.50.1**; nixpkgs unstable **1.61.1**; npm latest **1.62.1** → wants a dedicated playwright nixpkgs input. - **WDIO** `@wdio/electron-service` 10.1.0 (official wdio org, active, Electron docs's non-caveated path) is the credible fallback — but auto-downloads Chromedriver (unpinned) and means a second e2e stack. - **Cypress**: cannot test Electron apps; discarded. - **Flake control**: `retries: 2` (CI), `trace: 'on-first-retry'`, `video: 'retain-on-failure'`, `workers: 1`, quarantine tag + non-blocking job. **Recommendation:** Playwright for both surfaces; start with the Electron app (no nix browser dependency, just add xvfb-run to the dev shell), take the nixpkgs playwright-driver route with a pinned input when dashboard browser tests land; keep wdio-electron-service as the documented fallback if fuses/dialog limits bite.
ben closed this issue 2026-08-02 03:30:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#270
No description provided.