mediawiki-extensions-Echo/tests/selenium
ephemeralwaves 05f3e66a9d Selenium: Fix failing test by only running tests tagged @daily
Changed `selenium-daily` npm script to only run tests tagged `@daily`
and removed `it.skip` on tests failing in beta cluster.

Bug:T227009
Change-Id: Id2edbfd941df098d326fa30ed9dc9f68e228f021
2019-07-05 10:58:19 +00:00
..
pageobjects Selenium: Test that checks for user mention alerts 2019-06-19 10:23:22 +00:00
specs Selenium: Fix failing test by only running tests tagged @daily 2019-07-05 10:58:19 +00:00
.eslintrc.json Update eslint-config-wikimedia to 0.9.0 2018-11-27 22:48:32 +00:00
README.md Selenium: update and simplify README 2019-03-26 16:27:06 +01:00
wdio.conf.js selenium: Make it possible to run tests from Echo folder 2018-06-22 14:17:05 +00:00

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/Echo
vagrant up
vagrant roles enable echo
vagrant provision
npm install

Chromedriver has to run in one terminal window:

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

Run all specs

In another terminal window:

npm run selenium-test

T171963 No active login attempt is in progress for your session

If you get this error message when logging in at 127.0.0.1:8080, the workaround is to log in at dev.wiki.local.wmftest.net:8080

MW_SERVER=http://dev.wiki.local.wmftest.net:8080  npm run selenium-test

Run specific tests

Filter by file name:

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME].js

Filter by file name and test name:

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME.js] --mochaOpts.grep [TEST-NAME]