TF-3611 E2E Trash mailbox empty and recover
This commit is contained in:
@@ -125,4 +125,16 @@ class MailboxMenuRobot extends CoreRobot {
|
||||
getBinding<QuotasController>()?.reloadQuota();
|
||||
await $.pumpAndSettle(duration: const Duration(seconds: 2));
|
||||
}
|
||||
|
||||
Future<void> tapRecoverDeletedMessages() async {
|
||||
await $(AppLocalizations().recoverDeletedMessages).tap();
|
||||
}
|
||||
|
||||
Future<void> tapConfirmRecoverDeletedMessages() async {
|
||||
if (await $.native.isPermissionDialogVisible(timeout: const Duration(seconds: 2))) {
|
||||
await $.native.grantPermissionWhenInUse();
|
||||
}
|
||||
await $(AppLocalizations().restore).tap();
|
||||
await $.pumpAndSettle();
|
||||
}
|
||||
}
|
||||
@@ -82,4 +82,8 @@ class ThreadRobot extends CoreRobot {
|
||||
await $(name).tap();
|
||||
await $.pumpAndSettle();
|
||||
}
|
||||
|
||||
Future<void> confirmEmptyTrash() async {
|
||||
await $(AppLocalizations().delete_all).tap();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user