Selenium/Getting Started/Run tests targeting Beta cluster

For this example, we will target English Wikipedia at the Beta Cluster. You will need internet access.



Advantages

 * You do not have to install or learn how to use MediaWiki-Vagrant.
 * It will be reasonably fast. MediaWiki core Selenium test run takes about 1 minutes on my machine. (As of September 2019.) A lot of tests fail at the moment since beta cluster is different than other environments.
 * Debugging failed tests will be easier, since are able to see the browser using  environment variable. See README.md for more information.

Disadvantages

 * You will need internet connection while running the tests.
 * The tests will be slower since the target machine is not local.
 * You will have to install Selenium and it's dependencies on your machine.

Clone MediaWiki core
There are several ways to clone the MediaWiki core repository (anonymous http, http, ssh). We will use anonymous http since it is the simplest.

Install dependencies
Depending on your operating system, installing dependencies will be different.

Chrome

 * Install Chrome.
 * Download ChromeDriver and put it in a folder included in.

Node.js

 * Install Node.js.
 * Install required npm packages.

Run the Selenium tests
Please note that a lot of tests will fail at the moment. Tests are written for targeting MediaWiki on a Jenkins slave machine and MediaWiki-Vagrant virtual machine.

If you would like to run a subset of passing tests, run these commands in separate terminal windows or tabs.

Of course, replace  and   with your user and password.