# Customize this configuration as necessary to provide defaults for various
# test environments.
#
# The set of defaults to use is determined by the MEDIAWIKI_ENVIRONMENT
# environment variable.
#
#   export MEDIAWIKI_ENVIRONMENT=mw-vagrant-host
#   bundle exec cucumber
#
# Additional variables set by the environment will override the corresponding
# defaults defined here.
#
#   export MEDIAWIKI_ENVIRONMENT=mw-vagrant-host
#   export MEDIAWIKI_USER=Selenium_user2
#   bundle exec cucumber
#
mw-vagrant-host: &default
  language_code: en
  browser: firefox
  mediawiki_url: http://127.0.0.1:8080/wiki/
  mediawiki_user: Selenium_user
  mediawiki_password: vagrant

mw-vagrant-guest:
  language_code: en
  browser: firefox
  mediawiki_url: http://127.0.0.1/wiki/
  mediawiki_user: Selenium_user
  mediawiki_password: vagrant

beta:
  language_code: en
  browser: firefox
  mediawiki_url: https://wikidata.beta.wmflabs.org/wiki/
  mediawiki_user: Selenium_user
  user_factory: true
  # mediawiki_password: SET THIS IN THE ENVIRONMENT!

test:
  language_code: en
  browser: firefox
  mediawiki_url: https://test.wikidata.org/wiki/
  mediawiki_user: Selenium_user
  user_factory: true
  uses_cirrus_search: true
  # mediawiki_password: SET THIS IN THE ENVIRONMENT!

integration:
  item_namespace: "Item:"
  language_code: en
  browser: chrome
  user_factory: true
  # mediawiki_url: JENKINS WILL SET THIS

# Use this with "export MEDIAWIKI_ENVIRONMENT=custom" before running "bundle exec cucumber".
custom:
  # language_code: en
  browser: chrome
  mediawiki_url: http://localhost/wiki/
  # A sensible default for the "mediawiki_url_api" is derived from the "mediawiki_url".
  # mediawiki_url_api: http://localhost/w/api.php
  mediawiki_user: …
  mediawiki_password: …
  user_factory: true
  # Default for the "item_namespace" is an empty string, representing the main namespace.
  item_namespace: "Item:"
  # property_namespace: 'Property:'
  # item_id_prefix: Q
  # property_id_prefix : P

default: *default
