Skip to content

Commit

Permalink
Allowing specific Behat features to be tested. (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Jun 23, 2017
1 parent 15a9a69 commit 27da265
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Robo/Commands/Tests/BehatCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -324,7 +324,12 @@ public function setupPhantomJs() {
protected function executeBehatTests() {
$exit_code = 0;

foreach ($this->getConfigValue('behat.paths') as $behat_path) {
$behat_paths = $this->getConfigValue('behat.paths');
if (is_string($behat_paths)) {
$behat_paths = [$behat_paths];
}

foreach ($behat_paths as $behat_path) {
// Output errors.
// @todo replace base_url in behat config when internal server is being used.
$task = $this->taskBehat($this->getConfigValue('composer.bin') . '/behat')
Expand Down

0 comments on commit 27da265

Please sign in to comment.