Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

[mobile] Initial scaffold for maestro tests

Neeraj Guptadd94fce517e5
diff --git a/mobile/apps/locker/ios/Podfile.lock b/mobile/apps/locker/ios/Podfile.lock
index da7932c780..cf7a6f97c6 100644
--- a/mobile/apps/locker/ios/Podfile.lock
+++ b/mobile/apps/locker/ios/Podfile.lock
@@ -90,8 +90,9 @@ PODS:
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- - sodium_libs (2.2.1):
+ - "sodium_libs (3.4.6+1)":
- Flutter
+ - FlutterMacOS
- sqflite_darwin (0.0.4):
- Flutter
- FlutterMacOS
@@ -124,7 +125,7 @@ DEPENDENCIES:
- sentry_flutter (from `.symlinks/plugins/sentry_flutter/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- - sodium_libs (from `.symlinks/plugins/sodium_libs/ios`)
+ - sodium_libs (from `.symlinks/plugins/sodium_libs/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
- ua_client_hints (from `.symlinks/plugins/ua_client_hints/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
@@ -184,7 +185,7 @@ EXTERNAL SOURCES:
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sodium_libs:
- :path: ".symlinks/plugins/sodium_libs/ios"
+ :path: ".symlinks/plugins/sodium_libs/darwin"
sqflite_darwin:
:path: ".symlinks/plugins/sqflite_darwin/darwin"
ua_client_hints:
@@ -220,7 +221,7 @@ SPEC CHECKSUMS:
sentry_flutter: 27892878729f42701297c628eb90e7c6529f3684
share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
- sodium_libs: 6c6d0e83f4ee427c6464caa1f1bdc2abf3ca0b7f
+ sodium_libs: ecc719aba13e1077057a4f550592d80bf68e9d69
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
ua_client_hints: 92fe0d139619b73ec9fcb46cc7e079a26178f586
diff --git a/mobile/apps/locker/lib/l10n/app_cs.arb b/mobile/apps/locker/lib/l10n/app_cs.arb
index a34b0a692d..974a7975b5 100644
--- a/mobile/apps/locker/lib/l10n/app_cs.arb
+++ b/mobile/apps/locker/lib/l10n/app_cs.arb
@@ -511,8 +511,8 @@
},
"description": "Number of collaborators that were successfully added to a collection."
},
- "addViewers": "{count, plural, one {} few {Přidat diváky} many {Přidat diváků}=0 {Přidat diváků} =1 {Přidat diváka} other {Přidat diváků}}",
- "addCollaborators": "{count, plural, one {} few {Přidejte spolupracovníky} many {Přidejte spolupracovníky}=0 {Přidejte spolupracovníka} =1 {Přidejte spolupracovníka} other {Přidejte spolupracovníků}}",
+ "addViewers": "{count, plural, few {Přidat diváky} many {Přidat diváků} =0 {Přidat diváků} =1 {Přidat diváka} other {Přidat diváků}}",
+ "addCollaborators": "{count, plural, few {Přidejte spolupracovníky} many {Přidejte spolupracovníky} =0 {Přidejte spolupracovníka} =1 {Přidejte spolupracovníka} other {Přidejte spolupracovníků}}",
"longPressAnEmailToVerifyEndToEndEncryption": "Dlouhým stisknutím e-mailu ověříte koncové šifrování.",
"sharing": "Sdílení...",
"invalidEmailAddress": "Neplatná e-mailová adresa",
@@ -564,7 +564,7 @@
"viewer": "Divák",
"collaborator": "Spolupracovník",
"collaboratorsCanAddFilesToTheSharedAlbum": "Spolupracovnici mohou pridavat položky do sdilene kolekce.",
- "albumParticipantsCount": "{count, plural, one {} few {{count} účastníci} many {{count} účastníků}=0 {Žádní účastníci} =1 {1 účastník} other {{count} účastníků}}",
+ "albumParticipantsCount": "{count, plural, few {{count} účastníci} many {{count} účastníků} =0 {Žádní účastníci} =1 {1 účastník} other {{count} účastníků}}",
"@albumParticipantsCount": {
"description": "The count of participants in an album",
"placeholders": {
diff --git a/mobile/apps/locker/lib/l10n/app_el.arb b/mobile/apps/locker/lib/l10n/app_el.arb
index fb29581b33..1aa1077958 100644
--- a/mobile/apps/locker/lib/l10n/app_el.arb
+++ b/mobile/apps/locker/lib/l10n/app_el.arb
@@ -470,7 +470,7 @@
"linkDeviceLimit": "Όριο συσκευών",
"expiredLinkInfo": "Αυτός ο σύνδεσμος έχει λήξει. Επιλέξτε νέα ώρα λήξης ή απενεργοποιήστε τη λήξη συνδέσμου.",
"linkExpiresOn": "Ο σύνδεσμος θα λήξει στις {expiryTime}",
- "shareWithPeopleSectionTitle": "{numberOfPeople, plural, one {}=0 {Μοιραστείτε με συγκεκριμένους ανθρώπους} =1 {Μοιραστείτε με 1 άτομο} other {Μοιραστείτε με {numberOfPeople} άτομα}}",
+ "shareWithPeopleSectionTitle": "{numberOfPeople, plural, =0 {Μοιραστείτε με συγκεκριμένους ανθρώπους} =1 {Μοιραστείτε με 1 άτομο} other {Μοιραστείτε με {numberOfPeople} άτομα}}",
"@shareWithPeopleSectionTitle": {
"placeholders": {
"numberOfPeople": {
@@ -512,8 +512,8 @@
},
"description": "Number of collaborators that were successfully added to a collection."
},
- "addViewers": "{count, plural, one {}=0 {Προσθήκη θεατή} =1 {Προσθήκη θεατή} other {Προσθήκη θεατών}}",
- "addCollaborators": "{count, plural, one {}=0 {Προσθήκη συνεργάτη} =1 {Προσθήκη συνεργάτη} other {Προσθήκη συνεργατών}}",
+ "addViewers": "{count, plural, =0 {Προσθήκη θεατή} =1 {Προσθήκη θεατή} other {Προσθήκη θεατών}}",
+ "addCollaborators": "{count, plural, =0 {Προσθήκη συνεργάτη} =1 {Προσθήκη συνεργάτη} other {Προσθήκη συνεργατών}}",
"longPressAnEmailToVerifyEndToEndEncryption": "Πατήστε παρατεταμένα ένα email για να επιβεβαιώσετε την κρυπτογράφηση από άκρη σε άκρη.",
"sharing": "Κοινή χρήση...",
"invalidEmailAddress": "Μη έγκυρη διεύθυνση email",
diff --git a/mobile/apps/locker/lib/l10n/app_es.arb b/mobile/apps/locker/lib/l10n/app_es.arb
index f2f7289c80..240d40fb3b 100644
--- a/mobile/apps/locker/lib/l10n/app_es.arb
+++ b/mobile/apps/locker/lib/l10n/app_es.arb
@@ -924,7 +924,7 @@
"selectLanguage": "Selecciona el idioma",
"general": "General",
"language": "Idioma",
- "selectedCount": "{count, plural, one {}=1{1 seleccionado} other{{count} seleccionados}}",
+ "selectedCount": "{count, plural, =1{1 seleccionado} other{{count} seleccionados}}",
"@selectedCount": {
"description": "Number of items selected",
"placeholders": {
@@ -934,7 +934,7 @@
}
}
},
- "actionNotSupportedForSharedFiles": "{count, plural, one {}=1{La acción no es compatible con 1 archivo compartido} other{La acción no es compatible con {count} archivos compartidos}}",
+ "actionNotSupportedForSharedFiles": "{count, plural, =1{La acción no es compatible con 1 archivo compartido} other{La acción no es compatible con {count} archivos compartidos}}",
"@actionNotSupportedForSharedFiles": {
"description": "Message when action is not supported for shared files",
"placeholders": {
@@ -957,7 +957,7 @@
"collectionUpdated": "Colección actualizada",
"actionNotSupportedOnFavouritesAlbum": "Acción no compatible con el álbum de Favoritos",
"leaveCollectionSuccessfully": "Se salió de la colección con éxito",
- "leftCollectionsSuccessfully": "{count, plural, one {}=1{¡Salió de una colección con exito} other{¡Salió de {count} colecciones con exito}}!",
+ "leftCollectionsSuccessfully": "{count, plural, =1{¡Salió de una colección con exito} other{¡Salió de {count} colecciones con exito}}!",
"@leftCollectionsSuccessfully": {
"description": "Success message when leaving collections",
"placeholders": {
@@ -978,7 +978,7 @@
}
}
},
- "collectionsDeletedSuccessfully": "{count, plural, one {}=1{1 colección eliminada con éxito} other{{count} colecciones eliminadas con éxito}}",
+ "collectionsDeletedSuccessfully": "{count, plural, =1{1 colección eliminada con éxito} other{{count} colecciones eliminadas con éxito}}",
"@collectionsDeletedSuccessfully": {
"description": "Success message when collections are deleted",
"placeholders": {
@@ -990,7 +990,7 @@
},
"restoreToCollection": "Restaurar a la colección",
"restoringFiles": "Restaurando...",
- "filesRestoredSuccessfully": "{count, plural, one {}=1{1 elemento restaurado con éxito} other{{count} elementos restaurados con éxito}}",
+ "filesRestoredSuccessfully": "{count, plural, =1{1 elemento restaurado con éxito} other{{count} elementos restaurados con éxito}}",
"@filesRestoredSuccessfully": {
"description": "Success message when items are restored from trash",
"placeholders": {
@@ -1002,7 +1002,7 @@
},
"failedToRestoreFiles": "Error al restaurar los elementos",
"permanentlyDelete": "Borrar permanentemente",
- "permanentlyDeleteFilesBody": "{count, plural, one {}=1{¡Este elemento será eliminado} other{Estos {count} elementos serán eliminados}} permanentemente y no se podrá recuperar.",
+ "permanentlyDeleteFilesBody": "{count, plural, =1{¡Este elemento será eliminado} other{Estos {count} elementos serán eliminados}} permanentemente y no se podrá recuperar.",
"@permanentlyDeleteFilesBody": {
"description": "Confirmation body for permanent deletion from trash",
"placeholders": {
@@ -1014,7 +1014,7 @@
},
"yesDelete": "Sí, eliminar",
"deletingFiles": "Eliminando...",
- "filesDeletedPermanently": "{count, plural, one {}=1{1 elemento eliminado permanentemente} other{{count} elementos eliminados permanentemente}}",
+ "filesDeletedPermanently": "{count, plural, =1{1 elemento eliminado permanentemente} other{{count} elementos eliminados permanentemente}}",
"@filesDeletedPermanently": {
"description": "Success message when items are permanently deleted from trash",
"placeholders": {
diff --git a/mobile/apps/locker/lib/l10n/app_fr.arb b/mobile/apps/locker/lib/l10n/app_fr.arb
index b44b32b0f0..edb78be4a0 100644
--- a/mobile/apps/locker/lib/l10n/app_fr.arb
+++ b/mobile/apps/locker/lib/l10n/app_fr.arb
@@ -482,7 +482,7 @@
"add": "Ajouter",
"collaboratorsCanAddFilesToTheSharedCollection": "Les collaborateurs peuvent ajouter des elements a la collection partagee.",
"enterEmail": "Entrer un email",
- "viewersSuccessfullyAdded": "{count, plural, one {}=0 {0 spectateur ajouté} =1 {Un spectateur ajouté} other {{count} spectateurs ajoutés}}",
+ "viewersSuccessfullyAdded": "{count, plural, =0 {0 spectateur ajouté} =1 {Un spectateur ajouté} other {{count} spectateurs ajoutés}}",
"@viewersSuccessfullyAdded": {
"placeholders": {
"count": {
@@ -502,8 +502,8 @@
},
"description": "Number of collaborators that were successfully added to a collection."
},
- "addViewers": "{count, plural, one {}=0 {Ajouter un spectateur} =1 {Ajouter une spectateur} other {Ajouter des spectateurs}}",
- "addCollaborators": "{count, plural, one {}=0 {Ajouter un collaborateur} =1 {Ajouter un collaborateur} other {Ajouter des collaborateurs}}",
+ "addViewers": "{count, plural, =0 {Ajouter un spectateur} =1 {Ajouter une spectateur} other {Ajouter des spectateurs}}",
+ "addCollaborators": "{count, plural, =0 {Ajouter un collaborateur} =1 {Ajouter un collaborateur} other {Ajouter des collaborateurs}}",
"longPressAnEmailToVerifyEndToEndEncryption": "Appuyez longuement sur un email pour vérifier le chiffrement de bout en bout.",
"sharing": "Partage...",
"invalidEmailAddress": "Adresse e-mail invalide",
diff --git a/mobile/apps/locker/lib/l10n/app_it.arb b/mobile/apps/locker/lib/l10n/app_it.arb
index c3de395747..865efe78e2 100644
--- a/mobile/apps/locker/lib/l10n/app_it.arb
+++ b/mobile/apps/locker/lib/l10n/app_it.arb
@@ -483,7 +483,7 @@
"add": "Aggiungi",
"collaboratorsCanAddFilesToTheSharedCollection": "I collaboratori possono aggiungere elementi alla raccolta condivisa.",
"enterEmail": "Inserisci email",
- "viewersSuccessfullyAdded": "{count, plural, one {}=0 {Added 0 visualizzatori} =1 {Added 1 visualizzatore} other {Added {count} visualizzatori}}",
+ "viewersSuccessfullyAdded": "{count, plural, =0 {Added 0 visualizzatori} =1 {Added 1 visualizzatore} other {Added {count} visualizzatori}}",
"@viewersSuccessfullyAdded": {
"placeholders": {
"count": {
@@ -503,8 +503,8 @@
},
"description": "Number of collaborators that were successfully added to a collection."
},
- "addViewers": "{count, plural, one {}=0 {Aggiungi visualizzatore} =1 {Add viewer} other {Aggiungi visualizzatori}}",
- "addCollaborators": "{count, plural, one {}=0 {Aggiungi collaboratore} =1 {Aggiungi collaboratore} other {Aggiungi collaboratori}}",
+ "addViewers": "{count, plural, =0 {Aggiungi visualizzatore} =1 {Add viewer} other {Aggiungi visualizzatori}}",
+ "addCollaborators": "{count, plural, =0 {Aggiungi collaboratore} =1 {Aggiungi collaboratore} other {Aggiungi collaboratori}}",
"longPressAnEmailToVerifyEndToEndEncryption": "Premi a lungo un'email per verificare la crittografia end to end.",
"sharing": "Condivisione in corso...",
"invalidEmailAddress": "Indirizzo email non valido",
diff --git a/mobile/apps/locker/lib/l10n/app_nl.arb b/mobile/apps/locker/lib/l10n/app_nl.arb
index d7914eee0d..7a110240c6 100644
--- a/mobile/apps/locker/lib/l10n/app_nl.arb
+++ b/mobile/apps/locker/lib/l10n/app_nl.arb
@@ -970,7 +970,7 @@
}
}
},
- "collectionsDeletedSuccessfully": "{count, plural, one {}=1{1 collectie succesvol verwijderd} other{{count} collecties succesvol verwijderd}}",
+ "collectionsDeletedSuccessfully": "{count, plural, =1{1 collectie succesvol verwijderd} other{{count} collecties succesvol verwijderd}}",
"@collectionsDeletedSuccessfully": {
"description": "Success message when collections are deleted",
"placeholders": {
diff --git a/mobile/apps/locker/lib/ui/components/capsule_form_field.dart b/mobile/apps/locker/lib/ui/components/capsule_form_field.dart
index 68c95ee3b0..da8fa8a0f0 100644
--- a/mobile/apps/locker/lib/ui/components/capsule_form_field.dart
+++ b/mobile/apps/locker/lib/ui/components/capsule_form_field.dart
@@ -339,6 +339,7 @@ class _CapsuleDisplayFieldState extends State<CapsuleDisplayField> {
child: Icon(
_isVisible ? Icons.visibility : Icons.visibility_off,
size: 16,
+ semanticLabel: _isVisible ? 'hide_password' : 'show_password',
color: colorScheme.textMuted,
),
),
diff --git a/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart b/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart
index adb6d60bf8..e68e64f241 100644
--- a/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/account_credentials_page.dart
@@ -158,6 +158,7 @@ class _AccountCredentialsPageState
},
child: Icon(
_passwordVisible ? Icons.visibility : Icons.visibility_off,
+ semanticLabel: _passwordVisible ? 'hide_password' : 'show_password',
),
),
validator: (value) {
diff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dart
index c5ee28df7c..5b9e37d4c5 100644
--- a/mobile/apps/locker/lib/ui/pages/home_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart
@@ -690,6 +690,7 @@ class _HomePageState extends UploaderPageState<HomePage>
return const SizedBox.shrink();
}
return FloatingActionButton(
+ tooltip: 'Add item',
onPressed: _openSavePage,
shape: const CircleBorder(),
backgroundColor: colorScheme.primary700,
diff --git a/mobile/mobile-tests/locker/flows/language-change.yaml b/mobile/mobile-tests/locker/flows/language-change.yaml
new file mode 100644
index 0000000000..edcfb62bf8
--- /dev/null
+++ b/mobile/mobile-tests/locker/flows/language-change.yaml
@@ -0,0 +1,27 @@
+appId: io.ente.locker
+---
+- launchApp
+- swipe:
+ start: 2%, 50%
+ end: 80%, 50%
+ duration: 300
+- tapOn: General
+- tapOn: Select Language
+- waitForAnimationToEnd
+- tapOn:
+ text: "Deutsch (de)"
+ optional: true
+
+- tapOn:
+ text: "Deutsch"
+ optional: true
+- tapOn: Sprache auswählen
+
+- tapOn:
+ text: "English (en)"
+ optional: true
+- tapOn:
+ text: "English"
+ optional: true
+- back
+
diff --git a/mobile/mobile-tests/locker/flows/secrets.yaml b/mobile/mobile-tests/locker/flows/secrets.yaml
new file mode 100644
index 0000000000..e5b7044c22
--- /dev/null
+++ b/mobile/mobile-tests/locker/flows/secrets.yaml
@@ -0,0 +1,60 @@
+appId: io.ente.locker
+---
+- launchApp
+- tapOn: Add item
+- tapOn: |-
+ Secret
+ Preserve account credentials.
+- inputText: "automatedSecretName"
+- pressKey: Enter
+
+- inputText: "automatedUserName"
+- pressKey: Enter
+- inputText: "automatedPassword"
+- pressKey: Enter
+- tapOn: |-
+ Additional notes
+ Recovery methods, security questions, ...
+- inputText: "someRandomNotes"
+- tapOn: |-
+ Additional notes
+- scrollUntilVisible:
+ element: "Important"
+
+- tapOn: Important
+- tapOn: Save
+# Wait till home screen it not visible
+- extendedWaitUntil:
+ visible: Add item
+ timeout: 10000
+
+- tapOn: automatedSecretName
+- tapOn: show_password
+- assertVisible:
+ text: automatedPassword
+- tapOn: hide_password
+- tapOn: Edit
+- tapOn: someRandomNotes
+
+- inputText: " edited"
+- tapOn: Save
+- extendedWaitUntil:
+ notVisible:
+ id: Edit secret
+ timeout: 10000
+
+- assertVisible:
+ text: someRandomNotes edited
+- tapOn: Back
+- longPressOn: automatedSecretName
+- tapOn: Delete
+- tapOn: Yes, delete item
+- extendedWaitUntil:
+ visible: "Deleting item..."
+ timeout: 10000
+- swipe:
+ start: 2%, 50%
+ end: 80%, 50%
+ duration: 300
+- tapOn: Trash
+- tapOn: automatedSecretName
diff --git a/mobile/mobile-tests/locker/login.yaml b/mobile/mobile-tests/locker/login.yaml
new file mode 100644
index 0000000000..1e87ae48c0
--- /dev/null
+++ b/mobile/mobile-tests/locker/login.yaml
@@ -0,0 +1,21 @@
+appId: io.ente.locker
+---
+- launchApp:
+ clearState: true
+- assertVisible: Log in to your Ente account
+- tapOn: Log in to your Ente account
+- waitForAnimationToEnd
+- tapOn: |-
+ Email
+ Enter your email id
+- inputText:
+ text: ${USER_EMAIL}
+ label: "Input the test system username"
+- tapOn: done
+- tapOn: Log in
+- tapOn: Enter your password
+- inputText:
+ text: ${USER_PASSWORD}
+- doubleTapOn:
+ point: 0%,12%
+- tapOn: Log in