0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-19 19:52:14 +02:00
thunderbird-android/ui-flows/validate/compose_simple_message.yml

61 lines
1.2 KiB
YAML

appId: com.fsck.k9.debug
---
- runFlow: ../shared/login_demo_account.yml
## Start composing
- tapOn:
id: "com.fsck.k9.debug:id/floating_action_button"
## Compose email
## To
- tapOn:
id: "com.fsck.k9.debug:id/to"
- inputText: "simple_compose@example.com"
## Subject
- tapOn:
id: "com.fsck.k9.debug:id/subject"
- inputText: "Simple compose test"
## Message
- tapOn:
id: "com.fsck.k9.debug:id/message_content"
- inputText: "Lorem ipsum dolor sit amet."
## Send
- tapOn:
id: "com.fsck.k9.debug:id/send"
## Open message
- tapOn:
id: "com.fsck.k9.debug:id/subject"
index: 0
text: "Simple compose test"
## Assert
- assertVisible:
id: "com.fsck.k9.debug:id/subject"
text: "Simple compose test"
- assertVisible:
id: "com.fsck.k9.debug:id/from"
text: "Demo User"
- assertVisible:
id: "com.fsck.k9.debug:id/recipient_names"
text: "to simple_compose@example.com"
- assertVisible: "Lorem ipsum dolor sit amet."
## Delete message
- tapOn:
id: "com.fsck.k9.debug:id/delete"
- assertNotVisible:
id: "com.fsck.k9.debug:id/subject"
text: "Simple compose test"
## Return to inbox
- tapOn: "Navigate up"
- assertNotVisible:
id: "com.fsck.k9.debug:id/subject"
index: 0
text: "Compose test"