Skip to content

Commit

Permalink
Allowing specific Behat features to be tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jun 23, 2017
1 parent 98c3534 commit b087090
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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,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.
Expand Down

0 comments on commit b087090

Please sign in to comment.