diff --git a/src/Robo/Commands/Tests/BehatCommand.php b/src/Robo/Commands/Tests/BehatCommand.php index 726c314822..885dabe364 100644 --- a/src/Robo/Commands/Tests/BehatCommand.php +++ b/src/Robo/Commands/Tests/BehatCommand.php @@ -163,7 +163,7 @@ protected function launchChrome() { $this->logger->info("Launching headless chrome..."); $this->getContainer() ->get('executor') - ->execute("'$chrome_bin' --headless --disable-gpu --remote-debugging-port={$this->chromePort} https://www.chromestatus.com > /dev/null 2>&1") + ->execute("'$chrome_bin' --headless --disable-gpu --remote-debugging-port={$this->chromePort} https://www.chromestatus.com --disable-web-security --user-data-dir > /dev/null 2>&1") ->background(TRUE) ->printOutput(TRUE) ->printMetadata(TRUE) @@ -324,6 +324,11 @@ public function setupPhantomJs() { protected function executeBehatTests() { $exit_code = 0; + $behat_paths = $this->getConfigValue('behat.paths'); + if (is_string($behat_paths)) { + $behat_paths = [$behat_paths]; + } + foreach ($this->getConfigValue('behat.paths') as $behat_path) { // Output errors. // @todo replace base_url in behat config when internal server is being used.