Skip to content

Commit b14c074

Browse files
committed
Fix spec regression
Following styling changes the assertions for child record actions broke. Jira-Issue: MAV-3837
1 parent 64542d6 commit b14c074

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

spec/features/national_reporting_team_spec.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
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

0 commit comments

Comments
 (0)