TF-2528 Add integration test for search email with sort by sender nam…e ascending
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:tmail_ui_user/features/composer/presentation/composer_view.dart';
|
||||
|
||||
import '../base/base_scenario.dart';
|
||||
import '../robots/composer_robot.dart';
|
||||
import '../robots/thread_robot.dart';
|
||||
@@ -27,7 +30,7 @@ class SendEmailScenario extends BaseScenario {
|
||||
await loginWithBasicAuthScenario.execute();
|
||||
|
||||
await threadRobot.openComposer();
|
||||
await threadRobot.expectComposerViewVisible();
|
||||
await _expectComposerViewVisible();
|
||||
|
||||
await composerRobot.grantContactPermission();
|
||||
|
||||
@@ -36,6 +39,13 @@ class SendEmailScenario extends BaseScenario {
|
||||
await composerRobot.addSubject(subject);
|
||||
await composerRobot.addContent(content);
|
||||
await composerRobot.sendEmail();
|
||||
await composerRobot.expectSendEmailSuccessToast();
|
||||
|
||||
await _expectSendEmailSuccessToast();
|
||||
}
|
||||
|
||||
Future<void> _expectComposerViewVisible() => expectViewVisible($(ComposerView));
|
||||
|
||||
Future<void> _expectSendEmailSuccessToast() async {
|
||||
expect($('Message has been sent successfully'), findsOneWidget);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user