aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'features/documentation_feedback.feature')
-rw-r--r--features/documentation_feedback.feature25
1 files changed, 25 insertions, 0 deletions
diff --git a/features/documentation_feedback.feature b/features/documentation_feedback.feature
new file mode 100644
index 0000000..c792823
--- /dev/null
+++ b/features/documentation_feedback.feature
@@ -0,0 +1,25 @@
+Feature: Documentation feedback
+ As recruiter I want to see recruits feedback on questions documentation
+ But I don't want non-recruiters to see it
+
+ Scenario: When there is feedback see it as recruiter but not as recruit
+ Given I am logged in as "recruit"
+ And a question "question"
+ When I am on show "question" question page
+ And I follow "Answer it!"
+ And I select "Documentation Ok" from "answer[feedback]"
+ And press "Create Answer"
+
+ When I am on show "question" question page
+ Then I should see no pie chart with feedback
+
+ When I follow "Log out"
+ And I am logged in as "recruiter" who is "recruiter"
+ When I am on show "question" question page
+ Then I should see pie chart with feedback for "question"
+
+ Scenario: Don't see recruits feedback as recruiter when there is none
+ Given I am logged in as "recruiter" who is "recruiter"
+ And a question "question"
+ When I am on show "question" question page
+ Then I should see no pie chart with feedback