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
- Add Playwright configuration in spec/dummy for cross-browser testing
- Create comprehensive test suites for React on Rails components
- Add test helpers and utilities for React on Rails testing
- Add rake tasks for running Playwright tests in dummy app
- Update dummy app package.json with Playwright scripts
- Document Playwright usage in CLAUDE.md
- Configure ESLint to ignore Playwright test files
Playwright tests are properly located in spec/dummy where the actual
Rails application lives. This provides a robust E2E testing framework
that complements the existing RSpec and Jest tests, ensuring components
work correctly across different browsers and scenarios.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: CLAUDE.md
+106Lines changed: 106 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ Git hooks will automatically run linting on **all changed files (staged + unstag
27
27
-**Run tests**:
28
28
- Ruby tests: `rake run_rspec`
29
29
- JavaScript tests: `yarn run test` or `rake js_tests`
30
+
- Playwright E2E tests: `yarn test:e2e` (see Playwright section below)
30
31
- All tests: `rake` (default task runs lint and all tests except examples)
31
32
-**Linting** (MANDATORY BEFORE EVERY COMMIT):
32
33
-**REQUIRED**: `bundle exec rubocop` - Must pass with zero offenses
@@ -126,10 +127,115 @@ This project maintains both a Ruby gem and an NPM package:
126
127
- Generated examples are in `gen-examples/` (ignored by git)
127
128
- Only use `yarn` as the JS package manager, never `npm`
128
129
130
+
## Playwright E2E Testing
131
+
132
+
### Overview
133
+
Playwright provides cross-browser end-to-end testing for React on Rails components. Tests run against a real Rails server with compiled assets, ensuring components work correctly in production-like conditions.
0 commit comments