RG-756: Add Mobile Viewport Browser Test Helpers - #877
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 17 minutes and 54 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
tests/Browser/Support/MobileViewports.phpwith named viewport constantsall()andmobileOnly()helpers for iterating viewports in browser testsTest plan
tests/Feature/Docs/Phase48MobileViewportHelperTest.php— existence and content test passescomposer testpasses (1550 tests)npm run buildpasses🤖 Generated with Claude Code
Summary by cubic
Adds
tests/Browser/Support/MobileViewports.phpto standardize mobile and tablet viewports in browser tests. Fulfills RG-756 with named constants andall()/mobileOnly()helpers; covers 375×812, 390×844, 430×932, and 768×1024, and includes a feature test.Written for commit 11eae94. Summary will update on new commits.