silverstripe-cms/behat.yml
Sam Minnee eef14c1afc FIX: Fix behat tests.
Update behat test config for simplified test run.
2016-10-28 17:47:59 +13:00

38 lines
1.3 KiB
YAML

default:
context:
class: SilverStripe\Cms\Test\Behaviour\FeatureContext
extensions:
SilverStripe\BehatExtension\Extension:
framework_path: framework
bootstrap_file: "tests/behat/serve-bootstrap.php"
Behat\MinkExtension\Extension:
# Designed to run using the below
# `vendor/bin/serve --bootstrap-file tests/behat/serve-bootstrap.php`
# `vendor/bin/selenium-server-standalone -Dwebdriver.firefox.bin="/Applications/Firefox31.app/Contents/MacOS/firefox-bin"`
base_url: http://localhost:8080/
files_path: %behat.paths.base%/framework/tests/behat/features/files/
default_session: selenium2
javascript_session: selenium2
selenium2:
browser: firefox
# Alternative profile, use with "vendor/bin/behat --profile chrome"
chrome:
extensions:
Behat\MinkExtension\Extension:
selenium2:
browser: chrome
# Saucelabs.com sample setup, use with "vendor/bin/behat --profile saucelabs"
saucelabs:
extensions:
Behat\MinkExtension\Extension:
selenium2:
browser: firefox
# Add your own username and API token here
wd_host: <user>:<api-token>@ondemand.saucelabs.com/wd/hub
capabilities:
platform: "Windows 2008"
browser: "firefox"
version: "15"