@@ -25,7 +25,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
25
25
26
26
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
27
27
28
- assert_selector ".govuk-summary-list__row" , count : 8
28
+ assert_selector ".govuk-summary-list__row" , count : 7
29
29
assert_selector ".govuk-summary-list__row:nth-child(1) .govuk-summary-list__key" , text : "Name"
30
30
assert_selector ".govuk-summary-list__row:nth-child(1) .govuk-summary-list__value" , text : organisation . name
31
31
assert_selector ".govuk-summary-list__row:nth-child(2) .govuk-summary-list__key" , text : "Logo formatted name"
@@ -38,18 +38,16 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
38
38
assert_selector ".govuk-summary-list__row:nth-child(5) .govuk-summary-list__value" , text : organisation . govuk_status . titleize
39
39
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Featured link position"
40
40
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : "News priority"
41
- assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__key" , text : "Management team images on homepage"
42
- assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__value" , text : organisation . important_board_members
43
- assert_selector ".govuk-summary-list__row:nth-child(8) .govuk-summary-list__key" , text : "Analytics identifier"
44
- assert_selector ".govuk-summary-list__row:nth-child(8) .govuk-summary-list__value" , text : organisation . analytics_identifier
41
+ assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__key" , text : "Analytics identifier"
42
+ assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__value" , text : organisation . analytics_identifier
45
43
end
46
44
47
45
test "renders acronym_row if the organisation has an acronym" do
48
46
organisation = build_stubbed ( :ministerial_department , acronym : "ACRO" )
49
47
50
48
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
51
49
52
- assert_selector ".govuk-summary-list__row" , count : 9
50
+ assert_selector ".govuk-summary-list__row" , count : 8
53
51
assert_selector ".govuk-summary-list__row:nth-child(2) .govuk-summary-list__key" , text : "Acronym"
54
52
assert_selector ".govuk-summary-list__row:nth-child(2) .govuk-summary-list__value" , text : organisation . acronym
55
53
end
@@ -59,7 +57,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
59
57
60
58
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
61
59
62
- assert_selector ".govuk-summary-list__row" , count : 9
60
+ assert_selector ".govuk-summary-list__row" , count : 8
63
61
assert_selector ".govuk-summary-list__row:nth-child(4) .govuk-summary-list__key" , text : "Brand colour"
64
62
assert_selector ".govuk-summary-list__row:nth-child(4) .govuk-summary-list__value" , text : organisation . organisation_brand_colour . title
65
63
end
@@ -70,7 +68,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
70
68
71
69
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
72
70
73
- assert_selector ".govuk-summary-list__row" , count : 9
71
+ assert_selector ".govuk-summary-list__row" , count : 8
74
72
assert_selector ".govuk-summary-list__row:nth-child(4) .govuk-summary-list__key" , text : "Default news image"
75
73
assert_selector ".govuk-summary-list__row:nth-child(4) .govuk-summary-list__value img[src='#{ news_image . file . url ( :s300 ) } ']"
76
74
end
@@ -80,7 +78,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
80
78
81
79
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
82
80
83
- assert_selector ".govuk-summary-list__row" , count : 9
81
+ assert_selector ".govuk-summary-list__row" , count : 8
84
82
assert_selector ".govuk-summary-list__row:nth-child(4) .govuk-summary-list__key" , text : "Organisation’s URL"
85
83
assert_selector ".govuk-summary-list__row:nth-child(4) .govuk-summary-list__value" , text : "http://parrot.org"
86
84
assert_selector ".govuk-summary-list__row:nth-child(4) .govuk-summary-list__actions a[href='#{ organisation . url } ']" , text : /View/
@@ -91,7 +89,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
91
89
92
90
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
93
91
94
- assert_selector ".govuk-summary-list__row" , count : 9
92
+ assert_selector ".govuk-summary-list__row" , count : 8
95
93
assert_selector ".govuk-summary-list__row:nth-child(5) .govuk-summary-list__key" , text : "Accessible formats request email"
96
94
assert_selector ".govuk-summary-list__row:nth-child(5) .govuk-summary-list__value" , text : organisation . alternative_format_contact_email
97
95
end
@@ -103,7 +101,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
103
101
104
102
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
105
103
106
- assert_selector ".govuk-summary-list__row" , count : 11
104
+ assert_selector ".govuk-summary-list__row" , count : 10
107
105
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Reason for closure"
108
106
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : organisation . govuk_closed_status
109
107
assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__key" , text : "Organisation closed on"
@@ -121,7 +119,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
121
119
122
120
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
123
121
124
- assert_selector ".govuk-summary-list__row" , count : 12
122
+ assert_selector ".govuk-summary-list__row" , count : 11
125
123
assert_selector ".govuk-summary-list__row:nth-child(8) .govuk-summary-list__key" , text : "Superseding organisation 1"
126
124
assert_selector ".govuk-summary-list__row:nth-child(8) .govuk-summary-list__value" , text : superseding_organisation1 . name
127
125
assert_selector ".govuk-summary-list__row:nth-child(8) .govuk-summary-list__actions a[href='#{ superseding_organisation1 . public_url } ']" , text : /View/
@@ -135,7 +133,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
135
133
136
134
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
137
135
138
- assert_selector ".govuk-summary-list__row" , count : 9
136
+ assert_selector ".govuk-summary-list__row" , count : 8
139
137
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Organisation chart URL"
140
138
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : organisation . organisation_chart_url
141
139
end
@@ -145,7 +143,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
145
143
146
144
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
147
145
148
- assert_selector ".govuk-summary-list__row" , count : 9
146
+ assert_selector ".govuk-summary-list__row" , count : 8
149
147
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Recruitment URL"
150
148
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : organisation . custom_jobs_url
151
149
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__actions a[href='#{ organisation . custom_jobs_url } ']" , text : /View/
@@ -156,7 +154,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
156
154
157
155
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
158
156
159
- assert_selector ".govuk-summary-list__row" , count : 9
157
+ assert_selector ".govuk-summary-list__row" , count : 8
160
158
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Publishes content associated with the current government"
161
159
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : "Yes"
162
160
end
@@ -168,7 +166,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
168
166
169
167
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
170
168
171
- assert_selector ".govuk-summary-list__row" , count : 9
169
+ assert_selector ".govuk-summary-list__row" , count : 8
172
170
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Sponsoring organisation"
173
171
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : parent_organisation . name
174
172
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__actions a[href='#{ parent_organisation . public_url } ']" , text : /View/
@@ -182,7 +180,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
182
180
183
181
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
184
182
185
- assert_selector ".govuk-summary-list__row" , count : 10
183
+ assert_selector ".govuk-summary-list__row" , count : 9
186
184
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Sponsoring organisation 1"
187
185
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : parent_organisation1 . name
188
186
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__actions a[href='#{ parent_organisation1 . public_url } ']" , text : /View/
@@ -198,7 +196,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
198
196
199
197
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
200
198
201
- assert_selector ".govuk-summary-list__row" , count : 9
199
+ assert_selector ".govuk-summary-list__row" , count : 8
202
200
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Topical event"
203
201
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : topical_event . name
204
202
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__actions a[href='#{ topical_event . public_url } ']" , text : /View/
@@ -212,7 +210,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
212
210
213
211
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
214
212
215
- assert_selector ".govuk-summary-list__row" , count : 10
213
+ assert_selector ".govuk-summary-list__row" , count : 9
216
214
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__key" , text : "Topical event 1"
217
215
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__value" , text : topical_event1 . name
218
216
assert_selector ".govuk-summary-list__row:nth-child(6) .govuk-summary-list__actions a[href='#{ topical_event1 . public_url } ']" , text : /View/
@@ -228,7 +226,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
228
226
229
227
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
230
228
231
- assert_selector ".govuk-summary-list__row" , count : 9
229
+ assert_selector ".govuk-summary-list__row" , count : 8
232
230
assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__key" , text : "Featured link"
233
231
assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__value" , text : featured_link . title
234
232
assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__actions a[href='#{ featured_link . url } ']" , text : /View/
@@ -242,7 +240,7 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
242
240
243
241
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
244
242
245
- assert_selector ".govuk-summary-list__row" , count : 10
243
+ assert_selector ".govuk-summary-list__row" , count : 9
246
244
assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__key" , text : "Featured link 1"
247
245
assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__value" , text : featured_link1 . title
248
246
assert_selector ".govuk-summary-list__row:nth-child(7) .govuk-summary-list__actions a[href='#{ featured_link1 . url } ']" , text : /View/
@@ -256,8 +254,8 @@ class Admin::Organisations::Show::SummaryListComponentTest < ViewComponent::Test
256
254
257
255
render_inline ( Admin ::Organisations ::Show ::SummaryListComponent . new ( organisation :) )
258
256
259
- assert_selector ".govuk-summary-list__row" , count : 9
260
- assert_selector ".govuk-summary-list__row:nth-child(8 ) .govuk-summary-list__key" , text : "Exempt from Freedom of Information requests"
261
- assert_selector ".govuk-summary-list__row:nth-child(8 ) .govuk-summary-list__value" , text : "Yes"
257
+ assert_selector ".govuk-summary-list__row" , count : 8
258
+ assert_selector ".govuk-summary-list__row:nth-child(7 ) .govuk-summary-list__key" , text : "Exempt from Freedom of Information requests"
259
+ assert_selector ".govuk-summary-list__row:nth-child(7 ) .govuk-summary-list__value" , text : "Yes"
262
260
end
263
261
end
0 commit comments