diff --git a/react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb b/react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb index bc8fb4a8db..872cbc9ebc 100644 --- a/react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb +++ b/react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb @@ -431,9 +431,11 @@ def change_text_expect_dom_selector(dom_selector, expect_no_change: false) it_behaves_like "streamed component tests", "/server_router/streaming-server-component", "#ServerComponentRouter-react-component-0" - # Skip the test that fails without JavaScript - being addressed in another PR - it "renders the page completely on server and displays content on client even without JavaScript", # rubocop:disable RSpec/NoExpectationExample - skip: "Being addressed in another PR" do - # This test is overridden to skip it + # NOTE: The "renders the page completely on server" test from the shared examples is not + # applicable for React Router because client-side routing requires JavaScript to navigate + # to nested routes. This test is overridden to mark it as pending with an explanation. + it "renders the page completely on server and displays content on client even without JavaScript" do + pending("React Router requires JavaScript for client-side routing - cannot navigate to nested routes without JS") + raise "This test should remain pending for React Router components" end end