mediawiki-extensions-Popups/tests/selenium
WMDE-Fisch 4adf63b024 When running Selenium tests, use wd/hub
Now it works on Mac, Windows and Linux.

Change-Id: I6ac70e02bc634bb559426baa29dd22f710e554a1
2018-01-18 15:01:01 +01:00
..
fixtures Port Popups browser tests to selenium 2017-11-01 13:31:36 -07:00
pageobjects Port Popups browser tests to selenium 2017-11-01 13:31:36 -07:00
specs Port Popups browser tests to selenium 2017-11-01 13:31:36 -07:00
.eslintrc.json Clean up ESLint configuration 2017-12-22 16:12:54 +01:00
LocalSettings.php Port Popups browser tests to selenium 2017-11-01 13:31:36 -07:00
README.md When running Selenium tests, use wd/hub 2018-01-18 15:01:01 +01:00

Selenium tests

Please see tests/selenium/README.md file in mediawiki/core repository.

Usage

Set up MediaWiki-Vagrant:

cd mediawiki/vagrant
vagrant up
vagrant roles enable popups
vagrant provision

From mediawiki/core folder:

echo 'include_once "$IP/extensions/Popups/tests/selenium/LocalSettings.php";' >> LocalSettings.php

Run both mediawiki/core and Popups tests from mediawiki/core folder:

npm run selenium

To run only Popups tests in one terminal window or tab start Chromedriver:

chromedriver --url-base=wd/hub --port=4444

In another terminal tab or window go to mediawiki/core folder:

./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Popups/tests/selenium/specs/*.js

Run only one Popups test file from mediawiki/core:

./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Popups/tests/selenium/specs/file-name.js