forked from alphagov/whitehall
/
viewing-organisations.feature
57 lines (50 loc) · 3.14 KB
/
viewing-organisations.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
52
53
54
55
56
57
Feature: Viewing organisations
Scenario: Organisation page should show policies
Given the organisation "Attorney General's Office" contains some policies
And other organisations also have policies
When I visit the "Attorney General's Office" organisation
Then I should only see published policies belonging to the "Attorney General's Office" organisation
Scenario: Organisation page should show consultations
Given the organisation "Attorney General's Office" is associated with consultations "More tea vicar?" and "Cake or biscuit?"
When I visit the "Attorney General's Office" organisation
Then I can see links to the consultations "More tea vicar?" and "Cake or biscuit?"
Scenario: Organisation page should show ministers
Given the "Attorney General's Office" organisation contains:
| Ministerial Role | Person |
| Attorney General | Colonel Mustard |
| Solicitor General | Professor Plum |
When I visit the "Attorney General's Office" organisation
Then I should see "Colonel Mustard" has the "Attorney General" ministerial role
And I should see "Professor Plum" has the "Solicitor General" ministerial role
Scenario: A department is responsible for multiple agencies
Given that "BIS" is responsible for "Companies House" and "UKTI"
When I visit the "BIS" organisation
Then I should see that "BIS" is responsible for "Companies House"
And I should see that "BIS" is responsible for "UKTI"
Scenario: An agency if the responsibility of multiple departments
Given that "The stabilisation unit" is the responsibility of "DFID" and "FCO"
When I visit the "The stabilisation unit" organisation
Then I should see that "The stabilisation unit" is the responsibility of "DFID"
And I should see that "The stabilisation unit" is the responsibility of "FCO"
Scenario: Seeing all speeches for an organisation
Given "Barry Tweaker" is the "Moustachemaster General" for the "Ministry of Facial Topiary"
And "Margaret Cummerbund" is the "Chinbeard Invigilator" for the "Ministry of Facial Topiary"
And a published speech "The Wax of Empire" by "Moustachemaster General" on "2011-11-01" at "10 Downing Street"
And a published speech "The Chin Unseen" by "Chinbeard Invigilator" on "2011-11-02" at "Whitehall"
When I visit the "Ministry of Facial Topiary" organisation
Then I should see the following speeches are associated with the "Facial Topiary Management" organisation:
| Title |
| The Wax of Empire |
| The Chin Unseen |
Scenario: Navigating between pages for an organisation
Given the organisation "Cabinet Office" exists
When I visit the "Cabinet Office" organisation
Then I should see the organisation navigation
When I navigate to the "Cabinet Office" organisation's about page
Then I should see the "Cabinet Office" organisation's about page
And I should see the organisation navigation
When I navigate to the "Cabinet Office" organisation's news page
Then I should see the "Cabinet Office" organisation's news page
And I should see the organisation navigation
When I navigate to the "Cabinet Office" organisation's home page
Then I should see the "Cabinet Office" organisation's home page