mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-11 23:16:18 +00:00
a2ca2c031e
The patch adds a first package of node selenium tests including test for the user and tag filters. The classes for user- and tag-rows were re-added to have better access via selectors. Change-Id: I8c53d9c923820e177d83ee900cee08e93cd3f65b
35 lines
782 B
Markdown
35 lines
782 B
Markdown
# 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]
|