From fc55f5de8e50da51e6bdeeefd5da9cd61c34c74b Mon Sep 17 00:00:00 2001 From: DatDang Date: Fri, 20 Dec 2024 11:27:50 +0700 Subject: [PATCH] fixup! TF-3332 Prevent refresh when switching mailbox --- .../controller/mailbox_dashboard_controller_test.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller_test.dart b/test/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller_test.dart index a6045ae75..474d493b2 100644 --- a/test/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller_test.dart +++ b/test/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller_test.dart @@ -414,6 +414,7 @@ void main() { limit: anyNamed('limit'), sort: anyNamed('sort'), emailFilter: anyNamed('emailFilter'), + getLatestChanges: anyNamed('getLatestChanges'), propertiesCreated: anyNamed('propertiesCreated'), propertiesUpdated: anyNamed('propertiesUpdated'))); expect(searchController.sortOrderFiltered, EmailSortOrderType.mostRecent); @@ -426,6 +427,7 @@ void main() { filter: EmailFilterCondition(inMailbox: testMailboxId), filterOption: FilterMessageOption.all, mailboxId: testMailboxId), + getLatestChanges: false, propertiesCreated: ThreadConstants.propertiesDefault, propertiesUpdated: ThreadConstants.propertiesUpdatedDefault)); }); @@ -471,6 +473,7 @@ void main() { limit: anyNamed('limit'), sort: anyNamed('sort'), emailFilter: anyNamed('emailFilter'), + getLatestChanges: anyNamed('getLatestChanges'), propertiesCreated: anyNamed('propertiesCreated'), propertiesUpdated: anyNamed('propertiesUpdated'))); expect(searchController.sortOrderFiltered, EmailSortOrderType.mostRecent); @@ -483,6 +486,7 @@ void main() { filter: EmailFilterCondition(inMailbox: testMailboxId), filterOption: FilterMessageOption.all, mailboxId: testMailboxId), + getLatestChanges: false, propertiesCreated: ThreadConstants.propertiesDefault, propertiesUpdated: ThreadConstants.propertiesUpdatedDefault )).called(1);