Page MenuHomePhabricator

Set window size for webdriverIO tests to make the tests more deterministic
Closed, ResolvedPublic3 Estimated Story Points

Description

Today we do not set the window size of the browser and that makes test potentially more flakey.

This will make many other tasks simpler (for example skins/extension can choose window size).

Acceptance Criteria:

  • Set the window size for our test and make it work in CI and quickstart.

Details

Related Changes in Gerrit:

Event Timeline

zeljkofilipin set the point value for this task to 3.Nov 6 2025, 2:24 PM

Agreed with @Peter to 3 points.

zeljkofilipin changed the task status from Open to In Progress.Nov 6 2025, 2:24 PM
zeljkofilipin triaged this task as Medium priority.
zeljkofilipin moved this task from Backlog 🪒 to Deep work 🌊 on the User-zeljkofilipin board.

In Quickstart, the browser opens only on the part of the available screen.

Screenshot from 2025-11-07 15-58-55.png (1×1 px, 223 KB)

In Quickstart, the screen is 1280x1024. (I could not find it in the source.)

Screenshot from 2025-11-07 16-02-58.png (489×711 px, 83 KB)

In Gerrit, the browser seems to open only in the portion of the available screen (on the left).

Screenshot from 2025-11-07 16-57-51.png (1×1 px, 135 KB)

In core, ffmpeg is set to 1280x1024.

ffmpeg = spawn( 'ffmpeg', [
	'-video_size', '1280x1024', // video size
] );

Change #1203048 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/core@master] WIP selenium: browser.setWindowSize()

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

Change #1203048 merged by jenkins-bot:

[mediawiki/core@master] selenium: Set browser size to 1280x1024

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