Search⌘ K

Use :rack_test for Non-JavaScript User Flows

Explore how to apply the :rack_test driver in Rails system tests to verify user flows that do not require JavaScript. Understand architectural decisions around server-rendered views and how to write minimal, effective tests for widget navigation and display, ensuring your app’s core features work reliably without a browser.

We'll cover the following...

The :rack_test driver

Because we’re only using JavaScript where we need it, and because we are favoring Rails’ server-rendered views, most of our features should work without requiring JavascriptThis doesn’t mean there isn’t any JavaScript for these features, just that the features can be exercised without JavaScript executing at all.. One of the benefits to this approach is that we can test these features without using a real web browser.

Rails system tests use Chrome by default. We’ll set that up later, but ...