TF-4301 Add E2E tests for label creation and tagging from email view
This commit is contained in:
@@ -21,7 +21,7 @@ mixin LabelModalMixin {
|
||||
}) async {
|
||||
return DialogRouter().openDialogModal(
|
||||
child: CreateNewLabelModal(
|
||||
key: const Key('create_label_modal'),
|
||||
key: const Key('create_new_label_modal'),
|
||||
labels: labels,
|
||||
accountId: accountId,
|
||||
imagePaths: imagePaths,
|
||||
|
||||
@@ -124,6 +124,7 @@ class _AddLabelToEmailModalState extends State<AddLabelToEmailModal> {
|
||||
),
|
||||
),
|
||||
TMailButtonWidget(
|
||||
key: const Key('create_a_new_label_button'),
|
||||
text: appLocalizations.createANewLabel,
|
||||
icon: _imagePaths.icAddNewFolder,
|
||||
iconColor: AppColor.primaryMain,
|
||||
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/session/session.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
@@ -32,6 +33,7 @@ extension AddLabelToThreadExtension on ThreadDetailController {
|
||||
|
||||
final newLabel = await DialogRouter().openDialogModal(
|
||||
child: AddLabelToEmailModal(
|
||||
key: const Key('add_label_to_thread_modal'),
|
||||
labels: labels,
|
||||
emailLabels: threadLabels,
|
||||
emailIds: emailIds,
|
||||
|
||||
Reference in New Issue
Block a user