Tests run correctly with node v16
โ mediawiki git:(master) โ node --version v16.19.1 โ mediawiki git:(master) โ npm run selenium-test > selenium-test > wdio ./tests/selenium/wdio.conf.js Execution of 5 workers started at 2024-01-22T15:53:17.503Z [0-2] RUNNING in chrome - /tests/selenium/specs/user.js [0-1] RUNNING in chrome - /tests/selenium/specs/recentchanges.js [0-3] RUNNING in chrome - /tests/selenium/specs/watchlist.js [0-0] RUNNING in chrome - /tests/selenium/specs/page.js [0-3] PASSED in chrome - /tests/selenium/specs/watchlist.js [0-4] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js [0-4] PASSED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js [0-1] PASSED in chrome - /tests/selenium/specs/recentchanges.js [0-2] PASSED in chrome - /tests/selenium/specs/user.js [0-0] PASSED in chrome - /tests/selenium/specs/page.js "spec" Reporter: ------------------------------------------------------------------ [Chrome Headless 120.0.6099.234 darwin #0-3] Running: Chrome Headless (v120.0.6099.234) on darwin [Chrome Headless 120.0.6099.234 darwin #0-3] Session ID: 9c365b08-ee4d-46de-b40e-3be50e9c83e9 [Chrome Headless 120.0.6099.234 darwin #0-3] [Chrome Headless 120.0.6099.234 darwin #0-3] ยป /tests/selenium/specs/watchlist.js [Chrome Headless 120.0.6099.234 darwin #0-3] Special:Watchlist [Chrome Headless 120.0.6099.234 darwin #0-3] - should show page with new edit @daily [Chrome Headless 120.0.6099.234 darwin #0-3] [Chrome Headless 120.0.6099.234 darwin #0-3] 1 skipped (1.2s) ------------------------------------------------------------------ [Chrome Headless 120.0.6099.234 darwin #0-4] Running: Chrome Headless (v120.0.6099.234) on darwin [Chrome Headless 120.0.6099.234 darwin #0-4] Session ID: 340b888c-dff3-4abf-a868-99da5d5c796d [Chrome Headless 120.0.6099.234 darwin #0-4] [Chrome Headless 120.0.6099.234 darwin #0-4] ยป /tests/selenium/wdio-mediawiki/specs/BlankPage.js [Chrome Headless 120.0.6099.234 darwin #0-4] BlankPage [Chrome Headless 120.0.6099.234 darwin #0-4] โ should have its title @daily [Chrome Headless 120.0.6099.234 darwin #0-4] [Chrome Headless 120.0.6099.234 darwin #0-4] 1 passing (789ms) ------------------------------------------------------------------ [Chrome Headless 120.0.6099.234 darwin #0-1] Running: Chrome Headless (v120.0.6099.234) on darwin [Chrome Headless 120.0.6099.234 darwin #0-1] Session ID: 9573f0d7-850b-4647-a0c9-d146e1af3d77 [Chrome Headless 120.0.6099.234 darwin #0-1] [Chrome Headless 120.0.6099.234 darwin #0-1] ยป /tests/selenium/specs/recentchanges.js [Chrome Headless 120.0.6099.234 darwin #0-1] Special:RecentChanges [Chrome Headless 120.0.6099.234 darwin #0-1] โ shows page creation [Chrome Headless 120.0.6099.234 darwin #0-1] [Chrome Headless 120.0.6099.234 darwin #0-1] 1 passing (3.7s) ------------------------------------------------------------------ [Chrome Headless 120.0.6099.234 darwin #0-2] Running: Chrome Headless (v120.0.6099.234) on darwin [Chrome Headless 120.0.6099.234 darwin #0-2] Session ID: 52168729-821f-4380-b5eb-46bfe21c3796 [Chrome Headless 120.0.6099.234 darwin #0-2] [Chrome Headless 120.0.6099.234 darwin #0-2] ยป /tests/selenium/specs/user.js [Chrome Headless 120.0.6099.234 darwin #0-2] User [Chrome Headless 120.0.6099.234 darwin #0-2] โ should be able to create account [Chrome Headless 120.0.6099.234 darwin #0-2] โ should be able to log in @daily [Chrome Headless 120.0.6099.234 darwin #0-2] [Chrome Headless 120.0.6099.234 darwin #0-2] 2 passing (5.5s) ------------------------------------------------------------------ [Chrome Headless 120.0.6099.234 darwin #0-0] Running: Chrome Headless (v120.0.6099.234) on darwin [Chrome Headless 120.0.6099.234 darwin #0-0] Session ID: 24b5b8c4-1e35-4e65-a658-f585965e6789 [Chrome Headless 120.0.6099.234 darwin #0-0] [Chrome Headless 120.0.6099.234 darwin #0-0] ยป /tests/selenium/specs/page.js [Chrome Headless 120.0.6099.234 darwin #0-0] Page [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be previewable @daily [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be creatable [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be re-creatable [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be editable @daily [Chrome Headless 120.0.6099.234 darwin #0-0] โ should have history @daily [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be deletable [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be restorable [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be protectable [Chrome Headless 120.0.6099.234 darwin #0-0] โ should be undoable @daily [Chrome Headless 120.0.6099.234 darwin #0-0] [Chrome Headless 120.0.6099.234 darwin #0-0] 9 passing (22.5s) Spec Files: 5 passed, 5 total (100% completed) in 00:00:23
and fails with node v18
โ mediawiki git:(master) โ node --version v18.19.0 โ mediawiki git:(master) โ npm run selenium-test > selenium-test > wdio ./tests/selenium/wdio.conf.js Execution of 5 workers started at 2024-01-22T15:55:03.245Z [0-3] RUNNING in chrome - /tests/selenium/specs/watchlist.js [0-1] RUNNING in chrome - /tests/selenium/specs/recentchanges.js [0-2] RUNNING in chrome - /tests/selenium/specs/user.js [0-0] RUNNING in chrome - /tests/selenium/specs/page.js [0-3] 2024-01-22T15:55:04.376Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54045/json/version: request to http://localhost:54045/json/version failed, reason: connect ECONNREFUSED ::1:54045 [0-3] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-3] at ClientRequest.emit (node:events:517:28) [0-3] at ClientRequest.emit (node:domain:489:12) [0-3] at Socket.socketErrorListener (node:_http_client:501:9) [0-3] at Socket.emit (node:events:517:28) [0-3] at Socket.emit (node:domain:489:12) [0-3] at emitErrorNT (node:internal/streams/destroy:151:8) [0-3] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-3] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-2] 2024-01-22T15:55:04.376Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54043/json/version: request to http://localhost:54043/json/version failed, reason: connect ECONNREFUSED ::1:54043 [0-2] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-2] at ClientRequest.emit (node:events:517:28) [0-2] at ClientRequest.emit (node:domain:489:12) [0-2] at Socket.socketErrorListener (node:_http_client:501:9) [0-2] at Socket.emit (node:events:517:28) [0-2] at Socket.emit (node:domain:489:12) [0-2] at emitErrorNT (node:internal/streams/destroy:151:8) [0-2] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-2] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-0] 2024-01-22T15:55:04.376Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54044/json/version: request to http://localhost:54044/json/version failed, reason: connect ECONNREFUSED ::1:54044 [0-0] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-0] at ClientRequest.emit (node:events:517:28) [0-0] at ClientRequest.emit (node:domain:489:12) [0-0] at Socket.socketErrorListener (node:_http_client:501:9) [0-0] at Socket.emit (node:events:517:28) [0-0] at Socket.emit (node:domain:489:12) [0-0] at emitErrorNT (node:internal/streams/destroy:151:8) [0-0] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-0] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-1] 2024-01-22T15:55:04.376Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54042/json/version: request to http://localhost:54042/json/version failed, reason: connect ECONNREFUSED ::1:54042 [0-1] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-1] at ClientRequest.emit (node:events:517:28) [0-1] at ClientRequest.emit (node:domain:489:12) [0-1] at Socket.socketErrorListener (node:_http_client:501:9) [0-1] at Socket.emit (node:events:517:28) [0-1] at Socket.emit (node:domain:489:12) [0-1] at emitErrorNT (node:internal/streams/destroy:151:8) [0-1] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-1] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-3] RETRYING in chrome - /tests/selenium/specs/watchlist.js [0-0] RETRYING in chrome - /tests/selenium/specs/page.js [0-1] RETRYING in chrome - /tests/selenium/specs/recentchanges.js [0-2] RETRYING in chrome - /tests/selenium/specs/user.js [0-2] RUNNING in chrome - /tests/selenium/specs/user.js [0-3] RUNNING in chrome - /tests/selenium/specs/watchlist.js [0-1] RUNNING in chrome - /tests/selenium/specs/recentchanges.js [0-0] RUNNING in chrome - /tests/selenium/specs/page.js [0-3] 2024-01-22T15:55:05.623Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54062/json/version: request to http://localhost:54062/json/version failed, reason: connect ECONNREFUSED ::1:54062 [0-3] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-3] at ClientRequest.emit (node:events:517:28) [0-3] at ClientRequest.emit (node:domain:489:12) [0-3] at Socket.socketErrorListener (node:_http_client:501:9) [0-3] at Socket.emit (node:events:517:28) [0-3] at Socket.emit (node:domain:489:12) [0-3] at emitErrorNT (node:internal/streams/destroy:151:8) [0-3] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-3] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-2] 2024-01-22T15:55:05.623Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54064/json/version: request to http://localhost:54064/json/version failed, reason: connect ECONNREFUSED ::1:54064 [0-2] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-2] at ClientRequest.emit (node:events:517:28) [0-2] at ClientRequest.emit (node:domain:489:12) [0-2] at Socket.socketErrorListener (node:_http_client:501:9) [0-2] at Socket.emit (node:events:517:28) [0-2] at Socket.emit (node:domain:489:12) [0-2] at emitErrorNT (node:internal/streams/destroy:151:8) [0-2] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-2] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-0] 2024-01-22T15:55:05.623Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54065/json/version: request to http://localhost:54065/json/version failed, reason: connect ECONNREFUSED ::1:54065 [0-0] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-0] at ClientRequest.emit (node:events:517:28) [0-0] at ClientRequest.emit (node:domain:489:12) [0-0] at Socket.socketErrorListener (node:_http_client:501:9) [0-0] at Socket.emit (node:events:517:28) [0-0] at Socket.emit (node:domain:489:12) [0-0] at emitErrorNT (node:internal/streams/destroy:151:8) [0-0] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-0] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-1] 2024-01-22T15:55:05.623Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54063/json/version: request to http://localhost:54063/json/version failed, reason: connect ECONNREFUSED ::1:54063 [0-1] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-1] at ClientRequest.emit (node:events:517:28) [0-1] at ClientRequest.emit (node:domain:489:12) [0-1] at Socket.socketErrorListener (node:_http_client:501:9) [0-1] at Socket.emit (node:events:517:28) [0-1] at Socket.emit (node:domain:489:12) [0-1] at emitErrorNT (node:internal/streams/destroy:151:8) [0-1] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-1] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-3] FAILED in chrome - /tests/selenium/specs/watchlist.js (1 retries) [0-0] FAILED in chrome - /tests/selenium/specs/page.js (1 retries) [0-1] FAILED in chrome - /tests/selenium/specs/recentchanges.js (1 retries) [0-2] FAILED in chrome - /tests/selenium/specs/user.js (1 retries) [0-4] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js [0-4] 2024-01-22T15:55:06.816Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54079/json/version: request to http://localhost:54079/json/version failed, reason: connect ECONNREFUSED ::1:54079 [0-4] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-4] at ClientRequest.emit (node:events:517:28) [0-4] at ClientRequest.emit (node:domain:489:12) [0-4] at Socket.socketErrorListener (node:_http_client:501:9) [0-4] at Socket.emit (node:events:517:28) [0-4] at Socket.emit (node:domain:489:12) [0-4] at emitErrorNT (node:internal/streams/destroy:151:8) [0-4] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-4] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-4] RETRYING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js [0-4] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js [0-4] 2024-01-22T15:55:08.067Z ERROR @wdio/runner: FetchError: Failed to fetch browser webSocket URL from http://localhost:54086/json/version: request to http://localhost:54086/json/version failed, reason: connect ECONNREFUSED ::1:54086 [0-4] at ClientRequest.<anonymous> (/Users/vaughnwalters/workspace/gerrit/mediawiki/node_modules/node-fetch/lib/index.js:1491:11) [0-4] at ClientRequest.emit (node:events:517:28) [0-4] at ClientRequest.emit (node:domain:489:12) [0-4] at Socket.socketErrorListener (node:_http_client:501:9) [0-4] at Socket.emit (node:events:517:28) [0-4] at Socket.emit (node:domain:489:12) [0-4] at emitErrorNT (node:internal/streams/destroy:151:8) [0-4] at emitErrorCloseNT (node:internal/streams/destroy:116:3) [0-4] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [0-4] FAILED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js (1 retries) Spec Files: 0 passed, 5 retries, 5 failed, 5 total (100% completed) in 00:00:04