Change flows and add requirements section to README

This commit is contained in:
Wolf Montwe 2023-02-09 11:17:28 +01:00
parent 68ce2e3562
commit 70994c0d0f
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72
4 changed files with 13 additions and 14 deletions

View file

@ -8,14 +8,18 @@ The flows are located in the `ui-utils` folder with this structure:
- `shared` - flows usable by other flows
- `validate` - flows that assert behavior of the app
## Requirements
- Android Pixel 2 emulator 5.0" screen with 1080x1920 resolution and 420dpi
- API 31
- English as system language
## Install
To be able to run the flows, you need to [install the CLI tools](https://maestro.mobile.dev/getting-started/installing-maestro)
## Run
The current flows run best with a Pixel 2 emulator having a 5.0" screen with 1080x1920 resolution and 420dpi.
Ensure a device or emulator is running and execute:
- `maestro test ui-flows/validate_compose_simple_message.yml `

View file

@ -7,11 +7,6 @@
appId: com.fsck.k9.debug
---
## Add to contact
- tapOn:
id: "com.fsck.k9.debug:id/name"
text: ${NAME}
## Add contact
- tapOn:
id: "com.fsck.k9.debug:id/menu_add_contact"

View file

@ -17,10 +17,10 @@ appId: com.fsck.k9.debug
## Account name configuration
- tapOn:
id: "com.fsck.k9.debug:id/account_description"
- inputText: "demo@k9mail"
- inputText: "Demo Account"
- tapOn:
id: "com.fsck.k9.debug:id/account_name"
- inputText: "Demo Account"
- inputText: "Demo User"
- tapOn:
id: "com.fsck.k9.debug:id/done"

View file

@ -16,7 +16,7 @@ appId: com.fsck.k9.debug
## Subject
- tapOn:
id: "com.fsck.k9.debug:id/subject"
- inputText: "Compose test"
- inputText: "Simple compose test"
## Message
- tapOn:
@ -31,15 +31,15 @@ appId: com.fsck.k9.debug
- tapOn:
id: "com.fsck.k9.debug:id/subject"
index: 0
text: "Compose test"
text: "Simple compose test"
## Assert
- assertVisible:
id: "com.fsck.k9.debug:id/subject"
text: "Compose test"
text: "Simple compose test"
- assertVisible:
id: "com.fsck.k9.debug:id/from"
text: "Demo Account"
text: "Demo User"
- assertVisible:
id: "com.fsck.k9.debug:id/recipient_names"
text: "to simple_compose@example.com"
@ -50,7 +50,7 @@ appId: com.fsck.k9.debug
id: "com.fsck.k9.debug:id/delete"
- assertNotVisible:
id: "com.fsck.k9.debug:id/subject"
text: "Compose test"
text: "Simple compose test"
## Return to inbox
- tapOn: "Navigate up"