Fix datagrid pagination, document rsx:debug --eval, update jqhtml
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1126,10 +1126,16 @@ rsx:debug /contacts --console # Show console.log output
|
||||
rsx:debug /page --screenshot-path=/tmp/page.png --screenshot-width=mobile # Capture screenshot
|
||||
rsx:debug /page --dump-dimensions=".card" # Add position/size data attributes to elements
|
||||
rsx:debug /path --help # Show all options
|
||||
|
||||
# Simulate user interactions with --eval (executes before DOM capture)
|
||||
rsx:debug /contacts --user=1 --eval="$('.page-link[data-page=\"2\"]').click(); await sleep(2000)"
|
||||
rsx:debug /form --eval="$('#name').val('test'); $('form').submit(); await sleep(500)"
|
||||
```
|
||||
|
||||
Screenshot presets: mobile, iphone-mobile, tablet, desktop-small, desktop-medium, desktop-large
|
||||
|
||||
The `--eval` option runs JavaScript after page load but before DOM capture. Use `await sleep(ms)` to wait for async operations. This is powerful for testing pagination, form submissions, and other interactive behavior.
|
||||
|
||||
Use this instead of manually browsing, especially for SPA pages and Ajax-heavy features.
|
||||
|
||||
**CRITICAL: SPA routes ARE server routes.** The server knows all SPA routes. `rsx:debug` uses Playwright to fully render pages including all JavaScript and SPA navigation. If you get a 404, the route genuinely doesn't exist - check your URL pattern and route definitions. Never dismiss 404s as "SPA routes can't be tested server-side" - this analysis is incorrect.
|
||||
|
||||
Reference in New Issue
Block a user