aboutsummaryrefslogtreecommitdiffstats
path: root/tests/addressbook.feature
blob: a0c7a60890d5afddcaa0c6727ded2dac0d3a69e3 (plain) (blame)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
Feature: Addressbook: File: Create contacts

  Background:
    * Open Evolution and setup fake account
    * Open "Contacts" section
    * Select "Personal" addressbook
    * Change categories view to "Any Category"
    * Delete all contacts containing "Doe"

    @addressbook_contacts
    Scenario: Create a simple contact
      * Create a new contact
      * Set "Full Name..." in contact editor to "John Doe"
      * Save the contact
      * Refresh addressbook
      * Select "Doe, John" contact
      * Open contact editor for selected contact
      Then "Full Name..." property is set to "John Doe"

    @addressbook_contacts
    Scenario: Create a contact with full data
      * Create a new contact
      * Set "Full Name..." in contact editor to "Jimmy Doe"
      * Set "Nickname:" in contact editor to "Unknown"
      * Set emails in contact editor to
        | Field | Value                    |
        | Work  | jimmy.doe@company.com    |
        | Home  | jimmy_doe_72@gmail.com   |
        | Other | jimmydoe72@yahoo.com     |
        | Other | xxjimmyxx@free_email.com |
      * Tick "Wants to receive HTML mail" checkbox
      * Set phones in contact editor to
        | Field           | Value |
        | Assistant Phone | 123   |
        | Business Phone  | 234   |
        | Business Fax    | 345   |
        | Callback Phone  | 456   |
        | Car Phone       | 567   |
        | Company Phone   | 678   |
        | Home Phone      | 789   |
        | Home Fax        | 890   |
      * Set IMs in contact editor to
        | Field     | Value |
        | AIM       | 123   |
        | Jabber    | 234   |
        | Yahoo     | 345   |
        | Gadu-Gadu | 456   |
      * Switch to "Personal Information" tab in contact editor
      * Set the following properties in contact editor
        | Field       | Value                              |
        | Home Page:  | http://anna-doe.com                |
        | Blog:       | http://blog.anna-doe.com           |
        | Calendar:   | caldav://anna-doe.com/calendar.ics |
        | Free/Busy:  | http://anna-doe.com/free-busy      |
        | Video Chat: | http://anna-doe.com/video-chat     |
        | Profession: | QA Engineer                        |
        | Title:      | Dr.                                |
        | Company:    | Something Ltd.                     |
        | Department: | Desktop QA                         |
        | Manager:    | John Doe                           |
        | Assistant:  | Anna Doe                           |
        | Office:     | 221b                               |
        | Spouse:     | Jack Doe                           |
      * Switch to "Mailing Address" tab in contact editor
      * Set the following properties in "Home" section of contact editor
        | Field            | Value             |
        | City:            | Brno              |
        | Zip/Postal Code: | 61245             |
        | State/Province:  | Brno-Kralovo Pole |
        | Country:         | Czech Republic    |
        | PO Box:          | 123456            |
        | Address:         | Purkynova 99/71   |
      * Set the following properties in "Work" section of contact editor
        | Field            | Value             |
        | City:            | Brno              |
        | Zip/Postal Code: | 61245             |
        | State/Province:  | Brno-Kralovo Pole |
        | Country:         | Czech Republic    |
        | PO Box:          | 123456            |
        | Address:         | Purkynova 99/71   |
      * Set the following properties in "Other" section of contact editor
        | Field            | Value             |
        | City:            | Brno              |
        | Zip/Postal Code: | 61245             |
        | State/Province:  | Brno-Kralovo Pole |
        | Country:         | Czech Republic    |
        | PO Box:          | 123456            |
        | Address:         | Purkynova 99/71   |
      * Switch to "Notes" tab in contact editor
      * Set the following note for the contact:
      """
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dignissim gravida elit, nec facilisis augue commodo quis.

      Sed ac metus quis tellus aliquet posuere non quis elit. Quisque non ante congue urna blandit accumsan.

      In vitae ligula risus. Nunc venenatis leo vel leo facilisis porta. Nam sed magna urna, venenatis.
      """
      * Save the contact
      * Refresh addressbook
      * Select "Doe, Jimmy" contact
      * Open contact editor for selected contact
      Then "Nickname:" property is set to "Unknown"
       And Emails are set to
        | Field | Value                    |
        | Work  | jimmy.doe@company.com    |
        | Home  | jimmy_doe_72@gmail.com   |
        | Other | jimmydoe72@yahoo.com     |
        | Other | xxjimmyxx@free_email.com |
       And "Wants to receive HTML mail" checkbox is ticked
       And Phones are set to
        | Field           | Value |
        | Assistant Phone | 123   |
        | Business Phone  | 234   |
        | Business Fax    | 345   |
        | Callback Phone  | 456   |
        | Car Phone       | 567   |
        | Company Phone   | 678   |
        | Home Phone      | 789   |
        | Home Fax        | 890   |
       And IMs are set to
        | Field     | Value |
        | AIM       | 123   |
        | Jabber    | 234   |
        | Yahoo     | 345   |
        | Gadu-Gadu | 456   |
      * Switch to "Personal Information" tab in contact editor
      Then The following properties in contact editor are set
        | Field       | Value                              |
        | Home Page:  | http://anna-doe.com                |
        | Blog:       | http://blog.anna-doe.com           |
        | Calendar:   | caldav://anna-doe.com/calendar.ics |
        | Free/Busy:  | http://anna-doe.com/free-busy      |
        | Video Chat: | http://anna-doe.com/video-chat     |
        | Profession: | QA Engineer                        |
        | Title:      | Dr.                                |
        | Company:    | Something Ltd.                     |
        | Department: | Desktop QA                         |
        | Manager:    | John Doe                           |
        | Assistant:  | Anna Doe                           |
        | Office:     | 221b                               |
        | Spouse:     | Jack Doe                           |
      * Switch to "Mailing Address" tab in contact editor
      Then The following properties in "Home" section of contact editor are set
        | Field            | Value             |
        | City:            | Brno              |
        | Zip/Postal Code: | 61245             |
        | State/Province:  | Brno-Kralovo Pole |
        | Country:         | Czech Republic    |
        | PO Box:          | 123456            |
        | Address:         | Purkynova 99/71   |
       And The following properties in "Work" section of contact editor are set
        | Field            | Value             |
        | City:            | Brno              |
        | Zip/Postal Code: | 61245             |
        | State/Province:  | Brno-Kralovo Pole |
        | Country:         | Czech Republic    |
        | PO Box:          | 123456            |
        | Address:         | Purkynova 99/71   |
       And The following properties in "Other" section of contact editor are set
        | Field            | Value             |
        | City:            | Brno              |
        | Zip/Postal Code: | 61245             |
        | State/Province:  | Brno-Kralovo Pole |
        | Country:         | Czech Republic    |
        | PO Box:          | 123456            |
        | Address:         | Purkynova 99/71   |
      * Switch to "Notes" tab in contact editor
      Then The following note is set for the contact:
      """
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dignissim gravida elit, nec facilisis augue commodo quis.

      Sed ac metus quis tellus aliquet posuere non quis elit. Quisque non ante congue urna blandit accumsan.

      In vitae ligula risus. Nunc venenatis leo vel leo facilisis porta. Nam sed magna urna, venenatis.
      """

    @addressbook_contacts
    Scenario: Create a contact with different "file under" field
      * Create a new contact
      * Set "Full Name..." in contact editor to "Jackie Doe"
      * Set "File under:" in contact editor to "Jackie Doe"
      * Save the contact
      * Refresh addressbook
      * Select "Jackie Doe" contact
      * Open contact editor for selected contact
      Then "Full Name..." property is set to "Jackie Doe"

    @addressbook_contacts
    Scenario: Create a contact with all phones and IM set (part 2)
      * Create a new contact
      * Set "Full Name..." in contact editor to "Kevin Doe"
      * Set IMs in contact editor to
        | Field     | Value |
        | MSN       | 123   |
        | ICQ       | 234   |
        | GroupWise | 345   |
        | Skype     | 456   |
      * Set phones in contact editor to
        | Field         | Value |
        | ISDN          | 123   |
        | Mobile Phone  | 234   |
        | Other Phone   | 345   |
        | Other Fax     | 456   |
        | Pager         | 567   |
        | Primary Phone | 678   |
        | Radio         | 789   |
        | Telex         | 890   |

      * Save the contact
      * Refresh addressbook
      * Select "Doe, Kevin" contact
      * Open contact editor for selected contact
      Then Phones are set to
        | Field         | Value |
        | ISDN          | 123   |
        | Mobile Phone  | 234   |
        | Other Phone   | 345   |
        | Other Fax     | 456   |
        | Pager         | 567   |
        | Primary Phone | 678   |
        | Radio         | 789   |
        | Telex         | 890   |
      And IMs are set to
        | Field     | Value |
        | MSN       | 123   |
        | ICQ       | 234   |
        | GroupWise | 345   |
        | Skype     | 456   |

    @addressbook_contacts
    Scenario: Create a contact with all IM set (part 2)
      * Create a new contact
      * Set "Full Name..." in contact editor to "Mary Doe"
      * Set IMs in contact editor to
        | Field   | Value |
        | Twitter | 123   |
        | ICQ     | 234   |
        | Jabber  | 345   |
        | Skype   | 456   |

      * Save the contact
      * Refresh addressbook
      * Select "Doe, Mary" contact
      * Open contact editor for selected contact
      Then IMs are set to
        | Field   | Value |
        | Twitter | 123   |
        | ICQ     | 234   |
        | Jabber  | 345   |
        | Skype   | 456   |