Skip to content

Commit

Permalink
Dev: Add option to not run tests headless
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Nov 20, 2017
1 parent 646e8bc commit 12f4b28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/TestBaseClassWeb.php
Expand Up @@ -62,7 +62,12 @@ public static function setUpBeforeClass()

$caps = new DesiredCapabilities();
$chromeOptions = new ChromeOptions();
$chromeOptions->addArguments(['--headless', 'window-size=1024,768']);
$noHeadless = getenv('NOHEADLESS');
if (empty($noHeadless)) {
$chromeOptions->addArguments(['--headless', 'window-size=1400,1024']);
} else {
$chromeOptions->addArguments(['window-size=1400,1024']);
}
$caps->setCapability(ChromeOptions::CAPABILITY, $chromeOptions);

putenv(sprintf('webdriver.chrome.driver=/%s/../chromedriver', $base));
Expand Down

0 comments on commit 12f4b28

Please sign in to comment.