2017-02-14 16:05:08 +00:00
|
|
|
# Selenium tests
|
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
For more information see https://www.mediawiki.org/wiki/Selenium
|
2017-02-14 16:05:08 +00:00
|
|
|
|
2018-02-27 13:06:22 +00:00
|
|
|
## Setup
|
2017-02-14 16:05:08 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
See https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/RelatedArticles
|
2017-02-14 16:05:08 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
## Run all specs
|
2017-02-14 16:05:08 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
npm run selenium-test
|
2018-02-27 13:06:22 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
## Run specific tests
|
2017-02-14 16:05:08 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
Filter by file name:
|
2017-02-14 16:05:08 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME]
|
2018-02-27 13:06:22 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
Filter by file name and test name:
|
2018-02-27 13:06:22 +00:00
|
|
|
|
2021-05-22 10:01:23 +00:00
|
|
|
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME] --mochaOpts.grep [TEST-NAME]
|