mediawiki-extensions-Revisi.../tests/selenium
WMDE-Fisch 5c77b477e6 Use waitForModuleState from Util class
Change-Id: Ida52cf73686a1cc5af5ab955ef30daf15a2ec68a
2019-10-23 17:50:21 +02:00
..
pageobjects Use waitForModuleState from Util class 2019-10-23 17:50:21 +02:00
specs Fix re-highlighting of revisions 2019-04-25 11:15:14 +02:00
.eslintrc.json Add node selenium tests for revision highlight feature 2019-04-11 17:58:53 +02:00
README.md Add node selenium tests for revision highlight feature 2019-04-11 17:58:53 +02:00
wdio.conf.js Add node selenium tests for revision highlight feature 2019-04-11 17:58:53 +02:00

Selenium tests

For more information see https://www.mediawiki.org/wiki/Selenium/Node.js and [PATH]/mediawiki/vagrant/mediawiki/tests/selenium/README.md.

Setup

Set up MediaWiki-Vagrant:

cd [PATH]/mediawiki/vagrant/mediawiki/extensions/RevisionSlider
vagrant up
vagrant roles enable revisionslider
vagrant provision
npm install

Chromedriver has to run in one terminal window:

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

Run all specs

In another terminal window:

npm run selenium-test

Run specific tests

Filter by file name:

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME].js

Filter by file name and test name:

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME.js] --mochaOpts.grep [TEST-NAME]