Summary
CheckUser selenium tests are failing when they are run using QuickStart
Technical details
| 1 | ~/Documents/gitlab/test-platform/mediawiki-quickstart$ time VERBOSE=1 ./run_selenium_tests "extensions/CheckUser/tests/selenium/*specs/**/*.js" ".*" |
|---|---|
| 2 | |
| 3 | Ensuring Selenium ready... |
| 4 | |
| 5 | Installing Selenium browser binary... |
| 6 | Chromium 98.0.4758.0 |
| 7 | |
| 8 | Execution of 5 workers started at 2025-01-29T14:17:17.859Z |
| 9 | |
| 10 | [0-0] RUNNING in chrome - /extensions/CheckUser/tests/selenium/pre-specs/createCheckUserAccount.js |
| 11 | [0-0] PASSED in chrome - /extensions/CheckUser/tests/selenium/pre-specs/createCheckUserAccount.js |
| 12 | [0-1] RUNNING in chrome - /extensions/CheckUser/tests/selenium/specs/checkuser.js |
| 13 | [0-1] PASSED in chrome - /extensions/CheckUser/tests/selenium/specs/checkuser.js |
| 14 | [0-2] RUNNING in chrome - /extensions/CheckUser/tests/selenium/specs/checkuserlog.js |
| 15 | [0-2] PASSED in chrome - /extensions/CheckUser/tests/selenium/specs/checkuserlog.js |
| 16 | [0-3] RUNNING in chrome - /extensions/CheckUser/tests/selenium/specs/clienthints.js |
| 17 | [0-3] Error in "Client Hints."before all" hook for "Verify edit sends Client Hints data"" |
| 18 | Error: Can't call click on element with selector "#vector-user-links-dropdown" because element wasn't found |
| 19 | at async LogoutPage.logoutViaMenuItem (/var/www/html/w/extensions/CheckUser/tests/selenium/pageobjects/logout.page.js:27:3) |
| 20 | at async Context.<anonymous> (/var/www/html/w/extensions/CheckUser/tests/selenium/specs/clienthints.js:64:3) |
| 21 | [0-3] FAILED in chrome - /extensions/CheckUser/tests/selenium/specs/clienthints.js |
| 22 | [0-4] RUNNING in chrome - /extensions/CheckUser/tests/selenium/specs/investigate.js |
| 23 | [0-4] PASSED in chrome - /extensions/CheckUser/tests/selenium/specs/investigate.js |
| 24 | |
| 25 | "spec" Reporter: |
| 26 | ------------------------------------------------------------------ |
| 27 | [Chrome 98.0.4758.0 linux #0-0] Running: Chrome (v98.0.4758.0) on linux |
| 28 | [Chrome 98.0.4758.0 linux #0-0] Session ID: 5ff7bcf4-0792-475a-b885-545c0592d6be |
| 29 | [Chrome 98.0.4758.0 linux #0-0] |
| 30 | [Chrome 98.0.4758.0 linux #0-0] » /extensions/CheckUser/tests/selenium/pre-specs/createCheckUserAccount.js |
| 31 | [Chrome 98.0.4758.0 linux #0-0] Create CheckUser account |
| 32 | [Chrome 98.0.4758.0 linux #0-0] ✓ Create CheckUser account |
| 33 | [Chrome 98.0.4758.0 linux #0-0] |
| 34 | [Chrome 98.0.4758.0 linux #0-0] 1 passing (2.2s) |
| 35 | ------------------------------------------------------------------ |
| 36 | [Chrome 98.0.4758.0 linux #0-1] Running: Chrome (v98.0.4758.0) on linux |
| 37 | [Chrome 98.0.4758.0 linux #0-1] Session ID: 790b0f2f-b149-4028-b456-58491345f8b6 |
| 38 | [Chrome 98.0.4758.0 linux #0-1] |
| 39 | [Chrome 98.0.4758.0 linux #0-1] » /extensions/CheckUser/tests/selenium/specs/checkuser.js |
| 40 | [Chrome 98.0.4758.0 linux #0-1] CheckUser |
| 41 | [Chrome 98.0.4758.0 linux #0-1] Without CheckUser user group |
| 42 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should display permission error to logged-out user |
| 43 | [Chrome 98.0.4758.0 linux #0-1] |
| 44 | [Chrome 98.0.4758.0 linux #0-1] With CheckUser user group |
| 45 | [Chrome 98.0.4758.0 linux #0-1] Verify checkuser can make checks: |
| 46 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should show target input |
| 47 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should show checkuser radios |
| 48 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should show duration selector |
| 49 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should show check reason input |
| 50 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should show submit button |
| 51 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should show CIDR form before check is run |
| 52 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should be able to run 'Get IPs' check |
| 53 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should be able to run 'Get actions' check |
| 54 | [Chrome 98.0.4758.0 linux #0-1] ✓ Should be able to run 'Get users' check |
| 55 | [Chrome 98.0.4758.0 linux #0-1] |
| 56 | [Chrome 98.0.4758.0 linux #0-1] 10 passing (11.7s) |
| 57 | ------------------------------------------------------------------ |
| 58 | [Chrome 98.0.4758.0 linux #0-2] Running: Chrome (v98.0.4758.0) on linux |
| 59 | [Chrome 98.0.4758.0 linux #0-2] Session ID: 090d4f74-e7ba-49d6-8fd0-9c4b77a26e8f |
| 60 | [Chrome 98.0.4758.0 linux #0-2] |
| 61 | [Chrome 98.0.4758.0 linux #0-2] » /extensions/CheckUser/tests/selenium/specs/checkuserlog.js |
| 62 | [Chrome 98.0.4758.0 linux #0-2] CheckUserLog |
| 63 | [Chrome 98.0.4758.0 linux #0-2] Without CheckUser user group |
| 64 | [Chrome 98.0.4758.0 linux #0-2] ✓ Should display permission error to logged-out user |
| 65 | [Chrome 98.0.4758.0 linux #0-2] |
| 66 | [Chrome 98.0.4758.0 linux #0-2] With CheckUser user group |
| 67 | [Chrome 98.0.4758.0 linux #0-2] Verify checkuser can interact with the CheckUser log |
| 68 | [Chrome 98.0.4758.0 linux #0-2] ✓ Should show target input |
| 69 | [Chrome 98.0.4758.0 linux #0-2] ✓ Should show initiator input |
| 70 | [Chrome 98.0.4758.0 linux #0-2] ✓ Should show start date selector |
| 71 | [Chrome 98.0.4758.0 linux #0-2] ✓ Should show end date selector |
| 72 | [Chrome 98.0.4758.0 linux #0-2] ✓ Should show search button |
| 73 | [Chrome 98.0.4758.0 linux #0-2] ✓ Should be able to use the filters to search |
| 74 | [Chrome 98.0.4758.0 linux #0-2] |
| 75 | [Chrome 98.0.4758.0 linux #0-2] 7 passing (4.1s) |
| 76 | ------------------------------------------------------------------ |
| 77 | [Chrome 98.0.4758.0 linux #0-3] Running: Chrome (v98.0.4758.0) on linux |
| 78 | [Chrome 98.0.4758.0 linux #0-3] Session ID: f4822e1e-0822-439e-83d4-f0db8ed2e33b |
| 79 | [Chrome 98.0.4758.0 linux #0-3] |
| 80 | [Chrome 98.0.4758.0 linux #0-3] » /extensions/CheckUser/tests/selenium/specs/clienthints.js |
| 81 | [Chrome 98.0.4758.0 linux #0-3] Client Hints |
| 82 | [Chrome 98.0.4758.0 linux #0-3] ✖ "before all" hook for Client Hints |
| 83 | [Chrome 98.0.4758.0 linux #0-3] |
| 84 | [Chrome 98.0.4758.0 linux #0-3] 1 failing (8.9s) |
| 85 | [Chrome 98.0.4758.0 linux #0-3] |
| 86 | [Chrome 98.0.4758.0 linux #0-3] 1) Client Hints "before all" hook for Client Hints |
| 87 | [Chrome 98.0.4758.0 linux #0-3] Can't call click on element with selector "#vector-user-links-dropdown" because element wasn't found |
| 88 | [Chrome 98.0.4758.0 linux #0-3] Error: Can't call click on element with selector "#vector-user-links-dropdown" because element wasn't found |
| 89 | [Chrome 98.0.4758.0 linux #0-3] at async LogoutPage.logoutViaMenuItem (/var/www/html/w/extensions/CheckUser/tests/selenium/pageobjects/logout.page.js:27:3) |
| 90 | [Chrome 98.0.4758.0 linux #0-3] at async Context.<anonymous> (/var/www/html/w/extensions/CheckUser/tests/selenium/specs/clienthints.js:64:3) |
| 91 | ------------------------------------------------------------------ |
| 92 | [Chrome 98.0.4758.0 linux #0-4] Running: Chrome (v98.0.4758.0) on linux |
| 93 | [Chrome 98.0.4758.0 linux #0-4] Session ID: c1918dfc-5dc1-47a4-bab5-fb5f145cefce |
| 94 | [Chrome 98.0.4758.0 linux #0-4] |
| 95 | [Chrome 98.0.4758.0 linux #0-4] » /extensions/CheckUser/tests/selenium/specs/investigate.js |
| 96 | [Chrome 98.0.4758.0 linux #0-4] Investigate |
| 97 | [Chrome 98.0.4758.0 linux #0-4] Without CheckUser user group |
| 98 | [Chrome 98.0.4758.0 linux #0-4] ✓ Should display permission error to logged-out user |
| 99 | [Chrome 98.0.4758.0 linux #0-4] |
| 100 | [Chrome 98.0.4758.0 linux #0-4] With CheckUser user group |
| 101 | [Chrome 98.0.4758.0 linux #0-4] ✓ Should show targets input |
| 102 | [Chrome 98.0.4758.0 linux #0-4] ✓ Should show duration selector |
| 103 | [Chrome 98.0.4758.0 linux #0-4] ✓ Should show reason field |
| 104 | [Chrome 98.0.4758.0 linux #0-4] |
| 105 | [Chrome 98.0.4758.0 linux #0-4] 4 passing (3s) |
| 106 | |
| 107 | |
| 108 | Spec Files: 4 passed, 1 failed, 5 total (100% completed) in 00:00:52 |
| 109 | |
| 110 | VERBOSE=1 ./run_selenium_tests ".*" 0.27s user 0.20s system 0% cpu 1:06.06 total |
Acceptance criteria
- CheckUser Selenium tests no longer fail when run using QuickStart