mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 17:30:40 +00:00
5f7f535c28
Change-Id: I4c7dcb1b3cd3d03e3ea3d1e17bfcf63f3b553e50 |
||
---|---|---|
.. | ||
pageobjects | ||
specs | ||
.eslintrc.json | ||
README.md | ||
wdio.conf.js |
Selenium tests
Please see tests/selenium/README.md file in mediawiki/core repository and https://www.mediawiki.org/wiki/Selenium/Node.js.
Usage
Set up MediaWiki-Vagrant:
cd mediawiki/vagrant
vagrant up
vagrant roles enable math
vagrant provision
Run both mediawiki/core and Math tests from mediawiki/core folder:
npm run selenium
To run only Math tests in one terminal window or tab start Chromedriver:
chromedriver --url-base=/wd/hub --port=4444
In another terminal tab or window go to mediawiki/core folder:
./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Math/tests/selenium/specs/*.js
Run only one Math test file from mediawiki/core:
./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Math/tests/selenium/specs/basic.js