Advertisement
Guest User

Untitled

a guest
Mar 18th, 2016
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. Feature: Add brags to the bragboard
  2. As a tutor or an admin
  3. So that I can publicize accomplishments of students
  4. I want to add brags about students to the bragboard
  5.  
  6. Background: brags have been added to the bragboard
  7.  
  8. Given the follow brags exist:
  9. | title | subject | body |
  10. | title1 | subject1 | body1 |
  11. | title2 | subject2 | body2 |
  12. | title3 | subject3 | body3 |
  13. | title4 | subject4 | body4 |
  14.  
  15. Given the following members exist:
  16. | name | email | position |
  17. | David | davidbliu@gmail.com | admin |
  18. | Alice | alice@gmail.com | tutor |
  19. | Bob | bob@gmail.com | user |
  20.  
  21.  
  22. Scenario: add a brag as an admin
  23. Given that I am logged in as "davidbliu@gmail.com"
  24. And I am on the bragboard
  25. Then I should see "Add Brag"
  26. When I follow "Add Brag"
  27. Then I should see "New Brag"
  28. When I fill in "title" with "newtitle"
  29. And I fill in "subject" with "newsubject"
  30. And I fill in "body" with "newbody"
  31. And I press "Post Brag"
  32. Then I should be on the bragboard
  33. And I should see "newtitle"
  34.  
  35. Scenario: scholars can not add brags
  36. Given that I am logged in as "bob@gmail.com"
  37. And I am on the bragboard
  38. Then I should not see "Add Brag"
  39.  
  40. --------------------------------------------------------
  41.  
  42. Feature: See brags on the bragboard
  43. As a user
  44. So that I can view the achievements of myself and my peers
  45. I want to view the brags on the bragboard
  46.  
  47. Background: brags have been added to the bragboard
  48.  
  49. Given the follow brags exist:
  50. | title | subject | body |
  51. | title1 | subject1 | body1 |
  52. | title2 | subject2 | body2 |
  53. | title3 | subject3 | body3 |
  54. | title4 | subject4 | body4 |
  55.  
  56. Given the following members exist:
  57. | name | email | position |
  58. | David | davidbliu@gmail.com | admin |
  59. | Alice | alice@gmail.com | tutor |
  60. | Bob | bob@gmail.com | user |
  61.  
  62. Scenario: view brags on the bragboard
  63. Given that I am logged in as "davidbliu@gmail.com"
  64. And I am on the bragboard
  65. Then I should see all the brags
  66.  
  67. Scenario: view single brag
  68. Given than I am logged in as "davidbliu@gmail.com"
  69. And I am on the bragboard
  70. When I follow "title1"
  71. Then I should see "title1"
  72. And I should see "subject1"
  73. And I should see "body1"
  74. And I should not see "body2"
  75.  
  76. ---------------------------------------------------------------------
  77.  
  78. Feature: Respond to brags
  79. As a user
  80. So that I can show support to my peers and interact with brags
  81. I want to be able to like a brag
  82.  
  83. Background: brags have been added to the bragboard
  84.  
  85. Given the follow brags exist:
  86. | title | subject | body |
  87. | title1 | subject1 | body1 |
  88. | title2 | subject2 | body2 |
  89. | title3 | subject3 | body3 |
  90. | title4 | subject4 | body4 |
  91.  
  92. Given the following members exist:
  93. | name | email | position |
  94. | David | davidbliu@gmail.com | admin |
  95. | Alice | alice@gmail.com | tutor |
  96. | Bob | bob@gmail.com | user |
  97.  
  98. Scenario: like a brag
  99. Given that I am logged in as "bob@gmail.com"
  100. And I am on the bragboard
  101. And I press "Like"
  102. Then I should see "You liked this brag"
  103.  
  104. --------------------------------------------------------------------
  105.  
  106. Feature: Manage brags on bragboard
  107. As an admin or a tutor
  108. So that I can publicize accurate brags about students
  109. I want to be able to update the viewability of brags
  110.  
  111. Background: brags have been added to the bragboard
  112.  
  113. Given the follow brags exist:
  114. | title | subject | body |
  115. | title1 | subject1 | body1 |
  116. | title2 | subject2 | body2 |
  117. | title3 | subject3 | body3 |
  118. | title4 | subject4 | body4 |
  119.  
  120. Given the following members exist:
  121. | name | email | position |
  122. | David | davidbliu@gmail.com | admin |
  123. | Alice | alice@gmail.com | tutor |
  124. | Bob | bob@gmail.com | user |
  125.  
  126. Scenario: hide a brag
  127. Given that I am logged in as "davidbliu@gmail.com"
  128. And I am on the bragboard admin page
  129. And I hide "title1"
  130. When I go to the bragboard
  131. Then I should not see "title1"
  132.  
  133. Scenario: unhide a brag
  134. Given that I am logged in as "davidbliu@gmail.com"
  135. And I am on the bragboard admin page
  136. And I hide "title1"
  137. And I unhide "title1"
  138. When I go to the bragboard
  139. Then I should see "title1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement