Advertisement
Guest User

Group21 Iteration1-2

a guest
Mar 10th, 2016
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. Feature: add events to the events list
  2. As an event organizer
  3. So that I can publicize events
  4. I want to add events to the list of events on the events page
  5.  
  6. Background: events have been added to the database
  7.  
  8. Given the following events exist:
  9. | title | description | time |
  10. | title1 | description1 | 1-May-2016 |
  11. | title2 | description2 | 2-May-2016 |
  12. | title3 | description3 | 3-May-2016 |
  13. | title4 | description4 | 4-May-2015 |
  14. | title5 | description5 | 5-May-2015 |
  15.  
  16. Given the following members exist:
  17. | name | email | position |
  18. | David | davidbliu@gmail.com | admin |
  19. | Alice | alice@gmail.com | tutor |
  20. | Bob | bob@gmail.com | user |
  21.  
  22. Scenario: add an event
  23. Given that I am logged in as "davidbliu@gmail.com"
  24. And I am on the events page
  25. Then I should see "Add Event"
  26. When I follow "Add Event"
  27. Then I should see "New Event"
  28. When I fill in "title" with "newtitle"
  29. And I fill in "description" with "newdescription"
  30. And I fill in "time" with "5/13/2016"
  31. And I press "Save Event"
  32. Then I should see "newtitle"
  33.  
  34. Scenario: normal user cannot add events
  35. Given that I am logged in as "asdf@gmail.com"
  36. And I am on the events page
  37. Then I should not see "Add Event"
  38.  
  39. ---------------------------------------------------------
  40.  
  41. Feature: udpate events on the events page
  42.  
  43. As an event organizer
  44. So that I can accurately present upcoming events
  45. I want to be able to update and delete existing events on the events page
  46.  
  47. Background: events have been added to the database
  48.  
  49. Given the following events exist:
  50. | title | description | time |
  51. | title1 | description1 | 1-May-2016 |
  52. | title2 | description2 | 2-May-2016 |
  53. | title3 | description3 | 3-May-2016 |
  54. | title4 | description4 | 4-May-2015 |
  55. | title5 | description5 | 5-May-2015 |
  56.  
  57. Given the following members exist:
  58. | name | email | position |
  59. | David | davidbliu@gmail.com | admin |
  60. | Alice | alice@gmail.com | tutor |
  61. | Bob | bob@gmail.com | user |
  62.  
  63.  
  64. Scenario: delete an event
  65. Given that I am logged in as "davidbliu@gmail.com"
  66. Given I am on the events admin page
  67. When I delete "title1"
  68. Then I should not see "title1"
  69.  
  70. Scenario: update an event
  71. Given that I am logged in as "davidbliu@gmail.com"
  72. Given I am on the events admin page
  73. When I edit "title1"
  74. When I fill in "description" with "new description"
  75. And I press "Save Event"
  76. Then I should be on the events page
  77. And I should see "new description"
  78.  
  79. ---------------------------------------------------------
  80.  
  81. Feature: display list of events on the events page
  82.  
  83. As a tutor
  84. So that I can know what events are upcoming
  85. I want to view a list of upcoming events on the events page
  86.  
  87. Background: events have been added to the database
  88.  
  89. Given the following events exist:
  90. | title | description | time |
  91. | title1 | description1 | 1-May-2016 |
  92. | title2 | description2 | 2-May-2016 |
  93. | title3 | description3 | 3-May-2016 |
  94. | title4 | description4 | 4-May-2015 |
  95. | title5 | description5 | 5-May-2015 |
  96.  
  97. Scenario: view events on the page
  98. Given that I am logged in as "davidbliu@gmail.com"
  99. And I am on the events page
  100. Then I should see all the events
  101.  
  102. Scenario: view single event
  103. Given that I am logged in as "davidbliu@gmail.com"
  104. And I am on the events page
  105. When I follow "title1"
  106. Then I should see "title1"
  107. And I should see "description1"
  108. And I should not see "description2"
  109.  
  110. ---------------------------------------------------------
  111.  
  112. Feature: respond to events
  113. As an attendee
  114. So that I can let organizers know who to expect at their events
  115. I want to respond to events that I am going to and not going to
  116.  
  117. Background: events have been added to the database
  118.  
  119. Given the following events exist:
  120. | title | description | time |
  121. | title1 | description1 | 1-May-2016 |
  122. | title2 | description2 | 2-May-2016 |
  123. | title3 | description3 | 3-May-2016 |
  124. | title4 | description4 | 4-May-2015 |
  125. | title5 | description5 | 5-May-2015 |
  126.  
  127.  
  128. Scenario: respond going to an event
  129. Given that I am logged in as "asdf@gmail.com"
  130. And I am on the events page
  131. And I respond "Going" on "title1"
  132. Then I should see "You responded: Going"
  133.  
  134. Scenario: delete response to event
  135. Given that I am logged in as "asdf@gmail.com"
  136. And I am on the events page
  137. And I respond "Going" on "title1"
  138. And I delete my response on "title1"
  139. Then I should not see "You responded: Going"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement