forked from alphagov/whitehall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fact-checking-policies.feature
42 lines (36 loc) · 2.5 KB
/
fact-checking-policies.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Feature: Fact checking policies
In order to ensure we're not publishing any inaccuracies in our policies
As someone involved in drafting policy
I want to garner comments on a draft policy from other individuals
Scenario: Departmental editor requests fact checking
Given I am a writer called "Bob"
And a draft policy "Standard Beard Lengths" exists
When I request that "fact-checker@example.com" fact checks the policy "Standard Beard Lengths" with instructions "I'm not sure about the length"
Then "fact-checker@example.com" should be notified by email that "Bob" has requested a fact check for "Standard Beard Lengths" with instructions "I'm not sure about the length"
And I should see the pending fact check request to "fact-checker@example.com" for policy "Standard Beard Lengths"
Scenario: Fact checker views the draft policy
Given "fact-checker@example.com" has received an email requesting they fact check a draft policy "Check me" with supporting page "And me!"
When "fact-checker@example.com" clicks the email link to the draft policy
Then they should see the draft policy "Check me"
And they should see the supporting page "And me!"
Scenario: Fact checker enters feedback
Given "fact-checker@example.com" has received an email requesting they fact check a draft policy "Check me"
When "fact-checker@example.com" clicks the email link to the draft policy
And they provide feedback "We cannot establish the moral character of all dogs"
Then they should be notified "Your feedback has been saved"
Scenario: Policy writer is notified that fact checker has added a comment
Given "writer@example.com" has asked "fact-checker@example.com" for feedback on the draft policy "Check me"
When "fact-checker@example.com" adds feedback "This looks good" to "Check me"
Then "writer@example.com" should be notified by email that "fact-checker@example.com" has added a comment "This looks good" to "Check me"
Scenario: Policy writer reviews fact checker comments
Given a fact checker has commented "This looks good" on the draft policy "Check me"
And I am a writer
When I visit the list of draft policies
And I click on the policy "Check me"
Then I should see the fact checking feedback "This looks good"
Scenario: Departmental editor reviews fact checker comments
Given a fact checker has commented "This looks good" on the draft policy "Check me"
And I am an editor
When I visit the list of draft policies
And I click on the policy "Check me"
Then I should see the fact checking feedback "This looks good"