Page MenuHomePhabricator
Paste P17637

Fileimporter$ npm run selenium-test error
ActivePublic

Authored by Mhmohona on Oct 29 2021, 2:53 PM.
mohona@mohona:~/Desktop/SeleniumTests/fileimporter/mediawiki/extensions/FileImporter$ npm run selenium-test
> @ selenium-test /home/mohona/Desktop/SeleniumTests/fileimporter/mediawiki/extensions/FileImporter
> wdio tests/selenium/wdio.conf.js
Execution of 2 spec files started at 2021-10-29T13:19:37.087Z
[0-0] RUNNING in chrome - /tests/selenium/specs/helpbanner.js
[0-0] ffmpeg stderr: [x11grab @ 0x561b848ea780] Capture area 1280x1024 at position 0.0 outside the screen size 1366x768
[0-0] ffmpeg stderr: :0: Invalid argument
[0-0]
Video location: /home/mohona/Desktop/SeleniumTests/fileimporter/mediawiki/extensions/FileImporter/tests/selenium/log/ImportPreview-page-shows-dismissible-help-banner-2021-10-29T13-19-41-975Z.mp4
ffmpeg exited with code 1 /home/mohona/Desktop/SeleniumTests/fileimporter/mediawiki/extensions/FileImporter/tests/selenium/log/ImportPreview-page-shows-dismissible-help-banner-2021-10-29T13-19-41-975Z.mp4
[0-0] AssertionError [ERR_ASSERTION] in "ImportPreview page.shows dismissible help banner"
AssertionError [ERR_ASSERTION]: the help banner is visible
at Context.it (/home/mohona/Desktop/SeleniumTests/fileimporter/mediawiki/extensions/FileImporter/tests/selenium/specs/helpbanner.js:18:3)
[0-0] FAILED in chrome - /tests/selenium/specs/helpbanner.js
[0-1] RUNNING in chrome - /tests/selenium/specs/wikitext_editor.js
[0-1] PASSED in chrome - /tests/selenium/specs/wikitext_editor.js
"dot" Reporter:
F.
Spec Files: 1 passed, 1 failed, 2 total (100% completed) in 00:00:13
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/mohona/.npm/_logs/2021-10-29T13_19_50_700Z-debug.log

Event Timeline

It looks like the ffmpeg arguments are wrong for the requested screen size - 1280x1024 is taller than 1366x768 so it can't capture a 1024 pixel height.