Skip to content

Commit

Permalink
working on user view for donations
Browse files Browse the repository at this point in the history
  • Loading branch information
rnickles committed Mar 6, 2024
1 parent cecc982 commit dc08fe5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/store/donate.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion features/donations/monthly_donation_user_view.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion features/step_definitions/option_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit dc08fe5

Please sign in to comment.