-
-
Notifications
You must be signed in to change notification settings - Fork 638
Skip failing React Router streamed component test #2016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Skip the test "renders the page completely on server and displays content on client even without JavaScript" for the React Router Sixth Page context. This test is being addressed in another PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
WalkthroughThis PR refactors test assertions in the integration test suite by replacing inverted negatives with explicit negation helpers, removing a type specifier from a describe block, and adding skipped test stubs with explanatory reasons for tests without JavaScript and server-only hydration scenarios. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ 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 |
Code ReviewThank you for this PR! I've reviewed the changes and have the following feedback: ✅ Positive Aspects
🔍 Code Quality ObservationsImproved RSpec matchers (Lines 14, 410-412, 420-421):
Removed redundant type (Line 242):
🤔 Questions & Suggestions
📋 Test CoverageThe test is appropriately skipped rather than removed, which maintains visibility that this functionality needs to be tested. The other tests in the shared example group will still run. 🔒 Security ConcernsNone identified. ⚡ Performance ConsiderationsNone - this change only affects test execution. ✅ RecommendationApprove with minor suggestions: The PR is solid and ready to merge. The only suggestion is to add the specific PR reference number in the skip message for better traceability. Review generated by Claude Code following React on Rails conventions from CLAUDE.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (5)
react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb (5)
14-14: Good refactor to explicit negation matcher.Using
have_no_contentinstead ofnot_to have_contentis an RSpec best practice that improves readability and intent.
242-242: Good cleanup of redundant metadata.Removing
:type => :systemis appropriate since this is already in a system spec file.
410-412: Good consistency with explicit negation matchers.Consistent refactor using
have_no_textinstead ofnot_to have_textaligns with RSpec best practices.
420-421: Consistent assertion refactor completed.The refactor to explicit negation matchers is now consistent across the shared example.
434-438: Add a specific PR or issue reference for tracking.The skip implementation is correct, but the reason lacks a specific reference. Consider adding the PR number or issue number to ensure this test gets re-enabled once the fix is merged.
Example:
- it "renders the page completely on server and displays content on client even without JavaScript", - skip: "Being addressed in another PR" do + it "renders the page completely on server and displays content on client even without JavaScript", + skip: "Being addressed in PR #XXXX" do # This test is overridden to skip it end
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb(4 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-02-13T16:50:47.848Z
Learnt from: AbanoubGhadban
Repo: shakacode/react_on_rails PR: 1644
File: node_package/src/clientStartup.ts:18-21
Timestamp: 2025-02-13T16:50:47.848Z
Learning: In the react_on_rails module, the `reactOnRailsPageUnloaded` function in clientStartup.ts is intentionally kept private as it's only used internally as a callback for `onPageUnloaded`.
Applied to files:
react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb
📚 Learning: 2024-10-08T20:53:47.076Z
Learnt from: theforestvn88
Repo: shakacode/react_on_rails PR: 1620
File: spec/dummy/client/app/startup/HelloTurboStream.jsx:3-3
Timestamp: 2024-10-08T20:53:47.076Z
Learning: The `RailsContext` import in `spec/dummy/client/app/startup/HelloTurboStream.jsx` is used later in the project, as clarified by the user theforestvn88.
Applied to files:
react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: build-dummy-app-webpack-test-bundles
- GitHub Check: build-dummy-app-webpack-test-bundles
- GitHub Check: lint-js-and-ruby
- GitHub Check: claude-review
|
@AbanoubGhadban some rubocop fixes went in. |
Summary
Test Plan
This change is
Summary by CodeRabbit