X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ac110eb6b2df1a30628e9800a60e1357f474fa1f..refs/pull/3365/head:/tests/Auth/MfaVerificationTest.php diff --git a/tests/Auth/MfaVerificationTest.php b/tests/Auth/MfaVerificationTest.php index ee6f3ecc8..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', [ @@ -242,7 +242,7 @@ class MfaVerificationTest extends TestCase } /** - * @return Array + * @return array */ protected function startTotpLogin(): array { @@ -260,7 +260,7 @@ class MfaVerificationTest extends TestCase } /** - * @return Array + * @return array */ protected function startBackupCodeLogin($codes = ['kzzu6-1pgll', 'bzxnf-plygd', 'bwdsp-ysl51', '1vo93-ioy7n', 'lf7nw-wdyka', 'xmtrd-oplac']): array {