forked from alphagov/whitehall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
filtering-documents.feature
34 lines (27 loc) · 1.4 KB
/
filtering-documents.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
Feature: Filtering documents by author
Scenario: Viewing only documents written by me
Given I am a writer
And I draft a new publication "My Publication"
And a draft publication "Another Publication" exists
And I visit the list of draft documents
When I select the "by me" filter
Then I should see the publication "My Publication"
And I should not see the publication "Another Publication"
Scenario: Viewing only publications written by me
Given I am a writer
And I draft a new publication "My Publication"
And I draft a new policy "My Policy"
And I visit the list of draft documents
When I select the "by me" filter
And I select the "publications" filter
Then I should see the publication "My Publication"
And I should not see the policy "My Policy"
Scenario: Viewing only documents related to my department
Given two organisations "Department of Thumbtacks" and "Ministry of Post-it Notes" exist
And I am a writer in the organisation "Department of Thumbtacks"
And a draft publication "Thumbtack Publication" was produced by the "Department of Thumbtacks" organisation
And a draft publication "Another Publication" was produced by the "Ministry of Post-it Notes" organisation
And I visit the list of draft documents
When I select the "by my department" filter
Then I should see the publication "Thumbtack Publication"
And I should not see the publication "Another Publication"