< Selenium < Getting Started

Environments

When using Fresh, you can target several wikis.

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

Go to MediaWiki Core folder

cd core

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.

Start a Fresh session

you:core$ fresh-node -env -net

...

# env: MW_*, MEDIAWIKI_*
# net: expose host

🌱  Fresh!

nobody@docker-desktop:/core$

Install dependencies

nobody@docker-desktop:/core$ npm ci

Run Selenium tests

nobody@docker-desktop:/core$ npm run selenium-test
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.