mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-11 06:56:09 +00:00
selenium: Update README.md file
Bug: T282237 Change-Id: I089bad7629246a93032174665ad10826c5789e53
This commit is contained in:
parent
322570c567
commit
0a8d861b05
|
@ -1,34 +1,21 @@
|
||||||
# Selenium tests
|
# Selenium tests
|
||||||
|
|
||||||
For more information see https://www.mediawiki.org/wiki/Selenium/Node.js and
|
For more information see https://www.mediawiki.org/wiki/Selenium
|
||||||
[PATH]/mediawiki/vagrant/mediawiki/tests/selenium/README.md.
|
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
Set up MediaWiki-Vagrant:
|
See https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/RevisionSlider
|
||||||
|
|
||||||
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
|
## Run all specs
|
||||||
|
|
||||||
In another terminal window:
|
|
||||||
|
|
||||||
npm run selenium-test
|
npm run selenium-test
|
||||||
|
|
||||||
## Run specific tests
|
## Run specific tests
|
||||||
|
|
||||||
Filter by file name:
|
Filter by file name:
|
||||||
|
|
||||||
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME].js
|
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME]
|
||||||
|
|
||||||
Filter by file name and test name:
|
Filter by file name and test name:
|
||||||
|
|
||||||
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME.js] --mochaOpts.grep [TEST-NAME]
|
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME] --mochaOpts.grep [TEST-NAME]
|
Loading…
Reference in a new issue