Guest User

Untitled

a guest
Mar 12th, 2018
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. Story: editing placement
  2. As an agency admin
  3. I want to be able to update placement attributes
  4. So that I can modify placement data that I don't like
  5.  
  6. Scenario: not signed in user goes to placement editing page
  7. Given guest
  8. And agency user user@art.com with password pass
  9. And the placement of this agency
  10.  
  11. When I am going to this placement editing page
  12. Then I should see login page
  13.  
  14. Scenario: not signed in user tries to update placement with valid attributes
  15. Given guest
  16. And agency user user@art.com with password pass
  17. And the placement of this agency
  18. And valid placement attributes
  19.  
  20. When I update placement attributes
  21. Then I should see login page
  22. Then placement attributes should NOT be updated
  23.  
  24. Scenario: regular user goes to placement editing page
  25. Given agency user user@art.com with password pass
  26. And the placement of this agency
  27.  
  28. When I login with email user@art.com and password pass
  29. Then I should be logged in
  30.  
  31. When I am going to this placement editing page
  32. Then I should see login page
  33.  
  34. Scenario: regular user tries to update placement with valid attributes
  35. Given agency user user@art.com with password pass
  36. And the placement of this agency
  37. And valid placement attributes
  38.  
  39. When I login with email user@art.com and password pass
  40. Then I should be logged in
  41.  
  42. When I update placement attributes
  43. Then I should see login page
  44. And placement attributes should NOT be updated
  45.  
  46. Scenario: agency admin goes to placement of another agency editing page
  47. Given agency admin user@art.com with password pass
  48. And another agency
  49. And the placement of another agency
  50.  
  51. When I login with email user@art.com and password pass
  52. Then I should be logged in
  53.  
  54. When I am going to another placement editing page
  55. Then I should see login page
  56.  
  57. Scenario: agency admin tries to update placement of another agency with valid attributes
  58. Given agency admin user@art.com with password pass
  59. And another agency
  60. And the placement of another agency
  61. And valid placement attributes
  62.  
  63. When I login with email user@art.com and password pass
  64. Then I should be logged in
  65.  
  66. When I update placement attributes of another agency
  67. Then I should see login page
  68. And placement attributes of another agency should NOT be updated
  69.  
  70. Scenario: agency admin tries to update placement with invalid attributes
  71. Given agency admin user@art.com with password pass
  72. And the placement of this agency
  73. And invalid placement attributes
  74.  
  75. When I login with email user@art.com and password pass
  76. Then I should be logged in
  77.  
  78. When I update placement attributes
  79. Then placement attributes should NOT be updated
  80.  
  81. Scenario: agency admin user tries to update placement with valid attributes
  82. Given agency admin user@art.com with password pass
  83. And the placement of this agency
  84. And valid placement attributes
  85.  
  86. When I login with email user@art.com and password pass
  87. Then I should be logged in
  88.  
  89. When I am going to this placement editing page
  90. Then I should see placement form with cancel link
  91.  
  92. When I update placement attributes
  93. Then ONLY editable placement attributes should be updated
  94. And I should see updated placement summary
Add Comment
Please, Sign In to add comment