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

Change-Id: Idf984c89f541a44ad522ff4d765dc58ada407797
2018-01-18 15:02:42 +01:00
..
pageobjects
specs
.eslintrc.json ESLint parserOptions is reduntand when es6 env is used 2018-01-11 14:03:09 +01:00
README.md When running Selenium tests, use wd/hub 2018-01-18 15:02:42 +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 echo
vagrant provision

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

npm run selenium

To run only Echo 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/Echo/tests/selenium/specs/*.js

Run only one Echo test file from mediawiki/core:

./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Echo/tests/selenium/specs/echo.js