Page MenuHomePhabricator

MinervaNeue "Wikitext Editor.Closing editor (overlay button)" test is flaky
Open, Needs TriagePublic

Description

Minerva test is flaky and causes wmf-quibble-selenium-php72-docker job to fail.
For instance, https://integration.wikimedia.org/ci/job/wmf-quibble-selenium-php72-docker/162660/console#console-section-13 and https://integration.wikimedia.org/ci/job/wmf-quibble-selenium-php72-docker/161869/console#console-section-13
Error is displayed as shown below:

13:38:58 [0-1] Error in "Wikitext Editor.Closing editor (overlay button)"
13:38:59 Error: element (".overlay .cancel") still not displayed after 5000ms
13:38:59     at Element.<anonymous> (/workspace/src/skins/MinervaNeue/node_modules/@wdio/utils/build/shim.js:276:24)
13:38:59     at iClickTheOverlayCloseButton (/workspace/src/skins/MinervaNeue/tests/selenium/features/step_definitions/common_steps.js:107:47)
13:38:59     at Context.<anonymous> (/workspace/src/skins/MinervaNeue/tests/selenium/specs/editor_wikitext_nosave.js:24:3)

Screenshot 2022-07-26 at 01.44.26.png (1ร—2 px, 637 KB)

Note: This is currently a blocker for https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/790682

Event Timeline

Jdlrobson subscribed.

The error suggests there's either a bug causing the mobile editor to not load or there's a timing problem (e.g. test doesn't wait long enough)

zeljkofilipin changed the task status from Open to In Progress.Aug 23 2022, 10:47 AM

This issue was triggered by this commit and it is now abandoned.

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

[mediawiki/skins/MinervaNeue@master] selenium: Skip flaky test

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

Change 865667 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] selenium: Skip flaky test

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

@Jdlrobson do you think the fix in T348539 will allow re-enabling this test?

I would assume so since those 2 tests share test steps but I can't confirm that without the associated video report that went with the test failure. I would suggest merging these tickets for now.