Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F28392763
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
zeljkofilipin
Mar 15 2019, 1:06 PM
2019-03-15 13:06:24 (UTC+0)
Size
770 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
# 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
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]
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7183985
Default Alt Text
raw.txt (770 B)
Attached To
Mode
P8206 tests/selenium/README.md
Attached
Detach File
Event Timeline
Log In to Comment