|
1 | | -appId: net.thunderbird.android.debug |
| 1 | +appId: net.thunderbird.android.beta |
| 2 | +#maestro test ui-flows/validate/emulator_message_details_show_contact_names.yml |
2 | 3 | --- |
| 4 | +## Open an email, save the sender to contacts and then delete that contact |
3 | 5 | - runFlow: |
4 | | - file: ../shared/onboard_with_demo_account.yml |
| 6 | + file: ../shared/onboard_with_configured_account.yml |
| 7 | + env: |
| 8 | + EMAIL_ADDRESS: "[email protected]" |
| 9 | + ACCOUNT_NAME: "Demo Account" |
| 10 | + DISPLAY_NAME: "Demo User" |
5 | 11 | when: |
6 | 12 | visible: |
7 | 13 | id: "onboarding_welcome_start_button" |
8 | 14 |
|
9 | 15 | ## Open message |
| 16 | +- scrollUntilVisible: |
| 17 | + element: |
| 18 | + id: "net.thunderbird.android.beta:id/subject" |
| 19 | + text: "Message details demo" |
| 20 | + direction: DOWN |
10 | 21 | - tapOn: |
11 | | - id: "net.thunderbird.android.debug:id/subject" |
12 | | - index: 0 |
| 22 | + id: "net.thunderbird.android.beta:id/subject" |
13 | 23 | text: "Message details demo" |
14 | 24 |
|
15 | 25 | ## Check message |
16 | 26 | - assertVisible: |
17 | | - id: "net.thunderbird.android.debug:id/from" |
18 | | - text: "Alice" |
19 | | -- assertVisible: |
20 | | - id: "net.thunderbird.android.debug:id/recipient_names" |
21 | | - text: "to User 1.*" |
| 27 | + id: "net.thunderbird.android.beta:id/from" |
| 28 | + text: "Rogoz Anamaria" |
| 29 | +#- assertVisible: |
| 30 | +# id: "net.thunderbird.android.beta:id/recipient_names" |
| 31 | +# text: "to me" |
22 | 32 |
|
23 | | -### Open message details |
| 33 | +## Open message details |
24 | 34 | - runFlow: ../shared/open_message_details.yml |
25 | 35 |
|
26 | 36 | ## Check message details |
27 | 37 | - assertVisible: |
28 | | - id: "net.thunderbird.android.debug:id/name" |
29 | | - text: "Alice" |
30 | | -- assertVisible: |
31 | | - id: "net.thunderbird.android.debug:id/name" |
32 | | - text: "User 1" |
| 38 | + id: "net.thunderbird.android.beta:id/name" |
| 39 | + text: "Rogoz Anamaria" |
| 40 | +#- assertVisible: |
| 41 | +# id: "net.thunderbird.android.beta:id/name" |
| 42 | +# text: "me" |
33 | 43 |
|
34 | 44 | ## Add contacts |
35 | 45 | - runFlow: |
36 | 46 | file: ../shared/add_contact.yml |
| 47 | + when: |
| 48 | + visible: |
| 49 | + id: "net.thunderbird.android.beta:id/menu_add_contact" |
37 | 50 | env: |
38 | | - INDEX: 0 |
39 | | - NAME: Alice |
40 | | - FIRST_NAME: Alice |
41 | | -- runFlow: |
42 | | - file: ../shared/add_contact.yml |
43 | | - env: |
44 | | - INDEX: 4 |
45 | | - NAME: User 1 |
46 | | - FIRST_NAME: User |
| 51 | + NAME: Rogoz |
| 52 | + FIRST_NAME: Anamaria |
| 53 | +#- runFlow: |
| 54 | +# file: ../shared/add_contact.yml |
| 55 | +# when: |
| 56 | +# visible: |
| 57 | +# id: "net.thunderbird.android.beta:id/menu_add_contact" |
| 58 | +# env: |
| 59 | +# NAME: me |
47 | 60 |
|
48 | | -## Close message |
49 | | -- tapOn: |
50 | | - id: "com.android.systemui:id/back" |
| 61 | +## Close message details |
| 62 | +- runFlow: ../shared/close_message_details.yml |
| 63 | + |
| 64 | +## Go back to Inbox |
51 | 65 | - tapOn: |
52 | 66 | id: "com.android.systemui:id/back" |
53 | 67 |
|
54 | 68 | ## Change settings |
55 | 69 | - runFlow: ../shared/change_display_settings_show_contact_names.yml |
56 | 70 |
|
57 | 71 | ## Open message |
| 72 | +- scrollUntilVisible: |
| 73 | + element: |
| 74 | + id: "net.thunderbird.android.beta:id/subject" |
| 75 | + text: "Message details demo" |
| 76 | + direction: DOWN |
58 | 77 | - tapOn: |
59 | | - id: "net.thunderbird.android.debug:id/subject" |
| 78 | + id: "net.thunderbird.android.beta:id/subject" |
60 | 79 | index: 0 |
61 | 80 | text: "Message details demo" |
62 | 81 |
|
63 | | -## Check message |
64 | | -- assertVisible: |
65 | | - id: "net.thunderbird.android.debug:id/from" |
66 | | - text: "Alice from Contacts" |
67 | | -- assertVisible: |
68 | | - id: "net.thunderbird.android.debug:id/recipient_names" |
69 | | - text: "to User from Contacts.*" |
70 | | - |
71 | 82 | ### Open message details |
72 | 83 | - runFlow: ../shared/open_message_details.yml |
73 | 84 |
|
74 | | -## Check message details |
75 | | -- assertVisible: |
76 | | - id: "net.thunderbird.android.debug:id/name" |
77 | | - text: "Alice from Contacts" |
| 85 | +### Check message details |
78 | 86 | - assertVisible: |
79 | | - id: "net.thunderbird.android.debug:id/name" |
80 | | - text: "User from Contacts 1" |
| 87 | + id: "net.thunderbird.android.beta:id/name" |
| 88 | + text: "Rogoz from Contacts Anamaria" |
| 89 | +#- assertVisible: |
| 90 | +# id: "net.thunderbird.android.beta:id/name" |
| 91 | +# text: "me" |
81 | 92 |
|
82 | 93 | ## Remove contacts |
83 | 94 | - runFlow: |
84 | 95 | file: ../shared/remove_contact.yml |
85 | 96 | env: |
86 | | - NAME: Alice from Contacts |
87 | | - |
88 | | -- runFlow: |
89 | | - file: ../shared/remove_contact.yml |
90 | | - env: |
91 | | - NAME: User from Contacts 1 |
| 97 | + NAME: Anamaria |
| 98 | +#- runFlow: |
| 99 | +# file: ../shared/remove_contact.yml |
| 100 | +# env: |
| 101 | +# NAME: me |
92 | 102 |
|
93 | 103 | ## Close message |
94 | 104 | - tapOn: |
|
0 commit comments