Skip to content

test: add CI smoke tests for Docker, Electron, and Web frontend#339

Open
icebear0828 wants to merge 1 commit intomasterfrom
add-ci-smoke-tests-8172676823711842359
Open

test: add CI smoke tests for Docker, Electron, and Web frontend#339
icebear0828 wants to merge 1 commit intomasterfrom
add-ci-smoke-tests-8172676823711842359

Conversation

@icebear0828
Copy link
Copy Markdown
Owner

Added CI smoke testing workflows for Docker builds, Electron application launch, and Web frontend build.

Implementation details:

  • Created .github/workflows/docker-smoke-test.yml for testing the Dockerfile with default and overridden ports via default.yaml.
  • Added Playwright dependencies into packages/electron/package.json for testing Electron launches.
  • Created .github/workflows/electron-smoke-test.yml that builds all targets, packages for Linux (directory mode), and triggers Vitest over Playwright (packages/electron/__tests__/launch/smoke.test.ts) within an xvfb-run wrapper.
  • Added DISABLE_NATIVE_TRANSPORT=1 to the Playwright launch to prevent TLS crashes without proper native build dependencies.
  • Created .github/workflows/web-smoke-test.yml and src/__tests__/web-smoke.test.ts to assert that compiling and running the dist/index.js web server works and outputs Light/Dark CSS rules.
  • Updated package-lock.json after running npm install.

PR created automatically by Jules for task 8172676823711842359 started by @icebear0828

This commit introduces three new smoke tests as requested in issues #133, #134, and #135:
- Docker smoke test (`docker-smoke-test.yml`): Verifies the container builds and serves /health cleanly on default (8080) and custom (8090) ports.
- Electron smoke test (`electron-smoke-test.yml` + `smoke.test.ts`): Builds and packages the app via electron-builder (dir mode), then validates a clean headless launch with playwright + xvfb.
- Web frontend smoke test (`web-smoke-test.yml` + `web-smoke.test.ts`): Starts the server, verifying it hosts the bundled HTML `<div id="app"></div>` and checking Vite build output contains the expected CSS themes.

Co-authored-by: icebear0828 <63769498+icebear0828@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant