Updated test to ensure autofocus is set on TOTP input

This commit is contained in:
Dan Brown 2021-11-22 13:28:46 +00:00
parent 37db51a627
commit 9a5adc026a
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -23,7 +23,7 @@ class MfaVerificationTest extends TestCase
$resp = $this->get('/mfa/verify');
$resp->assertSee('Verify Access');
$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();
$resp = $this->post('/mfa/totp/verify', [