justin․searls․co

PSA: if you're using Rails+Hotwire,…

PSA: if you're using Rails+Hotwire, Turbo's so-fast-it-feels-like-magic ability to update sections of the DOM downgrades Capybara's all method from "likely to regret this" to "definite footgun" when used in system tests.

IME, Turbo Streams updates the DOM so fast that elements found with Capybara's all are extremely likely to be stale by the time you iterate and interact with them. After several days of fighting intermittent CI failures, I had to banish all in favor of find in all my tests.


Got a taste for hot, fresh takes?

Then you're in luck, because you'll pay $0 for my 2¢ when you subscribe to my work, whether via RSS or your favorite social network.

I also have a monthly newsletter where I write high-tempo, thought-provoking essays about life, in case that's more your speed:

And if you'd rather give your eyes a rest and your ears a workout, might I suggest my long-form solo podcast, Breaking Change? Odd are, you haven't heard anything quite like it.