mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
fixup! fix: timeout for e2e save template with attachment
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
1 parent
0a9a18ebe8
commit
fa7a8a26da
3 files changed
+14
No files matched your search
@@ -35,6 +35,8 @@ abstract class BaseSaveAndReopenScenario extends BaseTestScenario {
|
||||
|
||||
Future<void> onAfterContentUploaded() async {}
|
||||
|
||||
Future<void> onAfterComposerReopened() async {}
|
||||
|
||||
@override
|
||||
Future<void> runTestLogic() async {
|
||||
const email = String.fromEnvironment('BASIC_AUTH_EMAIL');
|
||||
@@ -72,6 +74,8 @@ abstract class BaseSaveAndReopenScenario extends BaseTestScenario {
|
||||
await composerRobot.expectComposerViewVisible();
|
||||
await composerRobot.grantContactPermission();
|
||||
|
||||
await onAfterComposerReopened();
|
||||
|
||||
await composerRobot.addSubject(' edited');
|
||||
await performSubsequentSave(composerRobot, appLocalizations);
|
||||
|
||||
|
||||
@@ -35,6 +35,11 @@ abstract class BaseSaveTemplateThenReopenScenario extends BaseSaveAndReopenScena
|
||||
await $.pumpAndTrySettle();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> onAfterComposerReopened() async {
|
||||
await $.pumpAndTrySettle(duration: const Duration(seconds: 2));
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> performSubsequentSave(
|
||||
AbstractComposerRobot composerRobot,
|
||||
|
||||
+5
@@ -5,6 +5,11 @@ class SaveTemplateWithInlineImageThenOpenAndSaveTemplateAgainScenario
|
||||
extends BaseSaveTemplateThenReopenScenario with WithInlineImageContentMixin {
|
||||
const SaveTemplateWithInlineImageThenOpenAndSaveTemplateAgainScenario(super.$, super.robots);
|
||||
|
||||
@override
|
||||
Future<void> onAfterContentUploaded() async {
|
||||
await $.pumpAndTrySettle(duration: const Duration(seconds: 2));
|
||||
}
|
||||
|
||||
@override
|
||||
String get subject => 'Template with inline image - second save';
|
||||
}
|
||||
Reference in new issue
Block a user