mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 23:50:33 +00:00
36 lines
576 B
PHP
36 lines
576 B
PHP
<?php
|
|
|
|
namespace Tests\Browser\Pages;
|
|
|
|
use Laravel\Dusk\Browser;
|
|
|
|
class HomePage extends Page
|
|
{
|
|
/**
|
|
* Get the URL for the page.
|
|
*/
|
|
public function url(): string
|
|
{
|
|
return '/';
|
|
}
|
|
|
|
/**
|
|
* Assert that the browser is on the page.
|
|
*/
|
|
public function assert(Browser $browser): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Get the element shortcuts for the page.
|
|
*
|
|
* @return array<string, string>
|
|
*/
|
|
public function elements(): array
|
|
{
|
|
return [
|
|
'@element' => '#selector',
|
|
];
|
|
}
|
|
}
|