-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: FF and Chrome don't need to use DesiredCapabilities
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
use Robertfausk\Behat\PantherExtension\ServiceContainer\PantherConfiguration; | ||
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; | ||
use Symfony\Component\DependencyInjection\Definition; | ||
use Symfony\Component\Panther\PantherTestCase; | ||
|
||
/** | ||
* @author Robert Freigang <[email protected]> | ||
|
@@ -76,7 +77,7 @@ public function buildDriver(array $config) | |
$config['manager_options']['capabilities'][ChromeOptions::CAPABILITY] = $chromeOptions; | ||
} | ||
|
||
if (isset($config['manager_options']['capabilities'])) { | ||
if (isset($config['options']['browser']) && isset($config['manager_options']['capabilities']) && PantherTestCase::SELENIUM === $config['options']['browser']) { | ||
$config['manager_options']['capabilities'] = new Definition(DesiredCapabilities::class, [$config['manager_options']['capabilities']]); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters