diff --git a/spec/features/form/conditional_questions_spec.rb b/spec/features/form/conditional_questions_spec.rb index 5b16b1856..aa3194380 100644 --- a/spec/features/form/conditional_questions_spec.rb +++ b/spec/features/form/conditional_questions_spec.rb @@ -34,7 +34,7 @@ RSpec.describe "Form Conditional Questions" do choose("case-log-armedforces-no-field", allow_label_click: true) expect(page).not_to have_field("case-log-leftreg-field") choose("case-log-armedforces-a-current-or-former-regular-in-the-uk-armed-forces-excluding-national-service-field", allow_label_click: true) - expect(page).to have_css("#case-log-leftreg-field", text: "") + expect(page).to have_field("case-log-leftreg-field", with: "") end end end