I installed mediawiki following the instructions here and here. I am using nodejs 12 lts.
I am running the selenium tests using
npm ci npm run selenium
The terminal output is
> @ selenium /home/dinp2/Desktop/mediawiki
> bash ./tests/selenium/selenium.sh
Starting ChromeDriver 80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987@{#882}) on port 4444
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
> @ selenium-test /home/dinp2/Desktop/mediawiki
> wdio ./tests/selenium/wdio.conf.js
Execution of 6 spec files started at 2020-03-20T10:06:21.679Z
[0-0] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-0] Error in ""before each" hook"
spawn ffmpeg ENOENT
[0-0]
Screenshot location: /home/dinp2/Desktop/mediawiki/tests/selenium/log/BlankPage-should-have-its-title-%40daily.png
[0-0] 2020-03-20T10:06:23.721Z ERROR webdriver: Request failed due to invalid session id: invalid session id
at getErrorFromResponseBody (/home/dinp2/Desktop/mediawiki/node_modules/webdriver/build/utils.js:175:10)
at Request._callback (/home/dinp2/Desktop/mediawiki/node_modules/webdriver/build/request.js:110:64)
at Request.self.callback (/home/dinp2/Desktop/mediawiki/node_modules/request/request.js:185:22)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at Request.<anonymous> (/home/dinp2/Desktop/mediawiki/node_modules/request/request.js:1161:10)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at IncomingMessage.<anonymous> (/home/dinp2/Desktop/mediawiki/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:417:28)
[0-0] (node:10336) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'currentRetry' of undefined
at /home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runner.js:656:28
at done (/home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runnable.js:334:5)
at /home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runnable.js:398:11
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[0-0] (node:10336) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:10336) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[0-0] FAILED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-1] RUNNING in chrome - /tests/selenium/specs/page.js
[0-1] [15:36:25] [S] [MWBOT] Login successful: Admin@http://localhost:8080/
[0-1] Error in ""before each" hook"
spawn ffmpeg ENOENT
[0-1]
Screenshot location: /home/dinp2/Desktop/mediawiki/tests/selenium/log/Page-should-be-previewable.png
[0-1] FAILED in chrome - /tests/selenium/specs/page.js
[0-2] RUNNING in chrome - /tests/selenium/specs/rollback.js
[0-2] PASSED in chrome - /tests/selenium/specs/rollback.js
[0-3] RUNNING in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-3] [15:36:33] [S] [MWBOT] Login successful: Admin@http://localhost:8080/
[0-3] Error in ""before each" hook"
spawn ffmpeg ENOENT
[0-3]
Screenshot location: /home/dinp2/Desktop/mediawiki/tests/selenium/log/Special%3ARecentChanges-shows-page-creation.png
[0-3] FAILED in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-4] RUNNING in chrome - /tests/selenium/specs/specialwatchlist.js
[0-4] [15:36:36] [S] [MWBOT] Login successful: Admin@http://localhost:8080/
[0-4] Error in ""before each" hook"
spawn ffmpeg ENOENT
[0-4]
Screenshot location: /home/dinp2/Desktop/mediawiki/tests/selenium/log/Special%3AWatchlist-should-show-page-with-new-edit.png
[0-4] 2020-03-20T10:06:36.737Z ERROR webdriver: Request failed due to invalid session id: invalid session id
at getErrorFromResponseBody (/home/dinp2/Desktop/mediawiki/node_modules/webdriver/build/utils.js:175:10)
at Request._callback (/home/dinp2/Desktop/mediawiki/node_modules/webdriver/build/request.js:110:64)
at Request.self.callback (/home/dinp2/Desktop/mediawiki/node_modules/request/request.js:185:22)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at Request.<anonymous> (/home/dinp2/Desktop/mediawiki/node_modules/request/request.js:1161:10)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at IncomingMessage.<anonymous> (/home/dinp2/Desktop/mediawiki/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:417:28)
at IncomingMessage.emit (events.js:323:22)
at IncomingMessage.EventEmitter.emit (domain.js:482:12)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[0-4] invalid session id in "Special:Watchlist "before each" hook for "should show page with new edit""
invalid session id
[0-4] (node:10926) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fail' of undefined
at DotReporter.<anonymous> (/home/dinp2/Desktop/mediawiki/node_modules/@wdio/reporter/build/index.js:110:16)
at DotReporter.emit (events.js:311:20)
at DotReporter.EventEmitter.emit (domain.js:482:12)
at /home/dinp2/Desktop/mediawiki/node_modules/@wdio/runner/build/reporter.js:38:49
at Array.forEach (<anonymous>)
at BaseReporter.emit (/home/dinp2/Desktop/mediawiki/node_modules/@wdio/runner/build/reporter.js:38:20)
at MochaAdapter.emit (/home/dinp2/Desktop/mediawiki/node_modules/@wdio/mocha-framework/build/index.js:211:19)
at Runner.emit (events.js:323:22)
at Runner.EventEmitter.emit (domain.js:482:12)
at Runner.fail (/home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runner.js:304:8)
at Runner.failHook (/home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runner.js:343:8)
at /home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runner.js:412:16
at done (/home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runnable.js:334:5)
at /home/dinp2/Desktop/mediawiki/node_modules/mocha/lib/runnable.js:398:11
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[0-4] (node:10926) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:10926) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[0-4] FAILED in chrome - /tests/selenium/specs/specialwatchlist.js
[0-5] RUNNING in chrome - /tests/selenium/specs/user.js
[0-5] [15:36:38] [S] [MWBOT] Login successful: Admin@http://localhost:8080/
[0-5] Error in ""before each" hook"
spawn ffmpeg ENOENT
[0-5]
Screenshot location: /home/dinp2/Desktop/mediawiki/tests/selenium/log/User-should-be-able-to-create-account.png
[0-5] FAILED in chrome - /tests/selenium/specs/user.js
"dot" Reporter:
FF......FFF
Spec Files: 1 passed, 5 failed, 6 total (100% completed) in 00:00:17
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ selenium-test: `wdio ./tests/selenium/wdio.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ selenium-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dinp2/.npm/_logs/2020-03-20T10_06_39_360Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ selenium: `bash ./tests/selenium/selenium.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ selenium script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dinp2/.npm/_logs/2020-03-20T10_06_39_400Z-debug.logIs there any other information that I should include?