mediawiki-extensions-Math/tests/selenium
Željko Filipin 5c37603c23 selenium: Add JUnit reporter
JUnit reporter is required to create the XML file that Jenkins uses to
create Test Result Trend chart for selenium-daily-beta-Math
job.

Bug: T214686
Change-Id: Ic2373f3b89946cf191cfcb1dd9ed99608deb660c
2021-04-29 15:56:42 +02:00
..
pageobjects Selenium: Update to WebdriverIO v5 2020-06-03 01:03:56 +05:30
specs build: Update eslint-config-wikimedia to 0.16.1 2020-06-16 15:59:33 +01:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.16.1 2020-06-16 15:59:33 +01:00
README.md Selenium tests for Math 2018-05-19 17:04:22 +00:00
wdio.conf.js selenium: Add JUnit reporter 2021-04-29 15:56:42 +02:00

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