. * * @package LibreNMS * @link http://librenms.org * @copyright 2019 Tony Murray * @author Tony Murray */ namespace LibreNMS\Tests\Browser\Pages; use Laravel\Dusk\Browser; class PreferencesPage extends Page { /** * Get the URL for the page. * * @return string */ public function url() { return '/preferences'; } /** * Assert that the browser is on the page. * * @param Browser $browser * @return void */ public function assert(Browser $browser) { $browser->assertPathIs($this->url()); } /** * Get the element shortcuts for the page. * * @return array */ public function elements() { return [ '@type' => 'select[name=twofactortype]', '@generate' => '#twofactor-generate', ]; } }