From: Dan Brown Date: Mon, 22 Nov 2021 13:28:46 +0000 (+0000) Subject: Updated test to ensure autofocus is set on TOTP input X-Git-Tag: v21.11.1~1^2~8 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/9a5adc026aace8154bacecc37bb2dfe87917e4fc?ds=inline Updated test to ensure autofocus is set on TOTP input --- diff --git a/tests/Auth/MfaVerificationTest.php b/tests/Auth/MfaVerificationTest.php index 49ca6663d..9a6106243 100644 --- a/tests/Auth/MfaVerificationTest.php +++ b/tests/Auth/MfaVerificationTest.php @@ -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', [