From 561955c651dbc6e588a488676ddfa8f8593fae00 Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Mon, 21 Feb 2022 09:20:35 +0000 Subject: [PATCH] fix failing spec --- spec/features/form/conditional_questions_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/form/conditional_questions_spec.rb b/spec/features/form/conditional_questions_spec.rb index a963cb78c..ab61a2c1b 100644 --- a/spec/features/form/conditional_questions_spec.rb +++ b/spec/features/form/conditional_questions_spec.rb @@ -27,11 +27,11 @@ RSpec.describe "Form Conditional Questions" do it "shows conditional questions if the required answer is selected and hides it again when a different answer option is selected", js: true do visit("/logs/#{id}/armed-forces") # Something about our styling makes the selenium webdriver think the actual radio buttons are not visible so we allow label click here - choose("case-log-armedforces-yes-the-tenant-is-a-current-or-former-regular-field", allow_label_click: true) + choose("case-log-armedforces-yes-the-person-is-a-current-or-former-regular-field", allow_label_click: true) fill_in("case-log-leftreg-field", with: "text") choose("case-log-armedforces-no-field", allow_label_click: true) expect(page).not_to have_field("case-log-leftreg-field") - choose("case-log-armedforces-yes-the-tenant-is-a-current-or-former-regular-field", allow_label_click: true) + choose("case-log-armedforces-yes-the-person-is-a-current-or-former-regular-field", allow_label_click: true) expect(page).to have_field("case-log-leftreg-field", with: "") end end