docs: Non-Rails setup, GitHub Actions integration, animation tip#168
Conversation
Reviewer's GuideUpdates the README to document non-Rails/static-site usage via a Rack app, add a GitHub Actions example for uploading the HTML screenshot diff report as an artifact, and expand troubleshooting guidance for flaky diffs by recommending Capybara.disable_animation and clarifying stability_time_limit usage. Flow diagram for non-Rails Rack static site Capybara setupflowchart TD
A["Developer configures Gemfile\ncapybara-screenshot-diff, rack, puma"] --> B["Configure Capybara in test_helper"]
B --> C["Capybara.app set to Rack::Builder\nRack::Static serves from public or _site"]
C --> D["Run tests (Minitest)"]
D --> E["Capybara requests pages via Rack app"]
E --> F["Screenshots captured by capybara-screenshot-diff"]
F --> G["Screenshots stored under\nCapybara::Screenshot.root / save_path"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 21 minutes and 40 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughUpdated README.md with comprehensive documentation covering Capybara setup outside Rails environments, GitHub Actions integration for test workflows, clarified HTML reporter activation, and improved animation troubleshooting guidance replacing stability-based approach with CSS animation disabling recommendations. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In the Rack example for static sites, consider using a more conventional
urlssetting (e.g.urls: ["/"]) instead of an empty string array to avoid surprising routing behavior withRack::Static. - The Hugo/Jekyll example currently comments
# Jekyll outputwhile mentioning Hugo in the heading; it may be clearer to either split out separate examples or note the default output directory for each (e.g._sitefor Jekyll,publicfor Hugo).
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the Rack example for static sites, consider using a more conventional `urls` setting (e.g. `urls: ["/"]`) instead of an empty string array to avoid surprising routing behavior with `Rack::Static`.
- The Hugo/Jekyll example currently comments `# Jekyll output` while mentioning Hugo in the heading; it may be clearer to either split out separate examples or note the default output directory for each (e.g. `_site` for Jekyll, `public` for Hugo).Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
53956bb to
fc2419a
Compare
- Non-Rails section: Rack-based setup for Hugo/Jekyll/static sites - GitHub Actions: upload HTML report as artifact on failure - Troubleshooting: mention Capybara.disable_animation for CSS animations Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fc2419a to
3877f39
Compare
Summary
Capybara.disable_animation = truein Troubleshooting (no code change — Capybara already has it)Test plan
🤖 Generated with Claude Code
Summary by Sourcery
Document additional usage patterns and CI integration for capybara-screenshot-diff, and expand troubleshooting guidance for flaky diffs.
Documentation:
Summary by CodeRabbit