mediawiki-extensions-Revisi.../tests/selenium
Adam Wight 09ed1f05fe Compatibility with standalone chromedriver
I don't understand how others are running the tests, but I need this
configuration in order to run.  They also appear in the
mediawiki/core wdio.conf.js .

Bug: T180247
Change-Id: Ic75bac41e0bf3cda3b23a4489e02f1dde2300740
2020-11-06 12:04:17 +01:00
..
pageobjects Port autoexpand Ruby selenium tests to NodeJS 2020-11-04 17:04:17 +01:00
specs Port expand Ruby selenium tests to NodeJS 2020-11-05 07:34:21 +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]