Environments
editThis tip works if you're targeting:
- a local MediaWiki
- a remote wiki
Run Selenium tests
editUsually you will run all tests.
npm run selenium-test
When you're debugging, you usually want to run only one file.
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME]
If the file is big, you can run only a subset of tests, or just one test.
npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME] --mochaOpts.grep [TEST-NAME]