TF-4301 Add E2E tests for label creation and tagging from email view

This commit is contained in:
dab246
2026-03-06 19:08:20 +07:00
committed by Dat H. Pham
parent 190ccc7bc3
commit 1b62990f28
15 changed files with 135 additions and 49 deletions
@@ -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,
@@ -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,