TF-4367 Remove the duplicated closeEmailDetailedView helper from this mixin.
This commit is contained in:
@@ -2,7 +2,6 @@ import 'package:flutter_test/flutter_test.dart';
|
|||||||
|
|
||||||
import '../base/base_scenario.dart';
|
import '../base/base_scenario.dart';
|
||||||
import '../models/provisioning_email.dart';
|
import '../models/provisioning_email.dart';
|
||||||
import '../robots/email_robot.dart';
|
|
||||||
import 'scenario_utils_mixin.dart';
|
import 'scenario_utils_mixin.dart';
|
||||||
|
|
||||||
mixin GenerateEmailScenarioMixin on BaseScenario, ScenarioUtilsMixin {
|
mixin GenerateEmailScenarioMixin on BaseScenario, ScenarioUtilsMixin {
|
||||||
@@ -22,8 +21,4 @@ mixin GenerateEmailScenarioMixin on BaseScenario, ScenarioUtilsMixin {
|
|||||||
);
|
);
|
||||||
await $.pumpAndTrySettle();
|
await $.pumpAndTrySettle();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> closeEmailDetailedView({required EmailRobot emailRobot}) async {
|
|
||||||
await emailRobot.onTapBackButton();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -86,10 +86,7 @@ class ForwardEmailForwardedWhenChangeLanguageScenario extends BaseTestScenario
|
|||||||
await composerRobot.grantContactPermission();
|
await composerRobot.grantContactPermission();
|
||||||
await $.pumpAndTrySettle();
|
await $.pumpAndTrySettle();
|
||||||
|
|
||||||
await _expectComposerSubjectIsNotChanged(
|
await _expectComposerSubjectIsNotChanged(subject: subject);
|
||||||
appLocalizations: appLocalizations,
|
|
||||||
subject: subject,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _expectEmailViewVisible() async {
|
Future<void> _expectEmailViewVisible() async {
|
||||||
@@ -105,7 +102,6 @@ class ForwardEmailForwardedWhenChangeLanguageScenario extends BaseTestScenario
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _expectComposerSubjectIsNotChanged({
|
Future<void> _expectComposerSubjectIsNotChanged({
|
||||||
required AppLocalizations appLocalizations,
|
|
||||||
required String subject,
|
required String subject,
|
||||||
}) async {
|
}) async {
|
||||||
expect(
|
expect(
|
||||||
|
|||||||
+1
-5
@@ -86,10 +86,7 @@ class ReplyEmailRepliedWhenChangeLanguageScenario extends BaseTestScenario
|
|||||||
await composerRobot.grantContactPermission();
|
await composerRobot.grantContactPermission();
|
||||||
await $.pumpAndTrySettle();
|
await $.pumpAndTrySettle();
|
||||||
|
|
||||||
await _expectComposerSubjectIsNotChanged(
|
await _expectComposerSubjectIsNotChanged(subject: subject);
|
||||||
appLocalizations: appLocalizations,
|
|
||||||
subject: subject,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _expectEmailViewVisible() async {
|
Future<void> _expectEmailViewVisible() async {
|
||||||
@@ -105,7 +102,6 @@ class ReplyEmailRepliedWhenChangeLanguageScenario extends BaseTestScenario
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _expectComposerSubjectIsNotChanged({
|
Future<void> _expectComposerSubjectIsNotChanged({
|
||||||
required AppLocalizations appLocalizations,
|
|
||||||
required String subject,
|
required String subject,
|
||||||
}) async {
|
}) async {
|
||||||
expect(
|
expect(
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import '../../scenarios/email_detailed/forward_email_when_change_language_scenar
|
|||||||
void main() {
|
void main() {
|
||||||
TestBase().runPatrolTest(
|
TestBase().runPatrolTest(
|
||||||
description:
|
description:
|
||||||
'The forward prefix should be displayed correctly when forwarding to an email.',
|
'The forward prefix should be displayed correctly when forwarding an email.',
|
||||||
scenarioBuilder: ($) => ForwardEmailWhenChangeLanguageScenario($),
|
scenarioBuilder: ($) => ForwardEmailWhenChangeLanguageScenario($),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user