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