mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
Updated test to ensure autofocus is set on TOTP input
This commit is contained in:
@@ -23,7 +23,7 @@ class MfaVerificationTest extends TestCase
|
|||||||
$resp = $this->get('/mfa/verify');
|
$resp = $this->get('/mfa/verify');
|
||||||
$resp->assertSee('Verify Access');
|
$resp->assertSee('Verify Access');
|
||||||
$resp->assertSee('Enter the code, generated using your mobile app, below:');
|
$resp->assertSee('Enter the code, generated using your mobile app, below:');
|
||||||
$resp->assertElementExists('form[action$="/mfa/totp/verify"] input[name="code"]');
|
$resp->assertElementExists('form[action$="/mfa/totp/verify"] input[name="code"][autofocus]');
|
||||||
|
|
||||||
$google2fa = new Google2FA();
|
$google2fa = new Google2FA();
|
||||||
$resp = $this->post('/mfa/totp/verify', [
|
$resp = $this->post('/mfa/totp/verify', [
|
||||||
|
Reference in New Issue
Block a user