This commit is contained in:
EwelinaLasowy
2022-01-18 09:25:08 +01:00
parent 68d95821d6
commit 6f87647cb3
3 changed files with 3 additions and 27 deletions

View File

@@ -8,33 +8,13 @@ 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.
*/
public function assert(Browser $browser): void
{
//
}
/**
* Get the element shortcuts for the page.
*
* @return array
*/
public function elements()
{
return [
"@element" => "#selector",
];
$browser->assertPathIs($this->url());
}
}

View File

@@ -8,11 +8,6 @@ use Laravel\Dusk\Page as BasePage;
abstract class Page extends BasePage
{
/**
* Get the global element shortcuts for the site.
*
* @return array
*/
public static function siteElements()
{
return [