Page MenuHomePhabricator
Paste P17466

Run selenium tests targeting MediaWiki-Docker - Completed
ActivePublic

Authored by Lykarungi on Oct 12 2021, 5:15 PM.
~$ sw_vers
ProductName: Mac OS X
ProductVersion: 11.6
BuildVersion: 20G165
~$ node -v
v14.18.0
~$ npm -v
6.14.15
~$ docker -v
Docker version 20.10.8, build 3967b7d
~$ docker-compose -v
Docker Compose version v2.0.0
~$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
Google Chrome 94.0.4606.71
~$ git --version
git version 2.30.1 (Apple Git-130)
~$ git clone --depth=1 https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki
Cloning into 'mediawiki'...
remote: Counting objects: 8958, done
remote: Finding sources: 100% (8958/8958)
remote: Getting sizes: 100% (7334/7334)
remote: Compressing objects: 99% (92904/92905)
remote: Total 8958 (delta 2431), reused 4011 (delta 1623)
Receiving objects: 100% (8958/8958), 31.64 MiB | 631.00 KiB/s, done.
Resolving deltas: 100% (2431/2431), done.
Updating files: 100% (8314/8314), done.
~$ cd mediawiki
~/mediawiki$ echo "MW_DOCKER_UID=$(id -u)
MW_DOCKER_GID=$(id -g)" >> .env
~/mediawiki$ cat .env
MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
MW_DOCKER_UID=501
MW_DOCKER_GID=20
~/mediawiki$ docker-compose up -d
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
[+] Running 3/3
⠿ Container mediawiki-mediawiki-1 Started 59.4s
⠿ Container mediawiki-mediawiki-web-1 Started 59.4s
⠿ Container mediawiki-mediawiki-jobrunner-1 Started 59.4s
~/mediawiki$ docker-compose exec mediawiki composer update
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Nothing to install or update
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
40 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> ComposerVendorHtaccessCreator::onEvent
~/mediawiki$ docker-compose exec mediawiki /bin/bash /docker/install.sh
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "MW_DOCKER_UID" variable is not set. Defaulting to a blank string.
+ php maintenance/install.php --server http://localhost:8080 --scriptpath=/w --dbtype sqlite --dbpath /var/www/html/w/cache/sqlite --lang en --pass dockerpass MediaWiki Admin
PHP 7.2.34-18+0~20210223.60+debian10~1.gbpb21322+wmf1 is installed.
Found ImageMagick: /usr/bin/convert. Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Using server name "http://localhost".
Using server URL "http://localhost:8080/w".
Warning: Your default directory for uploads (/var/www/html/w/images/) is not checked for vulnerability to arbitrary script execution during the CLI install.
Using the PHP intl extension for Unicode normalization.
The environment has been checked. You can install MediaWiki.
A LocalSettings.php file has been detected. To upgrade this installation, please run update.php instead
A LocalSettings.php file has been detected. To upgrade this installation, please run update.php instead
~/mediawiki$ npm ci
npm WARN prepare removing existing node_modules/ before installation
> core-js-pure@3.14.0 postinstall /Users/lydiakarungi/Desktop/outreachy/mediawiki/node_modules/core-js-pure
> 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 -)
> core-js@3.14.0 postinstall /Users/lydiakarungi/Desktop/outreachy/mediawiki/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> fibers@5.0.0 install /Users/lydiakarungi/Desktop/outreachy/mediawiki/node_modules/fibers
> node build.js || nodejs build.js
`darwin-x64-83` exists; testing
Binary is fine; exiting
added 1098 packages in 15.76s
~/mediawiki$ echo $DISPLAY
~/mediawiki$ npm run selenium-test
> @ selenium-test /Users/lydiakarungi/Desktop/outreachy/mediawiki
> wdio ./tests/selenium/wdio.conf.js
Execution of 5 spec files started at 2021-10-12T16:36:19.213Z
[0-0] RUNNING in chrome - /tests/selenium/specs/page.js
[0-0] PASSED in chrome - /tests/selenium/specs/page.js
[0-1] RUNNING in chrome - /tests/selenium/specs/recentchanges.js
[0-1] PASSED in chrome - /tests/selenium/specs/recentchanges.js
[0-2] RUNNING in chrome - /tests/selenium/specs/user.js
[0-2] PASSED in chrome - /tests/selenium/specs/user.js
[0-3] RUNNING in chrome - /tests/selenium/specs/watchlist.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
"dot" Reporter:
..............
Spec Files: 5 passed, 5 total (100% completed) in 00:01:10

Event Timeline

Lykarungi changed the title of this paste from Run Selenium tests targeting MediaWiki Core in MediaWiki-Docker - Completed to Run tests targeting MediaWiki-Docker - Completed.Oct 12 2021, 5:19 PM
Lykarungi changed the title of this paste from Run tests targeting MediaWiki-Docker - Completed to Run selenium tests targeting MediaWiki-Docker - Completed.
Lykarungi edited the content of this paste. (Show Details)