Page MenuHomePhabricator
Authored By
zeljkofilipin
Mar 15 2019, 1:03 PM
Size
811 B
Referenced Files
None
Subscribers
None
# 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/[EXTENSION]
vagrant up
vagrant roles enable [ROLE]
vagrant provision
npm install
## Run all specs
First, start Chromedriver in one terminal window:
chromedriver --url-base=wd/hub --port=4444
Then, in another terminal window:
npm run selenium-test
## Run specific tests
Make sure Chromedriver is running and run:
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME].js
You can also filter specific test(s) by name:
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME.js] --mochaOpts.grep [TEST-NAME]

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7183979
Default Alt Text
raw.txt (811 B)

Event Timeline