Page MenuHomePhabricator

Disable setting in Chrome for more stable testing
Closed, ResolvedPublic3 Estimated Story Points

Description

With the webdriver.io tests that we run we have almost only default settings for Chrome. This means everything a normal user does is turned on. That is not good for automatic testing, see Google own documentation of what you can turn off for automatic testing; https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md

We also have the list of potential switches but it's hard to consume.

For our performance tests we use many of these switches to make Chrome more lean. Let us do the same for the webdriver.io tests.

Best case this will make Chrome/Chromium more lightweight and decrease the load on CI a little.

Acceptance Criteria

  • Follow our performance tests and disable setting following Googles guideline

Event Timeline

Peter triaged this task as Low priority.Sep 1 2025, 5:39 AM
Peter updated the task description. (Show Details)
Peter set the point value for this task to 3.

Change #1149436 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/core@master] selenium: Disable settings in Chrome to make it more stable

https://gerrit.wikimedia.org/r/1149436

Peter moved this task from Backlog to dek du 12 on the Test Platform board.
Peter edited projects, added Test Platform (dek du 12); removed Test Platform.
Peter moved this task from Backlog to In Review on the Test Platform (dek du 12) board.

Change #1149436 merged by jenkins-bot:

[mediawiki/core@master] selenium: Disable settings in Chrome to make it more stable

https://gerrit.wikimedia.org/r/1149436

I did some measurement to see the actual difference. The change made the tests 4.8% faster and using 2.3% less CPU time.