diff --git a/integration_test/scenarios/composer/base_save_and_reopen_scenario.dart b/integration_test/scenarios/composer/base_save_and_reopen_scenario.dart index 0092dc1d1..48c620e76 100644 --- a/integration_test/scenarios/composer/base_save_and_reopen_scenario.dart +++ b/integration_test/scenarios/composer/base_save_and_reopen_scenario.dart @@ -35,6 +35,8 @@ abstract class BaseSaveAndReopenScenario extends BaseTestScenario { Future onAfterContentUploaded() async {} + Future onAfterComposerReopened() async {} + @override Future 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); diff --git a/integration_test/scenarios/composer/base_save_template_then_reopen_scenario.dart b/integration_test/scenarios/composer/base_save_template_then_reopen_scenario.dart index e8a76b8fe..f39edeefd 100644 --- a/integration_test/scenarios/composer/base_save_template_then_reopen_scenario.dart +++ b/integration_test/scenarios/composer/base_save_template_then_reopen_scenario.dart @@ -35,6 +35,11 @@ abstract class BaseSaveTemplateThenReopenScenario extends BaseSaveAndReopenScena await $.pumpAndTrySettle(); } + @override + Future onAfterComposerReopened() async { + await $.pumpAndTrySettle(duration: const Duration(seconds: 2)); + } + @override Future performSubsequentSave( AbstractComposerRobot composerRobot, diff --git a/integration_test/scenarios/composer/save_template_with_inline_image_then_open_and_save_template_again_scenario.dart b/integration_test/scenarios/composer/save_template_with_inline_image_then_open_and_save_template_again_scenario.dart index 9b804b247..4663f0dfc 100644 --- a/integration_test/scenarios/composer/save_template_with_inline_image_then_open_and_save_template_again_scenario.dart +++ b/integration_test/scenarios/composer/save_template_with_inline_image_then_open_and_save_template_again_scenario.dart @@ -5,6 +5,11 @@ class SaveTemplateWithInlineImageThenOpenAndSaveTemplateAgainScenario extends BaseSaveTemplateThenReopenScenario with WithInlineImageContentMixin { const SaveTemplateWithInlineImageThenOpenAndSaveTemplateAgainScenario(super.$, super.robots); + @override + Future onAfterContentUploaded() async { + await $.pumpAndTrySettle(duration: const Duration(seconds: 2)); + } + @override String get subject => 'Template with inline image - second save'; }