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