Background:
Today we always record the screen of a webdriver.io test if the test do not run the browser with --headless. This makes it hard to measure the overhead of video recording, since you always need to hack the code to disable it. By adding a configuration you can more easily turn on/off the recording.
This is similar to T410607: Add configuration to enable/disable headless for webdriver.io tests.
Acceptance Criteria:
- Add a configuration in wdio-defaults.conf.js for core that by default enables recording
- the configuration should be changed in wdio.conf.js
- If the configuration is switched, recording is turned off