summaryrefslogtreecommitdiff
path: root/ui-flows/validate/compose_simple_message.yml
blob: 6cc8a0a2e6d09cc024b1bbc500c6c4d0600fcd98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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"