mediawiki-extensions-Revisi.../tests/selenium
2020-11-09 09:49:33 +00:00
..
pageobjects Port history Ruby selenium tests to NodeJS 2020-11-09 10:06:33 +01:00
specs Port history Ruby selenium tests to NodeJS 2020-11-09 10:06:33 +01:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.16.1 2020-06-16 15:13:36 +01:00
README.md Add node selenium tests for revision highlight feature 2019-04-11 17:58:53 +02:00
wdio.conf.js Compatibility with standalone chromedriver 2020-11-06 12:04:17 +01: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]