Advertisement
Guest User

Untitled

a guest
Aug 12th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. Scenario: Add player from General control bar
  2. Given I am on soccer home page
  3. When I click Sign In / Register button
  4. Then I see Sign In / Register page
  5.  
  6. When I set "{{site.username::property}}" login and "{{site.password::property}}" password on Sign In form
  7. And I submit Sign In form
  8. Then I see user home page
  9.  
  10. When I click My club link on top menu
  11. And I click "Add" button on global action panel
  12. And I select "Specific Team" option on global action panel
  13. And I populate add team as "team1" form
  14. | Field | Value |
  15. | Name | Autotest team_{{alpha.10::rnd}} |
  16. | Gender | Boys |
  17. | Age group | U19 |
  18. | manager first name | Autotest_coach |
  19. | coach first name | Autotest_coach |
  20. And I click "SAVE" button
  21. Then I see My Club page
  22. When I wait 3 seconds
  23.  
  24. When I click "Directory" in the right menu
  25. And I click "Add New" button on action panel
  26. And I select "Person" option from action panel dropdown
  27. And I populate create new person as "user1" form
  28. | Field | Value |
  29. | First name | Autotest_user_{{alpha.10::rnd}} |
  30. | Last name | Lastname_{{alpha.10::rnd}} |
  31. | DOB | 01/01/1996 |
  32. | Phone | 800555{{num.4::rnd}} |
  33. | Email | footballcomfb+rnd{{alpha.10::rnd}}@gmail.com |
  34. | Gender | Male |
  35. And I click "Save" button
  36. Then I see directory profile page
  37.  
  38. When I click "Directory" in the right menu
  39. And I click "Add New" button on action panel
  40. And I select "Person" option from action panel dropdown
  41. And I populate create new person as "user2" form
  42. | Field | Value |
  43. | First name | Autotest_user_{{alpha.10::rnd}} |
  44. | Last name | Lastname_{{alpha.10::rnd}} |
  45. | DOB | 01/01/1996 |
  46. | Phone | 800555{{num.4::rnd}} |
  47. | Email | footballcomfb+rnd{{alpha.10::rnd}}@gmail.com |
  48. | Gender | Male |
  49. And I click "Save" button
  50. Then I see directory profile page
  51.  
  52. When I click "Add" button on global action panel
  53. And I select "Player" option on global action panel
  54. And I populate add player as "player1" form
  55. | Field | Value |
  56. | Person | user1 |
  57. | Team | team1 |
  58. | Primary position | Forward |
  59. | Jersey number | 7 |
  60.  
  61. When I click "Add a Contact / Guardian" button
  62. Then I see add new contact form
  63.  
  64. When I populate add new contact form
  65. | Field | Value |
  66. | Person | user2 |
  67. | Contact types | Guardian |
  68. | Relates as | Friend |
  69. And I click "Save" button on add new contact form
  70. When I click "Save" button
  71. Then I see directory profile page
  72. And I see person is a member of "team1" team
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement