File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 and_i_search_for_a_child ( search_term : "Harry" )
3636 and_i_click_on_the_childs_card ( given_name : "Harry" , family_name : "Potter" )
3737 then_i_should_see_vaccinations_then_child_details
38- and_child_cannot_be_archived
38+ and_child_can_be_edited_but_not_be_archived
3939 and_child_does_not_look_archived
4040 end
4141
@@ -190,9 +190,13 @@ def then_i_should_see_vaccinations_then_child_details
190190 expect ( app_cards [ 1 ] ) . to have_content ( "Child record" )
191191 end
192192
193- def and_child_cannot_be_archived
194- app_card_buttons = page . all ( ".app -card .nhsuk-button " )
193+ def and_child_can_be_edited_but_not_be_archived
194+ app_card_buttons = page . all ( ".nhsuk -card .nhsuk-card__action " )
195195 expect ( app_card_buttons . count ) . to eq ( 1 )
196+ expect ( page ) . to have_css (
197+ ".nhsuk-card .nhsuk-card__action" ,
198+ text : "Edit child record"
199+ )
196200 expect ( page ) . not_to have_content ( "Archive child record" )
197201 end
198202
You can’t perform that action at this time.
0 commit comments