From a21f202b886bd9c1e6b1fabb7ab7c50a0a3776f0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Oct 2025 10:29:40 +0200 Subject: [PATCH] Bug 30724: Fix selenium tests - wording Signed-off-by: Nick Clemens --- t/db_dependent/selenium/authentication_2fa.t | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/t/db_dependent/selenium/authentication_2fa.t b/t/db_dependent/selenium/authentication_2fa.t index 3c97e4f6edd..c250a25717f 100755 --- a/t/db_dependent/selenium/authentication_2fa.t +++ b/t/db_dependent/selenium/authentication_2fa.t @@ -75,14 +75,14 @@ SKIP: { is( $driver->find_element( '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - 'Status: Disabled', + "Two-factor authentication: Disabled\nYour account is not protected with two-factor authentication.", '2FA is disabled' ); is( $driver->find_element( '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - '', # 'Status: Enabled' is not shown + '', # 'Two-factor authentication: Enabled' is not shown '2FA is disabled' ); @@ -110,14 +110,14 @@ SKIP: { is( $driver->find_element( '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - '', # 'Status: Disabled' is not shown + '', # 'Two-factor authentication: Disabled' is not shown '2FA is enabled' ); is( $driver->find_element( '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - 'Status: Enabled', + "Two-factor authentication: Enabled\nYour account is protected with two-factor authentication.", '2FA is enabled' ); @@ -323,14 +323,14 @@ SKIP: { is( $driver->find_element( '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - '', # 'Status: Disabled' is not shown + '', # 'Two-factor authentication: Disabled' is not shown '2FA is enabled' ); is( $driver->find_element( '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - 'Status: Enabled', + "Two-factor authentication: Enabled\nYour account is protected with two-factor authentication.", '2FA is enabled' ); @@ -339,14 +339,14 @@ SKIP: { is( $driver->find_element( '//div[@id="registration-status-disabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - 'Status: Disabled', + "Two-factor authentication: Disabled\nYour account is not protected with two-factor authentication.", '2FA is disabled' ); is( $driver->find_element( '//div[@id="registration-status-enabled"]/div[@class="alert alert-info two-factor-status"]')->get_text, - '', # 'Status: Enabled' is not shown + '', # 'Two-factor authentication: Enabled' is not shown '2FA is disabled' ); -- 2.39.5