Running Rails System Tests with Playwright instead of Selenium | justin․searls․co
21-Jun-2024 377
Last week, when David declared that system tests have failed, my main reaction was: "well, yeah." UI tests are brittle, and if you write more than a handful, the cost to maintain them can quickly eclipse any value they bring in terms of confidence your app is working.But then I had a second reaction, "come to think of it, I wrote a smoke test of a complex UI that relies heavily on Turbo and it seems to fail all the damn time." Turbo's whole cloth replacement of large sections of the DOM seemed to be causing numerous timing issues in my system tests, wherein elements would frequently become stale as soon as Capybara (under Selenium) could find them.
Running Rails System Tests with Playwright instead of Selenium | justin․searls․co #ruby #rubydeveloper #rubyonrails #Running #Rails #System #Tests #Playwright #instead #Selenium #justin․searls․co #tests https://rubyonrails.ba/link/running-rails-system-tests-with-playwright-instead-of-selenium-justin-searls-co