Page MenuHomePhabricator

Result test following the guidelines in the topic "Selenium/How-to/Run tests targeting MediaWiki-Docker using Fresh"

Authored By
Akanksha_Bhattachan
Oct 27 2020, 1:42 PM
Size
8 KB
Referenced Files
None
Subscribers
None

Result test following the guidelines in the topic "Selenium/How-to/Run tests targeting MediaWiki-Docker using Fresh"

root@akanksha:/home/akanksha/Documents/outreachy/core# fresh-node -env -net
# fresh: 20.08.1 (2020-08-27)
# image: docker-registry.wikimedia.org/releng/node10-test-browser:0.6.2
# software: Debian GNU/Linux 9 (stretch)
# Node.js v10.15.2 (npm 6.14.5)
# Chromium 71.0.3578.80
# Mozilla Firefox 68.11.0esr
# JSDuck 5.3.4 (Ruby 2.3.3)
# mount: /core ➟ /home/akanksha/Documents/outreachy/core (read-write)
# /core/.git ➟ /home/akanksha/Documents/outreachy/core/.git (read-only)
# env: MW_*, MEDIAWIKI_*
# net: expose host
🌱 Fresh!
root@akanksha:/core# npm ci
npm WARN prepare removing existing node_modules/ before installation
> @ffmpeg-installer/darwin-x64@4.1.0 postinstall /core/node_modules/@ffmpeg-installer/darwin-x64
> chmod u+x ffmpeg
> @ffmpeg-installer/linux-x64@4.1.0 postinstall /core/node_modules/@ffmpeg-installer/linux-x64
> chmod u+x ffmpeg
> @ffmpeg-installer/linux-ia32@4.1.0 postinstall /core/node_modules/@ffmpeg-installer/linux-ia32
> chmod u+x ffmpeg
> @ffmpeg-installer/linux-arm64@4.1.4 postinstall /core/node_modules/@ffmpeg-installer/linux-arm64
> chmod u+x ffmpeg
> @ffmpeg-installer/linux-arm@4.1.3 postinstall /core/node_modules/@ffmpeg-installer/linux-arm
> chmod u+x ffmpeg
> fibers@4.0.3 install /core/node_modules/fibers
> node build.js || nodejs build.js
`linux-x64-64-glibc` exists; testing
Binary is fine; exiting
> sauce-connect-launcher-update@1.3.2 postinstall /core/node_modules/sauce-connect-launcher-update
> node scripts/install.js || nodejs scripts/install.js
> core-js@3.6.5 postinstall /core/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
added 1504 packages in 55.138s
root@akanksha:/core# npm run selenium
> @ selenium /core
> bash ./tests/selenium/selenium.sh
Starting ChromeDriver 71.0.3578.80 on port 4444
Only local connections are allowed.
[1603805410.706][SEVERE]: bind() returned an error, errno=98: Address already in use (98)
IPv6 port not available. Exiting...
> @ selenium-test /core
> wdio ./tests/selenium/wdio.conf.js
Execution of 6 spec files started at 2020-10-27T13:30:12.749Z
(node:92) ExperimentalWarning: The dns.promises API is experimental
(node:92) ExperimentalWarning: The fs.promises API is experimental
[0-0] (node:101) ExperimentalWarning: The dns.promises API is experimental
[0-0] (node:101) ExperimentalWarning: The fs.promises API is experimental
[0-0] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-0] (node:101) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-0] (node:101) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time
[0-0]
Screenshot location: /core/tests/selenium/log/BlankPage-should-have-its-title-%40daily.png
[0-0] PASSED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-1] (node:148) ExperimentalWarning: The dns.promises API is experimental
[0-1] (node:148) ExperimentalWarning: The fs.promises API is experimental
[0-1] RUNNING in chrome - /tests/selenium/specs/page.js
[0-1] (node:148) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-1] (node:148) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time
[0-1] [13:30:22] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-be-previewable.png
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-be-creatable.png
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-be-re-creatable.png
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-be-editable-%40daily.png
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-have-history-%40daily.png
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-be-deletable.png
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-be-restorable.png
[0-1]
Screenshot location: /core/tests/selenium/log/Page-should-be-undoable.png
[0-1] PASSED in chrome - /tests/selenium/specs/page.js
[0-2] (node:433) ExperimentalWarning: The dns.promises API is experimental
[0-2] (node:433) ExperimentalWarning: The fs.promises API is experimental
[0-2] RUNNING in chrome - /tests/selenium/specs/rollback.js
[0-2] (node:433) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-2] (node:433) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time
[0-2] PASSED in chrome - /tests/selenium/specs/rollback.js
[0-3] (node:446) ExperimentalWarning: The dns.promises API is experimental
[0-3] (node:446) ExperimentalWarning: The fs.promises API is experimental
[0-3] RUNNING in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-3] (node:446) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-3] (node:446) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time
[0-3] [13:32:40] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w
[0-3]
Screenshot location: /core/tests/selenium/log/Special%3ARecentChanges-shows-page-creation.png
[0-3] PASSED in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-4] (node:493) ExperimentalWarning: The dns.promises API is experimental
[0-4] (node:493) ExperimentalWarning: The fs.promises API is experimental
[0-4] RUNNING in chrome - /tests/selenium/specs/specialwatchlist.js
[0-4] (node:493) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-4] (node:493) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time
[0-4] [13:32:56] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w
[0-4]
Screenshot location: /core/tests/selenium/log/Special%3AWatchlist-should-show-page-with-new-edit.png
[0-4] PASSED in chrome - /tests/selenium/specs/specialwatchlist.js
[0-5] (node:540) ExperimentalWarning: The dns.promises API is experimental
[0-5] (node:540) ExperimentalWarning: The fs.promises API is experimental
[0-5] RUNNING in chrome - /tests/selenium/specs/user.js
[0-5] (node:540) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-5] (node:540) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time
[0-5] [13:34:04] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w
[0-5]
Screenshot location: /core/tests/selenium/log/User-should-be-able-to-create-account.png
[0-5]
Screenshot location: /core/tests/selenium/log/User-should-be-able-to-log-in-%40daily.png
[0-5] (node:540) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/core/tests/selenium/log/rawSeleniumVideoGrabs/User--should-be-able-to-log-in-daily--CHROME--10-27-2020--13-34-18-473/0007.png'
at Object.openSync (fs.js:439:3)
at Object.writeFileSync (fs.js:1190:35)
at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19)
at Video.WDIOReporter.on.test (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:132:12)
at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49)
at Array.forEach (<anonymous>)
at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20)
at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19)
at /core/node_modules/mocha/lib/runner.js:779:14
at done (/core/node_modules/mocha/lib/runnable.js:314:5)
at /core/node_modules/mocha/lib/runnable.js:379:11
[0-5] (node:540) 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(). (rejection id: 1)
(node:540) [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-5] (node:540) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
[0-5] PASSED in chrome - /tests/selenium/specs/user.js
"dot" Reporter:
....................
Spec Files: 6 passed, 6 total (100% completed) in 00:04:20

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8598962
Default Alt Text
Result test following the guidelines in the topic "Selenium/How-to/Run tests targeting MediaWiki-Docker using Fresh" (8 KB)

Event Timeline