[evolution] tests: make addressbook_contacts test shorter



commit aebc1d5b6fe8cec40a30787591a989a5be6baba5
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Sun May 11 01:01:09 2014 +0200

    tests: make addressbook_contacts test shorter

 tests/addressbook.feature |  223 ++++++++-------------------------------------
 1 files changed, 37 insertions(+), 186 deletions(-)
---
diff --git a/tests/addressbook.feature b/tests/addressbook.feature
index a0c7a60..e9e9364 100644
--- a/tests/addressbook.feature
+++ b/tests/addressbook.feature
@@ -18,7 +18,7 @@ Feature: Addressbook: File: Create contacts
       Then "Full Name..." property is set to "John Doe"
 
     @addressbook_contacts
-    Scenario: Create a contact with full data
+    Scenario: Create a new contact with data
       * Create a new contact
       * Set "Full Name..." in contact editor to "Jimmy Doe"
       * Set "Nickname:" in contact editor to "Unknown"
@@ -39,62 +39,25 @@ Feature: Addressbook: File: Create contacts
         | Company Phone   | 678   |
         | Home Phone      | 789   |
         | Home Fax        | 890   |
+        | ISDN            | 123   |
+        | Mobile Phone    | 234   |
+        | Other Phone     | 345   |
+        | Other Fax       | 456   |
+        | Pager           | 567   |
+        | Primary Phone   | 678   |
+        | Radio           | 789   |
+        | Telex           | 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.
-      """
+        | Field     | Value     |
+        | AIM       | 123       |
+        | Jabber    | 234       |
+        | Yahoo     | 345       |
+        | Gadu-Gadu | 456       |
+        | MSN       | 123       |
+        | ICQ       | 234       |
+        | GroupWise | 345       |
+        | Skype     | jimmy.doe |
+        | Twitter   | @jimmydoe |
       * Save the contact
       * Refresh addressbook
       * Select "Doe, Jimmy" contact
@@ -117,134 +80,22 @@ Feature: Addressbook: File: Create contacts
         | Company Phone   | 678   |
         | Home Phone      | 789   |
         | Home Fax        | 890   |
+        | 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 |
-        | 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   |
+        | Field     | Value     |
+        | AIM       | 123       |
+        | Jabber    | 234       |
+        | Yahoo     | 345       |
+        | Gadu-Gadu | 456       |
+        | MSN       | 123       |
+        | ICQ       | 234       |
+        | GroupWise | 345       |
+        | Skype     | jimmy.doe |
+        | Twitter   | @jimmydoe |


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]