From 3d03c8475b5398078f373ddf0c6c89a3a38d0bc5 Mon Sep 17 00:00:00 2001 From: dab246 Date: Tue, 6 Jan 2026 16:35:33 +0700 Subject: [PATCH] TF-4227 Set default enable Label setting is true in E2E test --- .../manage_account/domain/model/preferences/label_config.dart | 4 +++- .../presentation/manage_account_dashboard_controller.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/features/manage_account/domain/model/preferences/label_config.dart b/lib/features/manage_account/domain/model/preferences/label_config.dart index 4c0a18374..7cf712651 100644 --- a/lib/features/manage_account/domain/model/preferences/label_config.dart +++ b/lib/features/manage_account/domain/model/preferences/label_config.dart @@ -1,3 +1,4 @@ +import 'package:core/utils/platform_info.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:tmail_ui_user/features/manage_account/domain/model/preferences/preferences_config.dart'; @@ -9,7 +10,8 @@ class LabelConfig extends PreferencesConfig { LabelConfig({this.isEnabled = false}); - factory LabelConfig.initial() => LabelConfig(); + factory LabelConfig.initial() => + LabelConfig(isEnabled: PlatformInfo.isIntegrationTesting); factory LabelConfig.fromJson(Map json) => _$LabelConfigFromJson(json); diff --git a/lib/features/manage_account/presentation/manage_account_dashboard_controller.dart b/lib/features/manage_account/presentation/manage_account_dashboard_controller.dart index 46013004f..ae6dea924 100644 --- a/lib/features/manage_account/presentation/manage_account_dashboard_controller.dart +++ b/lib/features/manage_account/presentation/manage_account_dashboard_controller.dart @@ -77,7 +77,7 @@ class ManageAccountDashBoardController extends ReloadableController final vacationResponse = Rxn(); final dashboardSettingAction = Rxn(); final octetsQuota = Rxn(); - final isLabelVisibilityEnabled = RxBool(false); + final isLabelVisibilityEnabled = RxBool(PlatformInfo.isIntegrationTesting); Uri? previousUri; AccountMenuItem? selectedMenu;