TF-3493 Override enterText of Patrol Finder
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import 'package:tmail_ui_user/features/composer/presentation/widgets/recipient_s
|
||||
import 'package:tmail_ui_user/features/composer/presentation/widgets/subject_composer_widget.dart';
|
||||
|
||||
import '../base/core_robot.dart';
|
||||
import '../extensions/patrol_finder_extension.dart';
|
||||
|
||||
class ComposerRobot extends CoreRobot {
|
||||
ComposerRobot(super.$);
|
||||
@@ -25,7 +26,7 @@ class ComposerRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(email);
|
||||
await finder.enterTextWithoutTapAction(email);
|
||||
|
||||
await $(RecipientSuggestionItemWidget)
|
||||
.which<RecipientSuggestionItemWidget>((widget) => widget.emailAddress.email?.contains(email) ?? false)
|
||||
@@ -40,7 +41,7 @@ class ComposerRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(subject);
|
||||
await finder.enterTextWithoutTapAction(subject);
|
||||
}
|
||||
|
||||
Future<void> addContent(String content) async {
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:patrol/patrol.dart';
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
import '../base/core_robot.dart';
|
||||
import '../extensions/patrol_finder_extension.dart';
|
||||
|
||||
class LoginRobot extends CoreRobot {
|
||||
final appLocalizations = AppLocalizations();
|
||||
@@ -27,7 +28,7 @@ class LoginRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(email);
|
||||
await finder.enterTextWithoutTapAction(email);
|
||||
}
|
||||
|
||||
Future<void> enterHostUrl(String url) async {
|
||||
@@ -38,7 +39,7 @@ class LoginRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(url);
|
||||
await finder.enterTextWithoutTapAction(url);
|
||||
}
|
||||
|
||||
Future<void> tapOnNextButton() async {
|
||||
@@ -53,7 +54,7 @@ class LoginRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(email);
|
||||
await finder.enterTextWithoutTapAction(email);
|
||||
}
|
||||
|
||||
Future<void> enterBasicAuthPassword(String password) async {
|
||||
@@ -64,7 +65,7 @@ class LoginRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(password);
|
||||
await finder.enterTextWithoutTapAction(password);
|
||||
}
|
||||
|
||||
Future<void> loginBasicAuth() async {
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:tmail_ui_user/features/thread/presentation/widgets/email_tile_bu
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
import '../base/core_robot.dart';
|
||||
import '../extensions/patrol_finder_extension.dart';
|
||||
|
||||
class SearchRobot extends CoreRobot {
|
||||
SearchRobot(super.$);
|
||||
@@ -18,7 +19,7 @@ class SearchRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(queryString);
|
||||
await finder.enterTextWithoutTapAction(queryString);
|
||||
}
|
||||
|
||||
Future<void> scrollToEndListSearchFilter() async {
|
||||
@@ -47,7 +48,7 @@ class SearchRobot extends CoreRobot {
|
||||
if (!isTextFieldFocused) {
|
||||
await finder.tap();
|
||||
}
|
||||
await finder.enterText(keyword);
|
||||
await finder.enterTextWithoutTapAction(keyword);
|
||||
}
|
||||
|
||||
Future<void> tapOnShowAllResultsText() async {
|
||||
|
||||
Reference in New Issue
Block a user