TF-4284 Fix refreshing causes "virtual mailboxes" to be hidden (#4290)
This commit is contained in:
+7
-14
@@ -60,6 +60,7 @@ import 'package:tmail_ui_user/features/mailbox/domain/usecases/subscribe_mailbox
|
||||
import 'package:tmail_ui_user/features/mailbox/domain/usecases/subscribe_multiple_mailbox_interactor.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/mailbox_controller.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/mailbox_view_web.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_collection.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_node.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_tree.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_tree_builder.dart';
|
||||
@@ -816,14 +817,12 @@ void main() {
|
||||
when(
|
||||
treeBuilder.generateMailboxTreeInUI(
|
||||
allMailboxes: anyNamed('allMailboxes'),
|
||||
currentDefaultTree: anyNamed('currentDefaultTree'),
|
||||
currentPersonalTree: anyNamed('currentPersonalTree'),
|
||||
currentTeamMailboxTree: anyNamed('currentTeamMailboxTree'),
|
||||
currentCollection: anyNamed('currentCollection'),
|
||||
mailboxIdSelected: anyNamed('mailboxIdSelected'),
|
||||
mailboxIdExpanded: anyNamed('mailboxIdExpanded'),
|
||||
),
|
||||
).thenAnswer(
|
||||
(_) async => (
|
||||
(_) async => MailboxCollection(
|
||||
allMailboxes: currentMailboxList,
|
||||
defaultTree: defaultTree,
|
||||
personalTree: personalTree,
|
||||
@@ -865,9 +864,7 @@ void main() {
|
||||
verify(
|
||||
treeBuilder.generateMailboxTreeInUI(
|
||||
allMailboxes: anyNamed('allMailboxes'),
|
||||
currentDefaultTree: anyNamed('currentDefaultTree'),
|
||||
currentPersonalTree: anyNamed('currentPersonalTree'),
|
||||
currentTeamMailboxTree: anyNamed('currentTeamMailboxTree'),
|
||||
currentCollection: anyNamed('currentCollection'),
|
||||
mailboxIdSelected: anyNamed('mailboxIdSelected'),
|
||||
mailboxIdExpanded: anyNamed('mailboxIdExpanded'),
|
||||
),
|
||||
@@ -958,14 +955,12 @@ void main() {
|
||||
when(
|
||||
treeBuilder.generateMailboxTreeInUI(
|
||||
allMailboxes: anyNamed('allMailboxes'),
|
||||
currentDefaultTree: anyNamed('currentDefaultTree'),
|
||||
currentPersonalTree: anyNamed('currentPersonalTree'),
|
||||
currentTeamMailboxTree: anyNamed('currentTeamMailboxTree'),
|
||||
currentCollection: anyNamed('currentCollection'),
|
||||
mailboxIdSelected: anyNamed('mailboxIdSelected'),
|
||||
mailboxIdExpanded: anyNamed('mailboxIdExpanded'),
|
||||
),
|
||||
).thenAnswer(
|
||||
(_) async => (
|
||||
(_) async => MailboxCollection(
|
||||
allMailboxes: currentMailboxList,
|
||||
defaultTree: defaultTree,
|
||||
personalTree: personalTree,
|
||||
@@ -1008,9 +1003,7 @@ void main() {
|
||||
verify(
|
||||
treeBuilder.generateMailboxTreeInUI(
|
||||
allMailboxes: anyNamed('allMailboxes'),
|
||||
currentDefaultTree: anyNamed('currentDefaultTree'),
|
||||
currentPersonalTree: anyNamed('currentPersonalTree'),
|
||||
currentTeamMailboxTree: anyNamed('currentTeamMailboxTree'),
|
||||
currentCollection: anyNamed('currentCollection'),
|
||||
mailboxIdSelected: anyNamed('mailboxIdSelected'),
|
||||
mailboxIdExpanded: anyNamed('mailboxIdExpanded'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user