The "item.has its label not rendered when linked on a Wikipage" selenium test is flaky as demonstrated in an AbuseFilter CI run:
13:19:37 Execution of 9 workers started at 2025-03-07T13:19:37.461Z 13:19:37 13:19:38 [0-0] RUNNING in chrome - /repo/tests/selenium/specs/blocked.js 13:19:52 [0-0] PASSED in chrome - /repo/tests/selenium/specs/blocked.js 13:19:53 [0-1] RUNNING in chrome - /repo/tests/selenium/specs/item.js 13:20:12 [0-1] Error in "item.has its label not rendered when linked on a Wikipage" 13:20:12 Error: Failed to wait for mediawiki.base to be ready after 5000 ms. 13:20:12 at async Object.waitForModuleState (/workspace/src/extensions/Wikibase/node_modules/wdio-mediawiki/Util.js:50:3) 13:20:12 at async EntityPage.open (/workspace/src/extensions/Wikibase/node_modules/wdio-wikibase/pageobjects/entity.page.js:9:3) 13:20:12 at async Context.<anonymous> (/workspace/src/extensions/Wikibase/repo/tests/selenium/specs/item.js:93:3) 13:20:12 [0-1] RETRYING in chrome - /repo/tests/selenium/specs/item.js 13:20:13 [0-1] RUNNING in chrome - /repo/tests/selenium/specs/item.js 13:20:39 [0-1] Error in "item.has its label not rendered when linked on a Wikipage" 13:20:39 Error: Expect $(`#mw-content-text .mw-content-ltr p`) to have text 13:20:39 13:20:39 Expected: "Item:Q6" 13:20:39 Received: undefined 13:20:39 at Context.<anonymous> (/workspace/src/extensions/Wikibase/repo/tests/selenium/specs/item.js:116:61) 13:20:39 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 13:20:39 [0-1] FAILED in chrome - /repo/tests/selenium/specs/item.js (1 retries) 13:20:40 [0-2] RUNNING in chrome - /repo/tests/selenium/specs/nonexisting.item.js 13:20:44 [0-2] PASSED in chrome - /repo/tests/selenium/specs/nonexisting.item.js 13:20:44 [0-3] RUNNING in chrome - /repo/tests/selenium/specs/readmode.references.js 13:20:54 [0-3] PASSED in chrome - /repo/tests/selenium/specs/readmode.references.js 13:20:55 [0-4] RUNNING in chrome - /repo/tests/selenium/specs/tainted-ref.js 13:20:57 [0-4] PASSED in chrome - /repo/tests/selenium/specs/tainted-ref.js 13:20:58 [0-5] RUNNING in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/AnonEditWarning.spec.js 13:21:09 [0-5] PASSED in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/AnonEditWarning.spec.js 13:21:10 [0-6] RUNNING in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/editing.spec.js 13:21:21 [0-6] PASSED in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/editing.spec.js 13:21:22 [0-7] RUNNING in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/LicenseOverlay.spec.js 13:21:32 [0-7] PASSED in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/LicenseOverlay.spec.js 13:21:33 [0-8] RUNNING in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/reading.spec.js 13:21:47 [0-8] PASSED in chrome - /view/lib/wikibase-termbox/tests/selenium/specs/reading.spec.js 13:21:47 13:21:47 "spec" Reporter: 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-0] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-0] Session ID: a77c0dee-2ec0-40b9-bf52-7550e02f854a 13:21:47 [Chrome 120.0.0.0 linux #0-0] 13:21:47 [Chrome 120.0.0.0 linux #0-0] » /repo/tests/selenium/specs/blocked.js 13:21:47 [Chrome 120.0.0.0 linux #0-0] blocked user cannot use 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:SetLabel 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:SetDescription 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:SetAliases 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:SetLabelDescriptionAliases 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:SetSiteLink 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:NewItem 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:NewProperty 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:MergeItems 13:21:47 [Chrome 120.0.0.0 linux #0-0] ✓ Special:RedirectEntity 13:21:47 [Chrome 120.0.0.0 linux #0-0] 13:21:47 [Chrome 120.0.0.0 linux #0-0] 9 passing (12.1s) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-1] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-1] Session ID: 9760418d-0cd9-4858-b02c-02e27e1fabbc 13:21:47 [Chrome 120.0.0.0 linux #0-1] 13:21:47 [Chrome 120.0.0.0 linux #0-1] » /repo/tests/selenium/specs/item.js 13:21:47 [Chrome 120.0.0.0 linux #0-1] item 13:21:47 [Chrome 120.0.0.0 linux #0-1] ✓ can add a statement using the keyboard 13:21:47 [Chrome 120.0.0.0 linux #0-1] ✓ old revisions do not have an edit link 13:21:47 [Chrome 120.0.0.0 linux #0-1] ✖ has its label not rendered when linked on a Wikipage 13:21:47 [Chrome 120.0.0.0 linux #0-1] 13:21:47 [Chrome 120.0.0.0 linux #0-1] 2 passing (17.8s) 13:21:47 [Chrome 120.0.0.0 linux #0-1] 1 failing 13:21:47 [Chrome 120.0.0.0 linux #0-1] 13:21:47 [Chrome 120.0.0.0 linux #0-1] 1) item has its label not rendered when linked on a Wikipage 13:21:47 [Chrome 120.0.0.0 linux #0-1] Failed to wait for mediawiki.base to be ready after 5000 ms. 13:21:47 [Chrome 120.0.0.0 linux #0-1] Error: Failed to wait for mediawiki.base to be ready after 5000 ms. 13:21:47 [Chrome 120.0.0.0 linux #0-1] at async Object.waitForModuleState (/workspace/src/extensions/Wikibase/node_modules/wdio-mediawiki/Util.js:50:3) 13:21:47 [Chrome 120.0.0.0 linux #0-1] at async EntityPage.open (/workspace/src/extensions/Wikibase/node_modules/wdio-wikibase/pageobjects/entity.page.js:9:3) 13:21:47 [Chrome 120.0.0.0 linux #0-1] at async Context.<anonymous> (/workspace/src/extensions/Wikibase/repo/tests/selenium/specs/item.js:93:3) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-1] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-1] Session ID: 8f7bf9db-7e1f-4d51-9ad6-7195dc57a56b 13:21:47 [Chrome 120.0.0.0 linux #0-1] 13:21:47 [Chrome 120.0.0.0 linux #0-1] » /repo/tests/selenium/specs/item.js 13:21:47 [Chrome 120.0.0.0 linux #0-1] item 13:21:47 [Chrome 120.0.0.0 linux #0-1] ✓ can add a statement using the keyboard 13:21:47 [Chrome 120.0.0.0 linux #0-1] ✓ old revisions do not have an edit link 13:21:47 [Chrome 120.0.0.0 linux #0-1] ✖ has its label not rendered when linked on a Wikipage 13:21:47 [Chrome 120.0.0.0 linux #0-1] 13:21:47 [Chrome 120.0.0.0 linux #0-1] 2 passing (25.3s) 13:21:47 [Chrome 120.0.0.0 linux #0-1] 1 failing 13:21:47 [Chrome 120.0.0.0 linux #0-1] 13:21:47 [Chrome 120.0.0.0 linux #0-1] 1) item has its label not rendered when linked on a Wikipage 13:21:47 [Chrome 120.0.0.0 linux #0-1] Expect $(`#mw-content-text .mw-content-ltr p`) to have text 13:21:47 13:21:47 Expected: "Item:Q6" 13:21:47 Received: undefined 13:21:47 [Chrome 120.0.0.0 linux #0-1] Error: Expect $(`#mw-content-text .mw-content-ltr p`) to have text 13:21:47 [Chrome 120.0.0.0 linux #0-1] 13:21:47 [Chrome 120.0.0.0 linux #0-1] Expected: "Item:Q6" 13:21:47 [Chrome 120.0.0.0 linux #0-1] Received: undefined 13:21:47 [Chrome 120.0.0.0 linux #0-1] at Context.<anonymous> (/workspace/src/extensions/Wikibase/repo/tests/selenium/specs/item.js:116:61) 13:21:47 [Chrome 120.0.0.0 linux #0-1] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-2] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-2] Session ID: 52d95254-79e5-4fea-8fa7-5d164999b7bd 13:21:47 [Chrome 120.0.0.0 linux #0-2] 13:21:47 [Chrome 120.0.0.0 linux #0-2] » /repo/tests/selenium/specs/nonexisting.item.js 13:21:47 [Chrome 120.0.0.0 linux #0-2] WikibaseRepoNonExistingItemPage 13:21:47 [Chrome 120.0.0.0 linux #0-2] ✓ edit tab does should not be there 13:21:47 [Chrome 120.0.0.0 linux #0-2] ✓ the title should match 13:21:47 [Chrome 120.0.0.0 linux #0-2] 13:21:47 [Chrome 120.0.0.0 linux #0-2] 2 passing (2.2s) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-3] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-3] Session ID: 3fc512c1-da1c-495e-99b5-ea048593ff43 13:21:47 [Chrome 120.0.0.0 linux #0-3] 13:21:47 [Chrome 120.0.0.0 linux #0-3] » /repo/tests/selenium/specs/readmode.references.js 13:21:47 [Chrome 120.0.0.0 linux #0-3] WikibaseReferenceOnProtectedPage 13:21:47 [Chrome 120.0.0.0 linux #0-3] ✓ can expand collapsed references on a protected page as unprivileged user 13:21:47 [Chrome 120.0.0.0 linux #0-3] 13:21:47 [Chrome 120.0.0.0 linux #0-3] 1 passing (9s) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-4] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-4] Session ID: e011851b-dd7d-44e5-980c-17042647fa85 13:21:47 [Chrome 120.0.0.0 linux #0-4] 13:21:47 [Chrome 120.0.0.0 linux #0-4] » /repo/tests/selenium/specs/tainted-ref.js 13:21:47 [Chrome 120.0.0.0 linux #0-4] the Tainted icon 13:21:47 [Chrome 120.0.0.0 linux #0-4] - should appear and disappear correctly 13:21:47 [Chrome 120.0.0.0 linux #0-4] 13:21:47 [Chrome 120.0.0.0 linux #0-4] 1 skipped (823ms) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-5] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-5] Session ID: 3082c2ec-37bf-48af-8f7e-b94d2a4f1b12 13:21:47 [Chrome 120.0.0.0 linux #0-5] 13:21:47 [Chrome 120.0.0.0 linux #0-5] » /view/lib/wikibase-termbox/tests/selenium/specs/AnonEditWarning.spec.js 13:21:47 [Chrome 120.0.0.0 linux #0-5] Termbox: AnonEditWarning 13:21:47 [Chrome 120.0.0.0 linux #0-5] ✓ shows the warning overlay for anonymous users when clicking the edit button 13:21:47 [Chrome 120.0.0.0 linux #0-5] ✓ can be dismissed 13:21:47 [Chrome 120.0.0.0 linux #0-5] ✓ does not show the warning overlay again if the user opts out 13:21:47 [Chrome 120.0.0.0 linux #0-5] ✓ never appears for logged in users 13:21:47 [Chrome 120.0.0.0 linux #0-5] 13:21:47 [Chrome 120.0.0.0 linux #0-5] 4 passing (10.9s) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-6] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-6] Session ID: 717122ad-070f-4f73-aa30-673764e3869d 13:21:47 [Chrome 120.0.0.0 linux #0-6] 13:21:47 [Chrome 120.0.0.0 linux #0-6] » /view/lib/wikibase-termbox/tests/selenium/specs/editing.spec.js 13:21:47 [Chrome 120.0.0.0 linux #0-6] Termbox: editing 13:21:47 [Chrome 120.0.0.0 linux #0-6] edit mode 13:21:47 [Chrome 120.0.0.0 linux #0-6] ✓ is in edit mode after clicking the edit button 13:21:47 [Chrome 120.0.0.0 linux #0-6] ✓ switches back to reading mode when clicking the cancel button 13:21:47 [Chrome 120.0.0.0 linux #0-6] 13:21:47 [Chrome 120.0.0.0 linux #0-6] editing 13:21:47 [Chrome 120.0.0.0 linux #0-6] ✓ can edit labels, descriptions, and aliases 13:21:47 [Chrome 120.0.0.0 linux #0-6] ✓ shows an error when an edit fails to save when the entity was protected while editing 13:21:47 [Chrome 120.0.0.0 linux #0-6] 13:21:47 [Chrome 120.0.0.0 linux #0-6] 4 passing (9.5s) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-7] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-7] Session ID: e01e08c0-e467-4872-993a-b1200a7db4d8 13:21:47 [Chrome 120.0.0.0 linux #0-7] 13:21:47 [Chrome 120.0.0.0 linux #0-7] » /view/lib/wikibase-termbox/tests/selenium/specs/LicenseOverlay.spec.js 13:21:47 [Chrome 120.0.0.0 linux #0-7] Termbox: LicenseOverlay 13:21:47 [Chrome 120.0.0.0 linux #0-7] ✓ is shown when clicking publish 13:21:47 [Chrome 120.0.0.0 linux #0-7] ✓ disappears when clicking cancel and goes back to edit mode 13:21:47 [Chrome 120.0.0.0 linux #0-7] ✓ disappears and saves when clicking publish 13:21:47 [Chrome 120.0.0.0 linux #0-7] ✓ does not reappear after saving by default 13:21:47 [Chrome 120.0.0.0 linux #0-7] ✓ reappears after saving when unchecking the "remember my choice" checkbox 13:21:47 [Chrome 120.0.0.0 linux #0-7] 13:21:47 [Chrome 120.0.0.0 linux #0-7] 5 passing (9.2s) 13:21:47 ------------------------------------------------------------------ 13:21:47 [Chrome 120.0.0.0 linux #0-8] Running: Chrome (v120.0.0.0) on linux 13:21:47 [Chrome 120.0.0.0 linux #0-8] Session ID: ccdc3020-f12a-44b1-a0c9-71141b105323 13:21:47 [Chrome 120.0.0.0 linux #0-8] 13:21:47 [Chrome 120.0.0.0 linux #0-8] » /view/lib/wikibase-termbox/tests/selenium/specs/reading.spec.js 13:21:47 [Chrome 120.0.0.0 linux #0-8] Termbox: reading 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ is in reading mode when opening the item page 13:21:47 [Chrome 120.0.0.0 linux #0-8] 13:21:47 [Chrome 120.0.0.0 linux #0-8] primary language terms 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ contains the expected language with respective terms 13:21:47 [Chrome 120.0.0.0 linux #0-8] 13:21:47 [Chrome 120.0.0.0 linux #0-8] "in more languages" section 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ has a collapse/expand button 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ is expanded by default 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ is collapsible, also hiding the "all entered languages" section 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ expands again when clicking the button twice 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ contains the expected languages with respective terms 13:21:47 [Chrome 120.0.0.0 linux #0-8] 13:21:47 [Chrome 120.0.0.0 linux #0-8] "all entered languages" section 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ is collapsed by default 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ has a collapse/expand button 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ is expandable 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ collapses again when clicking the button twice 13:21:47 [Chrome 120.0.0.0 linux #0-8] ✓ contains the expected languages with respective terms 13:21:47 [Chrome 120.0.0.0 linux #0-8] 13:21:47 [Chrome 120.0.0.0 linux #0-8] 12 passing (13.4s) 13:21:47 13:21:47 13:21:47 Spec Files: 8 passed, 1 retries, 1 failed, 9 total (100% completed) in 00:02:10