Selenium/Getting Started/Run tests using Fresh

Environments
When using Fresh, you can target several wikis.


 * a local MediaWiki
 * MediaWiki-Docker
 * MediaWiki-Docker-Dev
 * MediaWiki-Vagrant
 * a remote wiki
 * Beta cluster

Advantages

 * It will be fast, if the target is local. MediaWiki core Selenium test run takes about 2 minutes on my machine. (As of October 2019.)
 * Works without an internet connection, if the target is local.
 * Doesn't require installing Vagrant.
 * Doesn't require executing npm packages directly on your machine (which is dangerous).

Disadvantages

 * You need to have Docker installed.

Prerequisites

 * MediaWiki.
 * Docker. See Docker CE for Linux, Docker for Mac, or Docker for Windows.
 * Wikimedia Fresh CLI.

Environment variables
If you're targeting MediaWiki-Docker, you don't have to do anything. If you're targeting another setup, see Selenium/How-to/Set environment variables.