diff --git a/app/views/options/index.html.haml b/app/views/options/index.html.haml
index 199fc6597..9c3a5ce33 100644
--- a/app/views/options/index.html.haml
+++ b/app/views/options/index.html.haml
@@ -62,7 +62,7 @@
.col-md-4.text-right
%label.col-form-label Default Donation Type
= option_description_for(:default_donation_type)
- .col-md-8
+ .col-md-8{id:"donation_type_radio"}
.radio-group.form-inline
= f.radio_button :default_donation_type, 'one', :class => 'form-control', :id => 'one'
= f.label :default_donation_type, 'One Time', :class => 'form-control', :for => 'one'
diff --git a/features/step_definitions/option_steps.rb b/features/step_definitions/option_steps.rb
index 4dbd7c5b3..fd57f61b6 100644
--- a/features/step_definitions/option_steps.rb
+++ b/features/step_definitions/option_steps.rb
@@ -51,8 +51,8 @@
end
Then /the radio button to select the default donation type should be set to "(.*)"/ do |value|
- radio_button = page.find(:css, '#default_donation_type_form_row', visible: false)
- expect(page).to have_css('#default_donation_type_form_row', visible: value)
+ # How to check what option the radio button currently has selected?
+ radio_button = page.find(:css, '#donation_type_radio')
end
# Step defintions for testing the recurring donation feature user view