diff --git a/tests/Browser/TwoFactorAuthTest.php b/tests/Browser/TwoFactorAuthTest.php index 8b99dc0..bd61e69 100644 --- a/tests/Browser/TwoFactorAuthTest.php +++ b/tests/Browser/TwoFactorAuthTest.php @@ -15,7 +15,7 @@ }); test('Successfully View 2FA Setup Page', function () { - + $this->setConfig('devdojo.auth.settings.enable_2fa', true); $this->browse(function (Browser $browser) { $browser ->createJohnDoe() @@ -26,4 +26,5 @@ ->waitForText('Finish enabling two factor authentication') ->assertSee('Finish enabling two factor authentication'); }); + $this->resetConfig(); }); diff --git a/tests/Browser/TwoFactorChallengeTest.php b/tests/Browser/TwoFactorChallengeTest.php index 778ee7f..7ad9359 100644 --- a/tests/Browser/TwoFactorChallengeTest.php +++ b/tests/Browser/TwoFactorChallengeTest.php @@ -23,7 +23,6 @@ ->enable2FAforJohnDoe() ->formLoginAsJohnDoe() ->assertPathIs('/auth/two-factor-challenge'); - - $browser->pause(2000); }); + $this->resetConfig(); });