diff --git a/lib/features/base/key_values/login_basic_auth_key_values.dart b/lib/features/base/key_values/login_basic_auth_key_values.dart index 6be566b110..f1beba593a 100644 --- a/lib/features/base/key_values/login_basic_auth_key_values.dart +++ b/lib/features/base/key_values/login_basic_auth_key_values.dart @@ -2,5 +2,5 @@ class LoginBasicAuthKeyValues { static const String loginView = 'tmail_login_view'; static const String loginEmailField = 'tmail_login_email_field'; static const String loginPasswordField = 'tmail_login_password_field'; - static const String loginSubmitButton = 'tmail_login_submit_button'; + static const String loginSignInButton = 'tmail_login_sign_in_button'; } \ No newline at end of file diff --git a/lib/features/login/presentation/base_login_view.dart b/lib/features/login/presentation/base_login_view.dart index d0f89166e2..2e8ed46fdf 100644 --- a/lib/features/login/presentation/base_login_view.dart +++ b/lib/features/login/presentation/base_login_view.dart @@ -18,21 +18,24 @@ abstract class BaseLoginView extends GetWidget { margin: const EdgeInsetsDirectional.only(bottom: 16, start: 24, end: 24), width: controller.responsiveUtils.getDeviceWidth(context), height: 48, - child: ElevatedButton( - key: const Key('loginSubmitForm'), - style: ElevatedButton.styleFrom( - foregroundColor: Colors.white, - backgroundColor: AppColor.primaryColor, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(10), - side: const BorderSide(width: 0, color: AppColor.primaryColor) + child: Semantics( + identifier: LoginBasicAuthKeyValues.loginSignInButton, + child: ElevatedButton( + key: const Key('loginSubmitForm'), + style: ElevatedButton.styleFrom( + foregroundColor: Colors.white, + backgroundColor: AppColor.primaryColor, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10), + side: const BorderSide(width: 0, color: AppColor.primaryColor) + ) + ), + onPressed: controller.handleLoginPressed, + child: Text( + AppLocalizations.of(context).signIn, + style: const TextStyle(fontSize: 16, color: Colors.white) ) ), - onPressed: controller.handleLoginPressed, - child: Text( - AppLocalizations.of(context).signIn, - style: const TextStyle(fontSize: 16, color: Colors.white) - ) ) ); }