Filtering documents by author in admin
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 filter by author "
Me" - 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 there is a user called "
Janice" - And "
Janice" drafts a new publication "Janice's Publication" - And I draft a new "
English" language consultation "My Consultation" - And I visit the list of draft documents
- When I filter by author "
Janice" - And I select the "
Publications" edition filter - Then I should see the publication "
Janice's Publication" - And I should not see the consultation "
My Consultation"
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 filter by organisation "
Department of Thumbtacks" - Then I should see the publication "
Thumbtack Publication" - And I should not see the publication "
Another Publication"
Scenario: Viewing only documents with an overdue review reminder
- Given a published publication "
Standard Beard Lengths" with a PDF attachment - And a review reminder exists for "
Standard Beard Lengths" with the date "2032-1-1" - And a published publication "
I moustache you a question" with a PDF attachment - And a review reminder exists for "
I moustache you a question" and the review date has passed - When I filter by review overdue
- Then I should see the publication "
I moustache you a question" - And I should not see the publication "
Standard Beard Lengths"
Scenario: Viewing only invalid documents
- Given I am a writer
- And a world location "
United Kingdom" exists - When I draft a new worldwide organisation "
Test Worldwide Organisation" assigned to world location "United Kingdom" - And I draft a new invalid publication "
Invalid Publication" - And I visit the list of documents
- Then I should see the publication "
Invalid Publication" - And I should see the worldwide organisation "
Test Worldwide Organisation" - When I filter by only invalid editions
- Then I should see the publication "
Invalid Publication" - And I should not see the worldwide organisation "
Test Worldwide Organisation"
Source: features/admin-filtering-documents.feature at commit 59fc7c54, Whitehall (MIT license).