Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Story: editing placement
- As an agency admin
- I want to be able to update placement attributes
- So that I can modify placement data that I don't like
- Scenario: not signed in user goes to placement editing page
- Given guest
- And agency user user@art.com with password pass
- And the placement of this agency
- When I am going to this placement editing page
- Then I should see login page
- Scenario: not signed in user tries to update placement with valid attributes
- Given guest
- And agency user user@art.com with password pass
- And the placement of this agency
- And valid placement attributes
- When I update placement attributes
- Then I should see login page
- Then placement attributes should NOT be updated
- Scenario: regular user goes to placement editing page
- Given agency user user@art.com with password pass
- And the placement of this agency
- When I login with email user@art.com and password pass
- Then I should be logged in
- When I am going to this placement editing page
- Then I should see login page
- Scenario: regular user tries to update placement with valid attributes
- Given agency user user@art.com with password pass
- And the placement of this agency
- And valid placement attributes
- When I login with email user@art.com and password pass
- Then I should be logged in
- When I update placement attributes
- Then I should see login page
- And placement attributes should NOT be updated
- Scenario: agency admin goes to placement of another agency editing page
- Given agency admin user@art.com with password pass
- And another agency
- And the placement of another agency
- When I login with email user@art.com and password pass
- Then I should be logged in
- When I am going to another placement editing page
- Then I should see login page
- Scenario: agency admin tries to update placement of another agency with valid attributes
- Given agency admin user@art.com with password pass
- And another agency
- And the placement of another agency
- And valid placement attributes
- When I login with email user@art.com and password pass
- Then I should be logged in
- When I update placement attributes of another agency
- Then I should see login page
- And placement attributes of another agency should NOT be updated
- Scenario: agency admin tries to update placement with invalid attributes
- Given agency admin user@art.com with password pass
- And the placement of this agency
- And invalid placement attributes
- When I login with email user@art.com and password pass
- Then I should be logged in
- When I update placement attributes
- Then placement attributes should NOT be updated
- Scenario: agency admin user tries to update placement with valid attributes
- Given agency admin user@art.com with password pass
- And the placement of this agency
- And valid placement attributes
- When I login with email user@art.com and password pass
- Then I should be logged in
- When I am going to this placement editing page
- Then I should see placement form with cancel link
- When I update placement attributes
- Then ONLY editable placement attributes should be updated
- And I should see updated placement summary
Add Comment
Please, Sign In to add comment