Project

General

Profile

Actions

Patch #41094

open

Migrate System Tests from Selenium to Playwright

Added by Mizuki ISHIKAWA 13 days ago. Updated 12 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

Before running the tests, several commands need to be executed:
  • yarn install
  • npx playwright install
  • npx playwright install-deps
Benefits of using Playwright: Drawbacks of using Playwright:
  • 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

playwright_or_selenium.patch (72.2 KB) playwright_or_selenium.patch Mizuki ISHIKAWA, 2024-08-06 03:03
playwright.patch (70.9 KB) playwright.patch Mizuki ISHIKAWA, 2024-08-06 03:03
playwright_or_selenium_v2.patch (72.2 KB) playwright_or_selenium_v2.patch Mizuki ISHIKAWA, 2024-08-06 03:06
Actions

Also available in: Atom PDF