Guest User

Untitled

a guest
Jul 15th, 2018
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. Feature: Add contacts
  2. In order to have my contacts online
  3. As a mobile user
  4. I want to add my contacts
  5.  
  6. Scenario: No contacts at all
  7. Given no contacts
  8. When I am on contacts page
  9. Then I should see "Firstname"
  10. And I should see "Lastname"
  11. And I should see "Email"
  12. And I should see "Twitter"
  13. And I should see "Add a contact" within "a"
  14. When I follow "Add a contact"
  15. Then I should be on new contact
  16. And I should see "Add Contact"
  17. And I should see "Personal Information"
  18. And I should see "First Name"
  19. And I should see "Last Name"
  20. And I should see "Email"
  21. And I should see "Social Information"
  22. And I should see "Group"
  23. And I should see "Twitter"
  24. Scenario: A new contact
  25. Given I am on a new contact
  26. When I fill in "contact[first_name]" with "Rodrigo"
  27. When I fill in "contact[last_name]" with "Bermudez"
  28. When I fill in "contact[email]" with "mexicanobermudez@gmail.com"
  29. When I fill in "contact[twitter]" with "@twitter"
  30. And I press "save"
  31. Then I should have a contact with "Rodrigo" as "first_name"
  32. And I should have a contact with "Bermudez" as "last_name"
  33. And I should have a contact with "mexicanobermudez@gmail.com" as "email"
  34. And I should have a contact with "@twitter" as "twitter"
  35. Scenario: An existing contact
  36. Scenario: An existing contact with email taken
  37. Given an existing contact with "mexicanobermudez@gmail.com" as "email"
  38. And I am on new contact
  39. When I fill in "contact[email]" with "mexicanobermudez@gmail.com"
  40. And press "save"
  41. And I should see "Invalid contact"
Add Comment
Please, Sign In to add comment