Page MenuHomePhabricator

Add configuration to enable/disable headless for webdriver.io tests
Open, Needs TriagePublic1 Estimated Story Points

Description

Background:
Today we use --headless if there's no DISPLAY that has been exported. By adding a configuration you can more easily turn on/off headless, making it possible to test with or without use browser built in headless (running headless is recommended by webdriverIO).

This is similar to T410594: Add configuration to enable/disable video recording for webdriverio tests.

Acceptance Criteria:

  • Add a configuration in wdio-defaults.conf.js for core where you can set the headless behavior, but keep default functionality.
  • the configuration should be changed in wdio.conf.js

Event Timeline

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

[mediawiki/core@master] selenium: Make it possible to configure the --headless flag

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

AMarkossyan-WMF set the point value for this task to 1.

Will need to see how this plays with Quickstart, which uses not headless

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

[mediawiki/core@master] selenium: Example for overriding headless flag

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

Change #1212592 abandoned by Phedenskog:

[mediawiki/core@master] selenium: Example for overriding headless flag

Reason:

This for only an example patch to show how to override the setting

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

Change #1210509 merged by jenkins-bot:

[mediawiki/core@master] selenium: Make it possible to configure the --headless flag

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