Actions
Patch #41094
openMigrate System Tests from Selenium to Playwright
Patch #41094:
Migrate System Tests from Selenium to Playwright
Status:
New
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Description
Currently, Redmine executes system tests using Selenium. I suggestion to switch to Playwright for running these tests.
Playwright can be used as a driver starting from Rails 7.1.
https://github.com/rails/rails/pull/48950
yarn installnpx playwright installnpx playwright install-deps
- Simpler setup process
- Capybara syntax available ( https://github.com/YusukeIwaki/capybara-playwright-driver )
- Migration from the existing Selenium environment is required (not needed if using the playwright_or_selenium.patch)
- Commands to set up Playwright need to be executed before running the tests
I have attached two patches: playwright.patch and playwright_or_selenium.patch. The playwright.patch replaces Selenium with Playwright, while the playwright_or_selenium.patch switches the driver based on the ENV['USE_PLAYWRIGHT']. Please let us know your thoughts on which option is preferable.
Files
Actions