diff --git a/app/views/store/donate.html.haml b/app/views/store/donate.html.haml index b8be754f2..01857e8d2 100644 --- a/app/views/store/donate.html.haml +++ b/app/views/store/donate.html.haml @@ -43,7 +43,7 @@ .input-group-append %span.input-group-text.form-control-sm .00 - if Option.allow_recurring_donations - .form-group.form-row + .form-group.form-row{id:"donation_frequency_radio"} %label.col-form-label.text-right.col-sm-6{:for => :donation} Donation frequency .radio-group.col-sm-6.col-md-2.form-inline = radio_button_tag 'donation_frequency', 'one', Option.default_donation_type == 'one', class: 'form-control', id: 'one' diff --git a/features/donations/monthly_donation_user_view.feature b/features/donations/monthly_donation_user_view.feature index f2fea0b12..58328387a 100644 --- a/features/donations/monthly_donation_user_view.feature +++ b/features/donations/monthly_donation_user_view.feature @@ -5,7 +5,7 @@ Feature: make a recurring donation through regular sales flow Background: Given I am logged in as customer "Tom Foolery" Given admin has allowed recurring donations - And I go to the donation default page + And I go to the quick donation page Scenario: make donation Then I should see "frequency" diff --git a/features/step_definitions/option_steps.rb b/features/step_definitions/option_steps.rb index 6182cdc4a..9ead53909 100644 --- a/features/step_definitions/option_steps.rb +++ b/features/step_definitions/option_steps.rb @@ -75,5 +75,8 @@ end When /I select monthly in the donation frequency radio button/ do - + radio_button = page.find(:css, "#donation_frequency_radio") + radio_button.choose("Monthly") + end +