mediawiki-extensions-Math/tests/selenium
vidhi-mody cbd3fdbdcc Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.
Update ESlint configuration.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Replace:
- `browser.element` with `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.

Bug: T253791
Change-Id: Ief27154b2e10621b4dce51c634a075cd381021f8
2020-06-03 01:03:56 +05:30
..
pageobjects Selenium: Update to WebdriverIO v5 2020-06-03 01:03:56 +05:30
specs Selenium: Update to WebdriverIO v5 2020-06-03 01:03:56 +05:30
.eslintrc.json Selenium: Update to WebdriverIO v5 2020-06-03 01:03:56 +05:30
README.md Selenium tests for Math 2018-05-19 17:04:22 +00:00
wdio.conf.js Selenium: Update to WebdriverIO v5 2020-06-03 01:03:56 +05:30

Selenium tests

Please see tests/selenium/README.md file in mediawiki/core repository and https://www.mediawiki.org/wiki/Selenium/Node.js.

Usage

Set up MediaWiki-Vagrant:

cd mediawiki/vagrant
vagrant up
vagrant roles enable math
vagrant provision

Run both mediawiki/core and Math tests from mediawiki/core folder:

npm run selenium

To run only Math tests in one terminal window or tab start Chromedriver:

chromedriver --url-base=/wd/hub --port=4444

In another terminal tab or window go to mediawiki/core folder:

./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Math/tests/selenium/specs/*.js

Run only one Math test file from mediawiki/core:

./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Math/tests/selenium/specs/basic.js