From 0dc5440fd9ac44907264d16ac4aac9083acc89a4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Oct 2025 10:31:46 +0200 Subject: [PATCH] Bug 30724: Fix selenium tests - info => success class I don't think this is correct. We only want success after we enabled 2FA --- t/db_dependent/selenium/authentication_2fa.t | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/selenium/authentication_2fa.t b/t/db_dependent/selenium/authentication_2fa.t index c250a25717f..90be296070b 100755 --- a/t/db_dependent/selenium/authentication_2fa.t +++ b/t/db_dependent/selenium/authentication_2fa.t @@ -81,7 +81,8 @@ SKIP: { is( $driver->find_element( - '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, + '//div[@id="registration-status-enabled"]/div[@class="alert alert-success two-factor-status"]') + ->get_text, '', # 'Two-factor authentication: Enabled' is not shown '2FA is disabled' ); @@ -116,7 +117,8 @@ SKIP: { is( $driver->find_element( - '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, + '//div[@id="registration-status-enabled"]/div[@class="alert alert-success two-factor-status"]') + ->get_text, "Two-factor authentication: Enabled\nYour account is protected with two-factor authentication.", '2FA is enabled' ); @@ -329,7 +331,8 @@ SKIP: { is( $driver->find_element( - '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, + '//div[@id="registration-status-enabled"]/div[@class="alert alert-success two-factor-status"]') + ->get_text, "Two-factor authentication: Enabled\nYour account is protected with two-factor authentication.", '2FA is enabled' ); @@ -345,7 +348,8 @@ SKIP: { is( $driver->find_element( - '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, + '//div[@id="registration-status-enabled"]/div[@class="alert alert-success two-factor-status"]') + ->get_text, '', # 'Two-factor authentication: Enabled' is not shown '2FA is disabled' ); -- 2.34.1