mediawiki-extensions-Revisi.../tests/selenium
Adam Wight 0c9ef9d88f Port timeline browser tests to js
`aria-disabled` is a bit of a hack, but maybe more robust than
coupling to the OOUI internal class name.

Bug: T267205
Change-Id: I5c1f547f2d25d9acaa74d63da03cd215be82bd71
2020-11-09 12:04:36 +01:00
..
pageobjects Port timeline browser tests to js 2020-11-09 12:04:36 +01:00
specs Port timeline browser tests to js 2020-11-09 12:04:36 +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]