Commit 83714231 authored by Viral Solani's avatar Viral Solani

Merge branch 'test-cases' of https://github.com/viralsolani/laravel-adminpanel into test-cases

parents af52c61f bc94659e
...@@ -2,9 +2,8 @@ ...@@ -2,9 +2,8 @@
namespace Tests\Browser; namespace Tests\Browser;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser; use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations; use Tests\DuskTestCase;
class ExampleTest extends DuskTestCase class ExampleTest extends DuskTestCase
{ {
......
...@@ -19,7 +19,8 @@ class HomePage extends Page ...@@ -19,7 +19,8 @@ class HomePage extends Page
/** /**
* Assert that the browser is on the page. * Assert that the browser is on the page.
* *
* @param Browser $browser * @param Browser $browser
*
* @return void * @return void
*/ */
public function assert(Browser $browser) public function assert(Browser $browser)
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
namespace Tests; namespace Tests;
use Laravel\Dusk\TestCase as BaseTestCase;
use Facebook\WebDriver\Chrome\ChromeOptions; use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Laravel\Dusk\TestCase as BaseTestCase;
abstract class DuskTestCase extends BaseTestCase abstract class DuskTestCase extends BaseTestCase
{ {
...@@ -15,6 +15,7 @@ abstract class DuskTestCase extends BaseTestCase ...@@ -15,6 +15,7 @@ abstract class DuskTestCase extends BaseTestCase
* Prepare for Dusk test execution. * Prepare for Dusk test execution.
* *
* @beforeClass * @beforeClass
*
* @return void * @return void
*/ */
public static function prepare() public static function prepare()
...@@ -29,9 +30,9 @@ abstract class DuskTestCase extends BaseTestCase ...@@ -29,9 +30,9 @@ abstract class DuskTestCase extends BaseTestCase
*/ */
protected function driver() protected function driver()
{ {
$options = (new ChromeOptions)->addArguments([ $options = (new ChromeOptions())->addArguments([
'--disable-gpu', '--disable-gpu',
'--headless' '--headless',
]); ]);
return RemoteWebDriver::create( return RemoteWebDriver::create(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment