101 - Getting Started with Laravel Dusk

This commit is contained in:
Adam Wathan
2017-05-02 15:51:20 -04:00
parent 0bcdd67a81
commit 41fbdcae1a
11 changed files with 245 additions and 3 deletions

View File

@@ -0,0 +1,41 @@
<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class HomePage extends Page
{
/**
* Get the URL for the page.
*
* @return string
*/
public function url()
{
return '/';
}
/**
* Assert that the browser is on the page.
*
* @param Browser $browser
* @return void
*/
public function assert(Browser $browser)
{
//
}
/**
* Get the element shortcuts for the page.
*
* @return array
*/
public function elements()
{
return [
'@element' => '#selector',
];
}
}