forked from alphagov/whitehall
/
editing-policy-areas.feature
51 lines (44 loc) · 2.51 KB
/
editing-policy-areas.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
43
44
45
46
47
48
49
50
51
Feature: As an editor
I want to be able to edit the description text of a policy area
So that it best represents the policies that it gathers
Background:
Given I am an editor
Scenario: Adding a new policy area
When I create a new policy area "Flying monkeys" with description "Fly my pretties!"
Then I should see in the admin the "Flying monkeys" policy area description is "Fly my pretties!"
Scenario: Adding a new policy area related to another policy area
When I create a new policy area "Flying monkeys" related to policy area "No more beards"
Then I should see in the admin the "Flying monkeys" policy area is related to policy area "No more beards"
Scenario: Editing the description
Given a policy area called "No more beards" with description "No more hairy-faced men"
When I edit the policy area "No more beards" to have description "No more hairy-faced people"
Then I should see in the admin the "No more beards" policy area description is "No more hairy-faced people"
Scenario: Deleting a policy area
Given a policy area called "No more beards" with description "No more hairy-faced men"
Then I should be able to delete the policy area "No more beards"
Scenario: Ordering policies within a policy area
Given a policy area called "Facial Hair" with description "Against All Follicles"
And a published policy "Outlaw Moustaches" exists in the "Facial Hair" policy area
And a published policy "No more beards" exists in the "Facial Hair" policy area
And a published policy "Free monobrow treatment" exists in the "Facial Hair" policy area
When I set the order of the policies in the "Facial Hair" policy area to:
|Policy Area|
|No more beards|
|Outlaw Moustaches|
|Free monobrow treatment|
Then I should see the order of the policies in the "Facial Hair" policy area is:
|No more beards|
|Outlaw Moustaches|
|Free monobrow treatment|
Scenario: Featuring policies in a policy area
Given a policy area called "Facial Hair" with description "Against All Follicles"
And a published policy "Outlaw Moustaches" exists in the "Facial Hair" policy area
And a published policy "No more beards" exists in the "Facial Hair" policy area
And a published policy "Free monobrow treatment" exists in the "Facial Hair" policy area
When I set the featured policies in the "Facial Hair" policy area to:
|Policy Area|
|No more beards|
|Free monobrow treatment|
Then I should see the featured policies in the "Facial Hair" policy area are:
|No more beards|
|Free monobrow treatment|