Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Add brags to the bragboard
- As a tutor or an admin
- So that I can publicize accomplishments of students
- I want to add brags about students to the bragboard
- Background: brags have been added to the bragboard
- Given the follow brags exist:
- | title | subject | body |
- | title1 | subject1 | body1 |
- | title2 | subject2 | body2 |
- | title3 | subject3 | body3 |
- | title4 | subject4 | body4 |
- 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 a brag as an admin
- Given that I am logged in as "davidbliu@gmail.com"
- And I am on the bragboard
- Then I should see "Add Brag"
- When I follow "Add Brag"
- Then I should see "New Brag"
- When I fill in "title" with "newtitle"
- And I fill in "subject" with "newsubject"
- And I fill in "body" with "newbody"
- And I press "Post Brag"
- Then I should be on the bragboard
- And I should see "newtitle"
- Scenario: scholars can not add brags
- Given that I am logged in as "bob@gmail.com"
- And I am on the bragboard
- Then I should not see "Add Brag"
- --------------------------------------------------------
- Feature: See brags on the bragboard
- As a user
- So that I can view the achievements of myself and my peers
- I want to view the brags on the bragboard
- Background: brags have been added to the bragboard
- Given the follow brags exist:
- | title | subject | body |
- | title1 | subject1 | body1 |
- | title2 | subject2 | body2 |
- | title3 | subject3 | body3 |
- | title4 | subject4 | body4 |
- Given the following members exist:
- | name | email | position |
- | David | davidbliu@gmail.com | admin |
- | Alice | alice@gmail.com | tutor |
- | Bob | bob@gmail.com | user |
- Scenario: view brags on the bragboard
- Given that I am logged in as "davidbliu@gmail.com"
- And I am on the bragboard
- Then I should see all the brags
- Scenario: view single brag
- Given than I am logged in as "davidbliu@gmail.com"
- And I am on the bragboard
- When I follow "title1"
- Then I should see "title1"
- And I should see "subject1"
- And I should see "body1"
- And I should not see "body2"
- ---------------------------------------------------------------------
- Feature: Respond to brags
- As a user
- So that I can show support to my peers and interact with brags
- I want to be able to like a brag
- Background: brags have been added to the bragboard
- Given the follow brags exist:
- | title | subject | body |
- | title1 | subject1 | body1 |
- | title2 | subject2 | body2 |
- | title3 | subject3 | body3 |
- | title4 | subject4 | body4 |
- Given the following members exist:
- | name | email | position |
- | David | davidbliu@gmail.com | admin |
- | Alice | alice@gmail.com | tutor |
- | Bob | bob@gmail.com | user |
- Scenario: like a brag
- Given that I am logged in as "bob@gmail.com"
- And I am on the bragboard
- And I press "Like"
- Then I should see "You liked this brag"
- --------------------------------------------------------------------
- Feature: Manage brags on bragboard
- As an admin or a tutor
- So that I can publicize accurate brags about students
- I want to be able to update the viewability of brags
- Background: brags have been added to the bragboard
- Given the follow brags exist:
- | title | subject | body |
- | title1 | subject1 | body1 |
- | title2 | subject2 | body2 |
- | title3 | subject3 | body3 |
- | title4 | subject4 | body4 |
- Given the following members exist:
- | name | email | position |
- | David | davidbliu@gmail.com | admin |
- | Alice | alice@gmail.com | tutor |
- | Bob | bob@gmail.com | user |
- Scenario: hide a brag
- Given that I am logged in as "davidbliu@gmail.com"
- And I am on the bragboard admin page
- And I hide "title1"
- When I go to the bragboard
- Then I should not see "title1"
- Scenario: unhide a brag
- Given that I am logged in as "davidbliu@gmail.com"
- And I am on the bragboard admin page
- And I hide "title1"
- And I unhide "title1"
- When I go to the bragboard
- Then I should see "title1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement