-
-
-
-
-
+
+
+
@if (session('status') === 'two-factor-authentication-confirmed'
|| session('status') === 'recovery-codes-generated')
diff --git a/tests/Feature/ProfileAppearanceNavigationTest.php b/tests/Feature/ProfileAppearanceNavigationTest.php
index 84ab89689..3318ae684 100644
--- a/tests/Feature/ProfileAppearanceNavigationTest.php
+++ b/tests/Feature/ProfileAppearanceNavigationTest.php
@@ -27,6 +27,13 @@ it('opens the email change form without a Livewire request', function () {
->not->toContain('wire:click="showEmailChangeForm"');
});
+it('does not show a redundant enabled badge for two-factor authentication', function () {
+ $profileView = file_get_contents(resource_path('views/livewire/profile/index.blade.php'));
+
+ expect($profileView)
+ ->not->toContain('
');
+});
+
it('keeps color theme preferences on the profile appearance view without page width or density controls', function () {
$appearanceView = file_get_contents(resource_path('views/livewire/profile/appearance.blade.php'));