mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2025-01-05 18:34:13 +00:00
c40f44cf2b
These test do not add much value. Expanding the interface is an essential step done in all other tests. Therefore the only test ported is manually collapsing the interface. Note that this is not completely cleaning up the step_definitions from the Ruby tests. This will be done in a follow up after all tests are ported. Bug: T267198 Change-Id: I7beabc1a91f22dc8b7094318bf90684a3deb63f7 |
||
---|---|---|
.. | ||
pageobjects | ||
specs | ||
.eslintrc.json | ||
README.md | ||
wdio.conf.js |
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]