Files
monica/tests/Browser/Pages/SettingsSecurity2faDisable.php
T

46 lines
850 B
PHP

<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class SettingsSecurity2faDisable extends Page
{
use DatabaseTransactions;
/**
* Get the URL for the page.
*
* @return string
*/
public function url()
{
return '/settings/security/2fa-disable';
}
/**
* 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 [
'verify' => "button[name='verify']",
'otp' => '#one_time_password',
];
}
}