test: implement CI smoke tests for Docker, Electron, and Web frontend#132
test: implement CI smoke tests for Docker, Electron, and Web frontend#132icebear0828 wants to merge 1 commit intomasterfrom
Conversation
This commit implements the acceptance criteria for issues #120, #121, and #122: - Adds `.github/workflows/ci.yml` that performs an E2E test to verify the Docker image builds, containerizes successfully, and passes its healthchecks on both default (8080) and custom (8090) ports. - Adds `tests/e2e/electron-smoke.test.ts` to test packing and successfully launching the desktop binary using Playwright and `electron-builder`. - Adds `tests/e2e/web-smoke.test.ts` to build the web dashboard, assert CSS bundles correctly compile (including dark theme styles), spin up the server child process, and assert the dashboard HTML serves correctly. - Includes Vite 5 downgrade and Preact path aliasing workarounds to stabilize the Vitest environment for testing. Co-authored-by: icebear0828 <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This pull request introduces smoke testing infrastructure to ensure core components build and run as expected without regressions.
Changes:
.github/workflows/ci.yml) now tests building the Docker image from scratch, running it, waiting for the health check to returnhealthy, and validating that the HTTP/healthendpoint responds with a 200 OK. It tests this on both the default port8080and a custom port8090(using Docker environment variable overrides).child_processto build the Electron application locally, package it for Linux, and then launch the resulting binary. The test asserts that the application starts cleanly and its main window becomes available without any immediate crash exceptions.index.htmlmatches expectations (e.g. contains the<div id="app"></div>root).playwright,preactlocally). Also, Vite has been bumped to v5 along with the Preact Vite plugin to avoid fatal resolution errors forpreact/jsx-dev-runtimeduring CLI E2E tests.PR created automatically by Jules for task 6472825096395670308 started by @icebear0828