TF-3493 Upgrade Patrol to version 3.14.0 and Patrol_CLI to version 3.5.0
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -38,7 +38,7 @@ class ForwardEmailScenario extends BaseScenario {
|
||||
await searchRobot.tapOnShowAllResultsText();
|
||||
await _expectSearchResultEmailListVisible();
|
||||
|
||||
await searchRobot.openEmail('Fwd: Forward email');
|
||||
await searchRobot.openEmailWithSubject('Fwd: Forward email');
|
||||
await _expectEmailViewVisible();
|
||||
await _expectForwardEmailButtonVisible();
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:tmail_ui_user/features/login/presentation/login_view.dart';
|
||||
import 'package:tmail_ui_user/features/starting_page/presentation/twake_welcome/twake_welcome_view.dart';
|
||||
import 'package:tmail_ui_user/features/thread/presentation/thread_view.dart';
|
||||
@@ -25,16 +26,29 @@ class LoginWithBasicAuthScenario extends BaseScenario {
|
||||
Future<void> execute() async {
|
||||
final loginRobot = LoginRobot($);
|
||||
|
||||
await $.pumpAndSettle();
|
||||
await _expectWelcomeViewVisible();
|
||||
|
||||
await loginRobot.tapOnUseCompanyServer();
|
||||
await _expectLoginViewVisible();
|
||||
|
||||
await loginRobot.enterEmail(username);
|
||||
await _expectUsernameToBeEntered();
|
||||
|
||||
await loginRobot.tapOnNextButton();
|
||||
await _expectBaseUrlFormVisible();
|
||||
|
||||
await loginRobot.enterHostUrl(hostUrl);
|
||||
await _expectHostUrlToBeEntered();
|
||||
|
||||
await loginRobot.tapOnNextButton();
|
||||
await _expectCredentialInputFormVisible();
|
||||
|
||||
await loginRobot.enterBasicAuthEmail(email);
|
||||
await _expectEmailToBeEntered();
|
||||
|
||||
await loginRobot.enterBasicAuthPassword(password);
|
||||
|
||||
await loginRobot.loginBasicAuth();
|
||||
|
||||
await loginRobot.grantNotificationPermission($.native);
|
||||
@@ -46,5 +60,29 @@ class LoginWithBasicAuthScenario extends BaseScenario {
|
||||
|
||||
Future<void> _expectLoginViewVisible() => expectViewVisible($(LoginView));
|
||||
|
||||
Future<void> _expectBaseUrlFormVisible() async {
|
||||
await expectViewVisible($(LoginView).$(#base_url_form));
|
||||
}
|
||||
|
||||
Future<void> _expectUsernameToBeEntered() async {
|
||||
await expectViewVisible($(find.text(username)));
|
||||
}
|
||||
|
||||
Future<void> _expectHostUrlToBeEntered() async {
|
||||
final urlWithoutScheme = hostUrl
|
||||
.replaceFirst('https://', '')
|
||||
.replaceFirst('http://', '');
|
||||
|
||||
await expectViewVisible($(find.textContaining(urlWithoutScheme)));
|
||||
}
|
||||
|
||||
Future<void> _expectCredentialInputFormVisible() async {
|
||||
await expectViewVisible($(LoginView).$(#credential_input_form));
|
||||
}
|
||||
|
||||
Future<void> _expectEmailToBeEntered() async {
|
||||
await expectViewVisible($(find.text(email)));
|
||||
}
|
||||
|
||||
Future<void> _expectThreadViewVisible() => expectViewVisible($(ThreadView));
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user