[go: up one dir, main page]

Page MenuHomePhabricator

"Dwelling on a valid reference link" selenium tests failing
Closed, ResolvedPublic2 Estimated Story Points

Description

The last three builds from selenium-daily-beta-Popups have failed waiting for the page.ready()call to complete in the beforeEach of specs/reference_previews.js

See https://integration.wikimedia.org/ci/view/Reading-Web/job/selenium-daily-beta-Popups/1036/console

Reference previews still appear to be working in production.

17:02:13 [Chrome 73.0.3683.75 linux #0-1] Spec: /src/tests/selenium/specs/reference_previews.js
17:02:13 [Chrome 73.0.3683.75 linux #0-1] Running: Chrome (v73.0.3683.75) on linux
17:02:13 [Chrome 73.0.3683.75 linux #0-1] Session ID: b4cf93cf-5b7e-4da0-b519-8670de6017b7
17:02:13 [Chrome 73.0.3683.75 linux #0-1]
17:02:13 [Chrome 73.0.3683.75 linux #0-1] Dwelling on a valid reference link
17:02:13 [Chrome 73.0.3683.75 linux #0-1]    ? I should see a reference preview
17:02:13 [Chrome 73.0.3683.75 linux #0-1]    ✖ "before each" hook
17:02:13 [Chrome 73.0.3683.75 linux #0-1]
17:02:13 [Chrome 73.0.3683.75 linux #0-1] 1 failing (20.8s)
17:02:13 [Chrome 73.0.3683.75 linux #0-1]
17:02:13 [Chrome 73.0.3683.75 linux #0-1] 1) Dwelling on a valid reference link "before each" hook
17:02:13 [Chrome 73.0.3683.75 linux #0-1] waitUntil condition timed out after 10000ms
17:02:13 [Chrome 73.0.3683.75 linux #0-1] Error: waitUntil condition timed out after 10000ms
17:02:13 [Chrome 73.0.3683.75 linux #0-1]     at Object.waitForModuleState (/src/node_modules/wdio-mediawiki/Util.js:13:11)
17:02:13 [Chrome 73.0.3683.75 linux #0-1]     at PopupsPage.ready (/src/tests/selenium/pageobjects/popups.page.js:44:8)
17:02:13 [Chrome 73.0.3683.75 linux #0-1]     at Context.<anonymous> (/src/tests/selenium/specs/reference_previews.js:17:8)

Acceptance Criteria

  • All tests in 'Dwelling on a valid reference link' test group pass

Event Timeline

Jdlrobson added subscribers: WMDE-Fisch, Jdlrobson.

These were introduced in T213415

@WMDE-Fisch are your team able to take a look? If not can we disable or remove these ? They are currently spamming our mailing list.

Note: Broken since ~26./27. of April

Change 684803 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Popups@master] Set both Beta/non-Beta user option in Selenium tests

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

thiemowmde set the point value for this task to 2.
thiemowmde subscribed.

Some quick investigation results:

  • I'm able to run these tests locally with no problem.
  • When I put Reference Previews back in Beta mode, the tests are skipped. No failure.
  • When I enable a conflicting gadget, the tests fail, but with a very different error (element (".mwe-popups") still not existing after 10000ms).
  • The failure described in this ticket happens because the ResourceLoader module ext.popups.main never loads.
  • This can actually happen when a registered user disabled both Page Previews as well as Reference Previews. However, the test forces the popupsreferencepreviews option to be enabled.
  • … since T281235 there are 2 options. popupsreferencepreviews while in Beta, and popups-reference-previews after Beta. That might be it.

Change 684803 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] Set both Beta/non-Beta user option in Selenium tests

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

Seems to be fixed with the patch above, although I don't completely understand why.

https://integration.wikimedia.org/ci/view/Reading-Web/job/selenium-daily-beta-Popups/1046/

Let's wait for the next regular run of the job before closing the ticket.

ovasileva subscribed.
Lena_WMDE claimed this task.