You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates the Playwright and CI configuration to run E2E tests against a production build instead of the development server. This ensures that the application is correctly bundled and that required cross-origin isolation headers (COOP/COEP) are preserved in the production-serving path.
Key changes:
Updated playwright.config.ts to support toggling between dev and production modes.
Added test:e2e:ci to package.json to build the app and run tests against vite preview.
Updated vite.config.ts to include COOP/COEP headers in the preview server.
Added tests/e2e/smoke.spec.ts to verify app boot, navigation, and security headers.
Updated .github/workflows/ci-and-labels.yml to install necessary browsers and run production E2E tests.
Fixed a TypeScript error in GraphView.tsx discovered during the build process.
Robustified existing E2E tests with better selectors and increased timeouts.
👋 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!
We reviewed changes in a0b7498...1d1eccb on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
- Configure playwright.config.ts for dynamic dev/prod switching
- Add test:e2e:ci script to package.json
- Add security headers to vite preview in vite.config.ts
- Add comprehensive production smoke test
- Robustify existing E2E tests for CI environment
- Fix TypeScript job handler return type mismatch
- Update CI workflow to install all Playwright browsers and run production E2E tests
Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
- Configure playwright.config.ts for dynamic dev/prod switching
- Add test:e2e:ci script to package.json
- Add security headers to vite preview in vite.config.ts
- Add comprehensive production smoke test with mobile support
- Robustify existing E2E tests for CI and responsive layouts
- Fix TypeScript job handler return type mismatch
- Update CI workflow to install all Playwright browsers and run production E2E tests
Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
- Updated playwright.config.ts to support dynamic dev/production modes via PLAYWRIGHT_MODE env var.
- Added test:e2e:ci script to package.json to automate build and production E2E testing.
- Configured vite.config.ts preview server with COOP/COEP headers to support SQLite WASM in production mode.
- Added a new smoke test (smoke.spec.ts) covering app boot, responsive navigation, and security headers.
- Robustified existing E2E tests for CI environments (better selectors, mobile menu handling, increased timeouts).
- Fixed a SQL syntax error in public/db/schema.sql that blocked database initialization in bundled builds.
- Fixed a Web Worker bundling issue in src/db/connection-pool.ts by inlining the URL for Vite's static analysis.
- Updated CI workflow to install all necessary browsers and execute production E2E tests.
Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
Expected 'this' to be used by class method 'createWorker'
If a class method does not use this, it can sometimes be made into a static function. If you do convert the method into a static function, instances of the class that call that particular method have to be converted to a static call as well (MyClass.callStaticMethod())
- Updated playwright.config.ts for dynamic dev/prod switching.
- Added test:e2e:ci script to package.json.
- Configured vite.config.ts preview with COOP/COEP headers.
- Added smoke.spec.ts and robustified existing E2E tests for CI.
- Fixed SQL syntax error in schema.sql.
- Fixed Web Worker bundling in connection-pool.ts.
- Updated CI workflow to install browsers and run production tests.
Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
This change updates the CI workflow to execute Playwright tests against a
production bundle (via `vite preview`) rather than the development server.
Key changes:
- Configured `playwright.config.ts` to switch ports and commands based on
`PLAYWRIGHT_MODE=production`.
- Added `test:e2e:ci` script to `package.json` that builds the app before testing.
- Updated `vite.config.ts` to provide mandatory COOP and COEP headers in
`preview` mode, enabling SQLite WASM in the production artifact.
- Fixed a syntax error in `public/db/schema.sql` regarding UUID defaults
and a missing `verification_status` column.
- Refactored Web Worker initialization in `connection-pool.ts` for correct
Vite bundling.
- Added a production smoke test and refactored existing E2E tests with a
shared `ensureNavVisible` utility to handle responsive layouts.
- Updated CI workflow to install all Playwright browsers.
Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
Unexpected function declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable
It is considered a best practice to avoid 'polluting' the global scope with variables that are intended to be local to the script. Global variables created from a script can produce name collisions with global variables created from another script, which will usually lead to runtime errors or unexpected behavior. It is mostly useful for browser scripts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the Playwright and CI configuration to run E2E tests against a production build instead of the development server. This ensures that the application is correctly bundled and that required cross-origin isolation headers (COOP/COEP) are preserved in the production-serving path.
Key changes:
Fixes #97
PR created automatically by Jules for task 1179591998497924283 started by @d-oit