Skip to content

Comments

Fix Playwright test reliability and CI improvements#2

Open
HerbCaudill wants to merge 15 commits intomainfrom
fix-playwright-reliability
Open

Fix Playwright test reliability and CI improvements#2
HerbCaudill wants to merge 15 commits intomainfrom
fix-playwright-reliability

Conversation

@HerbCaudill
Copy link
Contributor

Summary

  • Fix intermittent Playwright test failures caused by Vite dependency optimization race conditions
  • Add global setup to warm up Vite's dependency cache before running tests
  • Improve CI workflow to run Playwright tests against the built app
  • Build the DXOS shell separately for production builds
  • Reduce test timeout from 45s to 15s (now that tests are more reliable)
  • Run Playwright tests with 8 workers locally for faster feedback
  • Downgrade DXOS from prerelease to stable 0.7.4 version
  • Remove console logging from useRedirect hook
  • Fix console warnings in Playwright tests (move shared-worker to app/, fix root.tsx)

Test plan

  • Playwright tests pass locally
  • Unit tests pass
  • CI workflow passes with new configuration

🤖 Generated with Claude Code

bigdogwillfeed and others added 13 commits January 4, 2026 17:28
So I don't have to keep bonking around in main but still get feedback without a PR
…n race

Root cause: When running tests in dev mode, Vite's dependency optimizer
doesn't finish processing DXOS's dynamically imported browser modules
before tests start. This causes 404 errors for files like browser-*.js.

Fix:
- Add DXOS packages to optimizeDeps.include to force upfront pre-bundling
- Add global setup that warms up the Vite cache by loading the app once
  before tests run, ensuring all dynamic imports are discovered

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- tailwind.config.ts: Restrict content pattern to ./app/** to avoid
  scanning node_modules
- Move shared-worker.js from public/ to app/shared-worker.ts to fix
  Vite's public directory warning
- Filter out noise warnings (Node module externalization, React DevTools)
  from test console output
- Silence global setup error on cold cache (expected behavior)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
globalSetup: improve warmup process and logging for Vite dependency optimization
App: enhance log filtering for better compatibility messages
HerbCaudill and others added 2 commits January 4, 2026 17:33
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants