TF-3290 Only show reconnection confirm dialog when composer is opened
This commit is contained in:
+5
@@ -32,6 +32,7 @@ import 'package:tmail_ui_user/features/manage_account/domain/usecases/log_out_oi
|
||||
import 'package:tmail_ui_user/features/thread/domain/model/search_query.dart';
|
||||
import 'package:tmail_ui_user/main/bindings/network/binding_tag.dart';
|
||||
import 'package:tmail_ui_user/main/utils/toast_manager.dart';
|
||||
import 'package:tmail_ui_user/main/utils/twake_app_manager.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
import 'advanced_filter_controller_test.mocks.dart';
|
||||
@@ -57,6 +58,7 @@ const fallbackGenerators = {
|
||||
MockSpec<Uuid>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
// Advanced filter controller mock specs
|
||||
MockSpec<MailboxDashBoardController>(fallbackGenerators: fallbackGenerators),
|
||||
MockSpec<GetAutoCompleteInteractor>(),
|
||||
@@ -93,6 +95,7 @@ void main() {
|
||||
late MockUuid mockUuid;
|
||||
late MockApplicationManager mockApplicationManager;
|
||||
late MockToastManager mockToastManager;
|
||||
late MockTwakeAppManager mockTwakeAppManager;
|
||||
|
||||
setUpAll(() {
|
||||
Get.testMode = true;
|
||||
@@ -110,6 +113,7 @@ void main() {
|
||||
mockUuid = MockUuid();
|
||||
mockApplicationManager = MockApplicationManager();
|
||||
mockToastManager = MockToastManager();
|
||||
mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
Get.put<CachingManager>(mockCachingManager);
|
||||
Get.put<LanguageCacheManager>(mockLanguageCacheManager);
|
||||
@@ -128,6 +132,7 @@ void main() {
|
||||
Get.put<Uuid>(mockUuid);
|
||||
Get.put<ApplicationManager>(mockApplicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
|
||||
// Mock search controller
|
||||
mockQuickSearchEmailInteractor = MockQuickSearchEmailInteractor();
|
||||
|
||||
+4
@@ -93,6 +93,7 @@ import 'package:tmail_ui_user/main/utils/email_receive_manager.dart';
|
||||
import 'package:tmail_ui_user/features/network_connection/presentation/network_connection_controller.dart'
|
||||
if (dart.library.html) 'package:tmail_ui_user/features/network_connection/presentation/web_network_connection_controller.dart';
|
||||
import 'package:tmail_ui_user/main/utils/toast_manager.dart';
|
||||
import 'package:tmail_ui_user/main/utils/twake_app_manager.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
import 'mailbox_dashboard_controller_test.mocks.dart';
|
||||
@@ -170,6 +171,7 @@ const fallbackGenerators = {
|
||||
MockSpec<RemoveComposerCacheOnWebInteractor>(),
|
||||
MockSpec<ApplicationManager>(),
|
||||
MockSpec<ToastManager>(),
|
||||
MockSpec<TwakeAppManager>(),
|
||||
MockSpec<GetAllIdentitiesInteractor>(),
|
||||
MockSpec<GetIdentityCacheOnWebInteractor>(),
|
||||
])
|
||||
@@ -235,6 +237,7 @@ void main() {
|
||||
final uuid = MockUuid();
|
||||
final applicationManager = MockApplicationManager();
|
||||
final mockToastManager = MockToastManager();
|
||||
final mockTwakeAppManager = MockTwakeAppManager();
|
||||
|
||||
// mock reloadable controller Get dependencies
|
||||
final getSessionInteractor = MockGetSessionInteractor();
|
||||
@@ -300,6 +303,7 @@ void main() {
|
||||
Get.put<Uuid>(uuid);
|
||||
Get.put<ApplicationManager>(applicationManager);
|
||||
Get.put<ToastManager>(mockToastManager);
|
||||
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||
Get.put<GetSessionInteractor>(getSessionInteractor);
|
||||
Get.put<GetAuthenticatedAccountInteractor>(getAuthenticatedAccountInteractor);
|
||||
Get.put<UpdateAccountCacheInteractor>(updateAccountCacheInteractor);
|
||||
|
||||
Reference in New Issue
Block a user