Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: add events to the events list
- As an event organizer
- So that I can publicize events
- I want to add events to the list of events on the events page
- Background: events have been added to the database
- Given the following events exist:
- | title | description | time |
- | title1 | description1 | 1-May-2016 |
- | title2 | description2 | 2-May-2016 |
- | title3 | description3 | 3-May-2016 |
- | title4 | description4 | 4-May-2015 |
- | title5 | description5 | 5-May-2015 |
- Given the following members exist:
- | name | email | position |
- | David | davidbliu@gmail.com | admin |
- | Alice | alice@gmail.com | tutor |
- | Bob | bob@gmail.com | user |
- Scenario: add an event
- Given that I am logged in as "davidbliu@gmail.com"
- And I am on the events page
- Then I should see "Add Event"
- When I follow "Add Event"
- Then I should see "New Event"
- When I fill in "title" with "newtitle"
- And I fill in "description" with "newdescription"
- And I fill in "time" with "5/13/2016"
- And I press "Save Event"
- Then I should see "newtitle"
- Scenario: normal user cannot add events
- Given that I am logged in as "asdf@gmail.com"
- And I am on the events page
- Then I should not see "Add Event"
- ---------------------------------------------------------
- Feature: udpate events on the events page
- As an event organizer
- So that I can accurately present upcoming events
- I want to be able to update and delete existing events on the events page
- Background: events have been added to the database
- Given the following events exist:
- | title | description | time |
- | title1 | description1 | 1-May-2016 |
- | title2 | description2 | 2-May-2016 |
- | title3 | description3 | 3-May-2016 |
- | title4 | description4 | 4-May-2015 |
- | title5 | description5 | 5-May-2015 |
- Given the following members exist:
- | name | email | position |
- | David | davidbliu@gmail.com | admin |
- | Alice | alice@gmail.com | tutor |
- | Bob | bob@gmail.com | user |
- Scenario: delete an event
- Given that I am logged in as "davidbliu@gmail.com"
- Given I am on the events admin page
- When I delete "title1"
- Then I should not see "title1"
- Scenario: update an event
- Given that I am logged in as "davidbliu@gmail.com"
- Given I am on the events admin page
- When I edit "title1"
- When I fill in "description" with "new description"
- And I press "Save Event"
- Then I should be on the events page
- And I should see "new description"
- ---------------------------------------------------------
- Feature: display list of events on the events page
- As a tutor
- So that I can know what events are upcoming
- I want to view a list of upcoming events on the events page
- Background: events have been added to the database
- Given the following events exist:
- | title | description | time |
- | title1 | description1 | 1-May-2016 |
- | title2 | description2 | 2-May-2016 |
- | title3 | description3 | 3-May-2016 |
- | title4 | description4 | 4-May-2015 |
- | title5 | description5 | 5-May-2015 |
- Scenario: view events on the page
- Given that I am logged in as "davidbliu@gmail.com"
- And I am on the events page
- Then I should see all the events
- Scenario: view single event
- Given that I am logged in as "davidbliu@gmail.com"
- And I am on the events page
- When I follow "title1"
- Then I should see "title1"
- And I should see "description1"
- And I should not see "description2"
- ---------------------------------------------------------
- Feature: respond to events
- As an attendee
- So that I can let organizers know who to expect at their events
- I want to respond to events that I am going to and not going to
- Background: events have been added to the database
- Given the following events exist:
- | title | description | time |
- | title1 | description1 | 1-May-2016 |
- | title2 | description2 | 2-May-2016 |
- | title3 | description3 | 3-May-2016 |
- | title4 | description4 | 4-May-2015 |
- | title5 | description5 | 5-May-2015 |
- Scenario: respond going to an event
- Given that I am logged in as "asdf@gmail.com"
- And I am on the events page
- And I respond "Going" on "title1"
- Then I should see "You responded: Going"
- Scenario: delete response to event
- Given that I am logged in as "asdf@gmail.com"
- And I am on the events page
- And I respond "Going" on "title1"
- And I delete my response on "title1"
- Then I should not see "You responded: Going"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement