test(desktop): add deterministic Electron quality gates
2 months ago
Authored
Cursor AgentCo-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>
Parents7f9a9b483f2812
44 files changed
- .github/workflows/ci.yml+52−0
- .gitignore+4−0
- apps/desktop/electron/qualityGateMain.ts+1227−0
- apps/desktop/quality-gates/README.md+146−0
- apps/desktop/quality-gates/assertions.ts+320−0
- apps/desktop/quality-gates/axe-baseline.json+46−0
- apps/desktop/quality-gates/budgets.json+15−0
- apps/desktop/quality-gates/electron.vite.config.ts
+81
−0
apps/desktop/quality-gates/fixtureData.ts+169−0apps/desktop/quality-gates/fixtures.ts+611−0apps/desktop/quality-gates/index.html+39−0apps/desktop/quality-gates/playwright.config.ts+41−0apps/desktop/quality-gates/quality.css+3−0apps/desktop/quality-gates/renderer.tsx+21−0apps/desktop/quality-gates/runtime.ts+318−0apps/desktop/quality-gates/snapshots/first-launch-dark-1024-linux.png——apps/desktop/quality-gates/snapshots/first-paint-dark-1024-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1024-dark-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1024-forced-colors-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1024-light-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1024-reduced-motion-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1240-dark-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1240-forced-colors-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1240-light-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-1240-reduced-motion-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-640-dark-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-640-forced-colors-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-640-light-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-640-reduced-motion-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-800-dark-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-800-forced-colors-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-800-light-linux.png——apps/desktop/quality-gates/snapshots/shipping-chat-800-reduced-motion-linux.png——apps/desktop/quality-gates/specs/assertions.pw.ts+85−0apps/desktop/quality-gates/specs/failure-proofs.pw.ts+74−0apps/desktop/quality-gates/specs/journeys.pw.ts+258−0apps/desktop/quality-gates/specs/performance.pw.ts+131−0apps/desktop/quality-gates/specs/visual.pw.ts+53−0apps/desktop/quality-gates/syncProductScreenshot.ts+23−0apps/desktop/quality-gates/verifyFailureProofs.ts+163−0bun.lock+14−0docs/assets/desktop-product.png——package.json+8−0test/ci.workflow.test.ts+25−0