Skip to content

Commit 8e70c0c

Browse files
committed
docs: update testing section for Playwright
Document Playwright as JavaScript driver. Add instructions for debugging and cross-browser testing.
1 parent ad79168 commit 8e70c0c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,15 @@ See `app/models/README.md` for detailed data model documentation.
124124
## Testing
125125

126126
- **Framework**: RSpec with Capybara for feature tests
127+
- **JavaScript Driver**: Playwright (Chromium by default)
127128
- **Factories**: Fabrication (not FactoryBot)
128129
- **Test data**: Faker for generated data
129130
- **Coverage**: SimpleCov
130-
- **JavaScript tests**: Capybara with headless Chrome (use `CHROME_HEADLESS=false` to debug with visible browser, doesn't work in Docker)
131-
- Matchers: Shoulda Matchers, RSpec Collection Matchers
131+
- **JavaScript tests**: Capybara with Playwright driver
132+
- Use `PLAYWRIGHT_HEADLESS=false` to debug with visible browser
133+
- Use `PWDEBUG=1` for Playwright Inspector (step-through debugging)
134+
- Use `PLAYWRIGHT_BROWSER=firefox` or `webkit` for cross-browser testing
135+
- **Matchers**: Shoulda Matchers, RSpec Collection Matchers
132136

133137
Run single test: `bin/drspec spec/path/to/file_spec.rb:42`
134138

0 commit comments

Comments
 (0)