Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scenario: Add player from General control bar
- Given I am on soccer home page
- When I click Sign In / Register button
- Then I see Sign In / Register page
- When I set "{{site.username::property}}" login and "{{site.password::property}}" password on Sign In form
- And I submit Sign In form
- Then I see user home page
- When I click My club link on top menu
- And I click "Add" button on global action panel
- And I select "Specific Team" option on global action panel
- And I populate add team as "team1" form
- | Field | Value |
- | Name | Autotest team_{{alpha.10::rnd}} |
- | Gender | Boys |
- | Age group | U19 |
- | manager first name | Autotest_coach |
- | coach first name | Autotest_coach |
- And I click "SAVE" button
- Then I see My Club page
- When I wait 3 seconds
- When I click "Directory" in the right menu
- And I click "Add New" button on action panel
- And I select "Person" option from action panel dropdown
- And I populate create new person as "user1" form
- | Field | Value |
- | First name | Autotest_user_{{alpha.10::rnd}} |
- | Last name | Lastname_{{alpha.10::rnd}} |
- | DOB | 01/01/1996 |
- | Phone | 800555{{num.4::rnd}} |
- | Email | footballcomfb+rnd{{alpha.10::rnd}}@gmail.com |
- | Gender | Male |
- And I click "Save" button
- Then I see directory profile page
- When I click "Directory" in the right menu
- And I click "Add New" button on action panel
- And I select "Person" option from action panel dropdown
- And I populate create new person as "user2" form
- | Field | Value |
- | First name | Autotest_user_{{alpha.10::rnd}} |
- | Last name | Lastname_{{alpha.10::rnd}} |
- | DOB | 01/01/1996 |
- | Phone | 800555{{num.4::rnd}} |
- | Email | footballcomfb+rnd{{alpha.10::rnd}}@gmail.com |
- | Gender | Male |
- And I click "Save" button
- Then I see directory profile page
- When I click "Add" button on global action panel
- And I select "Player" option on global action panel
- And I populate add player as "player1" form
- | Field | Value |
- | Person | user1 |
- | Team | team1 |
- | Primary position | Forward |
- | Jersey number | 7 |
- When I click "Add a Contact / Guardian" button
- Then I see add new contact form
- When I populate add new contact form
- | Field | Value |
- | Person | user2 |
- | Contact types | Guardian |
- | Relates as | Friend |
- And I click "Save" button on add new contact form
- When I click "Save" button
- Then I see directory profile page
- And I see person is a member of "team1" team
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement