mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +00:00
Selenium: update README.md file
Bug: T210726 Change-Id: I99d32dee1d8b8d2949b475abb94d4b3705e1fda6
This commit is contained in:
parent
f2a02d5cf0
commit
b43acdd0d0
|
@ -1,29 +1,21 @@
|
||||||
# Selenium tests
|
# Selenium tests
|
||||||
|
|
||||||
Please see tests/selenium/README.md file in mediawiki/core repository and
|
For more information see https://www.mediawiki.org/wiki/Selenium
|
||||||
https://www.mediawiki.org/wiki/Selenium/Node.js.
|
|
||||||
|
|
||||||
## Usage
|
## Setup
|
||||||
|
|
||||||
Set up MediaWiki-Vagrant:
|
See https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/Math
|
||||||
|
|
||||||
cd mediawiki/vagrant
|
## Run all specs
|
||||||
vagrant up
|
|
||||||
vagrant roles enable math
|
|
||||||
vagrant provision
|
|
||||||
|
|
||||||
Run both mediawiki/core and Math tests from mediawiki/core folder:
|
npm run selenium-test
|
||||||
|
|
||||||
npm run selenium
|
## Run specific tests
|
||||||
|
|
||||||
To run only Math tests in one terminal window or tab start Chromedriver:
|
Filter by file name:
|
||||||
|
|
||||||
chromedriver --url-base=/wd/hub --port=4444
|
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME]
|
||||||
|
|
||||||
In another terminal tab or window go to mediawiki/core folder:
|
Filter by file name and test name:
|
||||||
|
|
||||||
./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Math/tests/selenium/specs/*.js
|
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME] --mochaOpts.grep [TEST-NAME]
|
||||||
|
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in a new issue