import 'package:core/presentation/views/search/search_bar_view.dart'; import 'package:flutter/material.dart'; import 'package:tmail_ui_user/features/base/widget/compose_floating_button.dart'; import 'package:tmail_ui_user/features/thread/presentation/thread_view.dart'; import '../base/core_robot.dart'; class ThreadRobot extends CoreRobot { ThreadRobot(super.$); Future openComposer() async { await $(ComposeFloatingButton).$(InkWell).tap(); } Future openSearchView() async { await $(SearchBarView).$(InkWell).tap(); } Future tapOnSearchField() async { await $(ThreadView).$(SearchBarView).tap(); } Future openEmailWithSubject(String subject) async { await $.scrollUntilVisible(finder: $(subject)); await $(subject).tap(); } Future openMailbox() async { await $(#mobile_mailbox_menu_button).tap(); } }