Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply fixes from StyleCI
  • Loading branch information
tabacitu authored and StyleCIBot committed May 7, 2020
commit df84885c7b15989ca09a247bdc5b1a5e72fc10e4
1 change: 0 additions & 1 deletion tests/Browser/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tests\Browser;

use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;

Expand Down
3 changes: 2 additions & 1 deletion tests/Browser/Pages/HomePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public function url()
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser
* @param \Laravel\Dusk\Browser $browser
*
* @return void
*/
public function assert(Browser $browser)
Expand Down
2 changes: 1 addition & 1 deletion tests/CreatesApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public function createApplication()

return $app;
}
}
}
9 changes: 6 additions & 3 deletions tests/DuskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ abstract class DuskTestCase extends BaseTestCase
* Prepare for Dusk test execution.
*
* @beforeClass
*
* @return void
*/
public static function prepare()
Expand All @@ -29,15 +30,17 @@ public static function prepare()
*/
protected function driver()
{
$options = (new ChromeOptions)->addArguments([
$options = (new ChromeOptions())->addArguments([
'--disable-gpu',
'--headless',
'--window-size=1920,1080',
]);

return RemoteWebDriver::create(
'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY, $options
'http://localhost:9515',
DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY,
$options
)
);
}
Expand Down