Remove default values for capabilities

This lets Selenium choose its own default values without duplicating
them.
Replaces #183
Refs #179
This commit is contained in:
Christophe Coevoet
2015-01-19 01:49:01 +01:00
parent a3f0d90bea
commit 0bb80effb3
3 changed files with 8 additions and 10 deletions

View File

@@ -53,7 +53,6 @@ class BrowserStackFactory extends Selenium2Factory
$node
->children()
->scalarNode('name')->defaultValue('Behat feature suite')->end()
->scalarNode('project')->end()
->scalarNode('resolution')->end()
->scalarNode('build')->info('will be set automatically based on the TRAVIS_JOB_NUMBER environment variable if available')->end()

View File

@@ -59,10 +59,9 @@ class SauceLabsFactory extends Selenium2Factory
$node
->children()
->scalarNode('name')->defaultValue('Behat feature suite')->end()
->scalarNode('platform')->defaultValue('Linux')->end()
->scalarNode('selenium-version')->defaultValue('2.31.0')->end()
->scalarNode('max-duration')->defaultValue('300')->end()
->scalarNode('selenium-version')->end()
->scalarNode('max-duration')->end()
->scalarNode('command-timeout')->end()
->scalarNode('idle-timeout')->end()
->scalarNode('build')->info('will be set automatically based on the TRAVIS_BUILD_NUMBER environment variable if available')->end()

View File

@@ -93,15 +93,15 @@ class Selenium2Factory implements DriverFactory
->addDefaultsIfNotSet()
->normalizeKeys(false)
->children()
->scalarNode('browserName')->defaultValue('firefox')->end()
->scalarNode('version')->defaultValue('21')->end()
->scalarNode('platform')->defaultValue('ANY')->end()
->scalarNode('browserVersion')->defaultValue('9')->end()
->scalarNode('browserName')->end()
->scalarNode('version')->end()
->scalarNode('platform')->end()
->scalarNode('browserVersion')->end()
->scalarNode('browser')->defaultValue('firefox')->end()
->scalarNode('ignoreZoomSetting')->defaultValue('false')->end()
->scalarNode('name')->defaultValue('Behat feature suite')->end()
->scalarNode('deviceOrientation')->defaultValue('portrait')->end()
->scalarNode('deviceType')->defaultValue('tablet')->end()
->scalarNode('deviceOrientation')->end()
->scalarNode('deviceType')->end()
->booleanNode('javascriptEnabled')->end()
->booleanNode('databaseEnabled')->end()
->booleanNode('locationContextEnabled')->end()