Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/Meet/RoomInfo.php
- This file was added.
<?php | |||||
namespace Tests\Browser\Pages\Meet; | |||||
use Laravel\Dusk\Page; | |||||
class RoomInfo extends Page | |||||
{ | |||||
/** | |||||
* Get the URL for the page. | |||||
* | |||||
* @return string | |||||
*/ | |||||
public function url(): string | |||||
{ | |||||
return ''; | |||||
} | |||||
/** | |||||
* Assert that the browser is on the page. | |||||
* | |||||
* @param \Laravel\Dusk\Browser $browser The browser object | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function assert($browser) | |||||
{ | |||||
$browser->waitUntilMissing('@app .app-loader'); | |||||
} | |||||
/** | |||||
* Get the element shortcuts for the page. | |||||
* | |||||
* @return array | |||||
*/ | |||||
public function elements(): array | |||||
{ | |||||
return [ | |||||
'@app' => '#app', | |||||
'@intro' => '#room-intro', | |||||
'@general' => '#general', | |||||
'@nav' => 'ul.nav-tabs', | |||||
'@settings' => '#settings', | |||||
'@skus' => '#room-skus table', | |||||
]; | |||||
} | |||||
} |