-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathadmin-statistics-announcements.feature
More file actions
89 lines (75 loc) · 4.92 KB
/
admin-statistics-announcements.feature
File metadata and controls
89 lines (75 loc) · 4.92 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Feature: Statistical release announcements
As an publisher of government statistics
I want to be able to announce upcoming statistics publications
So that citizens can see which statistics publications are coming soon and when they will be published.
Scenario: announcing an upcoming statistics publication
Given I am a GDS editor in the organisation "Department for Beards"
When I announce an upcoming statistics publication called "Monthly Beard Stats"
Then I should see the announcement listed on the list of announcements
Scenario: drafting a document from a statistics announcement
Given I am a GDS editor in the organisation "Department for Beards"
And a statistics announcement called "Monthly Beard Stats" exists
When I draft a document from the announcement
Then the document fields are pre-filled based on the announcement
When I save the draft statistics document
Then the document becomes linked to the announcement
Scenario: changing the date on a statistics announcement
Given I am a GDS editor in the organisation "Department for Beards"
And a statistics announcement called "Monthly Beard Stats" exists
When I change the release date on the announcement
Then the new date is reflected on the announcement
Scenario: searching for a statistics announcement
Given I am a GDS editor in the organisation "Department for Beards"
And a statistics announcement called "MQ5 statistics" exists
And a statistics announcement called "PQ3 statistics" exists
When I search for announcements containing "MQ5"
And I should only see a statistics announcement called "MQ5 statistics"
Scenario: filtering statistics announcements by organisation
Given I am a GDS editor in the organisation "Department for Beards"
And there is a statistics announcement by my organisation
And there is a statistics announcement by another organistion
Then I should see my organisation's statistics announcements on the statistical announcements page by default
When I filter statistics announcements by the other organisation
Then I should only see the statistics announcement of the other organisation
Scenario: filtering announcements according to date
Given I am a GDS editor in the organisation "Department for Beards"
And there are statistics announcements by my organisation
Then I should be able to filter both past and future announcements
Scenario: filtering announcements that are not linked to a publications
Given I am a GDS editor in the organisation "Department for Beards"
And there are statistics announcements by my organisation
Then I should be able to filter only the unlinked announcements
Scenario: viewing unlinked statistics announcements that are imminent
Given I am a GDS editor in the organisation "Department for Beards"
And there are statistics announcements by my organisation that are unlinked to a publication
When I view the statistics announcements index page
Then I should see a warning that there are upcoming releases without a linked publication
And I should be able to view these upcoming releases without a linked publication
Scenario: attempting to link a document to a published statistics announcement
Given I am a GDS editor in the organisation "Department for Beards"
And a published statistics publication called "Beard statistics - January 2014"
And a statistics announcement called "January's beard statistics" exists
Then I should not be able to link the announcement to the publication
Scenario: linking a document to a draft statistics announcement
Given I am a GDS editor in the organisation "Department for Beards"
And a draft statistics publication called "Beard statistics - January 2014"
And a statistics announcement called "January's beard statistics" exists
When I link the announcement to the publication
Then I should see that the announcement is linked to the publication
Scenario: cancelling a statistics announcement
Given I am a GDS editor in the organisation "Department for Beards"
And a statistics announcement called "Beard grooming spending 2014" exists
When I cancel the statistics announcement
Then I should see that the statistics announcement has been cancelled
And I should see "Announcement cancelled" in the history
Scenario: editing a cancellation reason
Given I am a GDS editor in the organisation "Department for Beards"
And a cancelled statistics announcement exists
When I change the cancellation reason
Then I should see the updated cancellation reason
Scenario: unpublishing a statistics announcement
Given I am a GDS editor in the organisation "Department for Beards"
And a statistics announcement called "Beard grooming spending 2014" exists
When I unpublish the statistics announcement
Then I should see the unpublish statistics announcement banner
And I should see no statistic announcements