Skip to content

Commit

Permalink
working on what is the default value of recurring donations radio wit…
Browse files Browse the repository at this point in the history
…hin the admin view
  • Loading branch information
rnickles committed Mar 6, 2024
1 parent d9f0c9f commit 53dd318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/options/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/option_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53dd318

Please sign in to comment.