Running Rails System Tests with Playwright instead of Selenium | justin․searls․co

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 #tests https://rubyonrails.ba/single/running-rails-system-tests-with-playwright-instead-of-selenium-justin-searls-co

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles