Guest User

Untitled

a guest
Apr 17th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. Story: editing campaign
  2. As an agency user
  3. I want to be able to update campaign attributes
  4. So that I can modify campaign data that I don't like
  5.  
  6. Scenario: not signed in user tries to update campaign with valid attributes
  7. Given guest
  8. And agency user user@art.com with password pass
  9. And the campaign of this agency
  10. And valid campaign attributes
  11.  
  12. When I update campaign attributes
  13. Then I should see login page
  14. Then capmaign attributes should NOT be updated
  15.  
  16. Scenario: agency user tries to update another agency campaign with valid attributes
  17. Given agency user user@art.com with password pass
  18. And another agency user another@art.com with password another
  19. And the campaign of another agency
  20. And valid campaign attributes
  21.  
  22. When I login with email user@art.com and password pass
  23. Then I should be logged in
  24.  
  25. When I update another agency campaign attributes
  26. Then I should see login page
  27. And another agency campaign attributes should NOT be updated
  28.  
  29. Scenario: agency user tries to update campaign with invalid attributes
  30. Given agency user user@art.com with password pass
  31. And the campaign
  32. And invalid campaign attributes
  33.  
  34. When I login with email user@art.com and password pass
  35. Then I should be logged in
  36.  
  37. When I update campaign attributes
  38. Then capmaign attributes should NOT be updated
  39.  
  40. Scenario: agency user tries to update campaign with valid attributes
  41. Given agency user user@art.com with password pass
  42. And the campaign
  43. And valid campaign attributes
  44.  
  45. When I login with email user@art.com and password pass
  46. Then I should be logged in
  47.  
  48. When I update campaign attributes
  49. Then capmaign attributes should be updated
Add Comment
Please, Sign In to add comment