Skip to content

Commit

Permalink
Need a second look
Browse files Browse the repository at this point in the history
  • Loading branch information
PratyushSharma14 committed Mar 6, 2024
1 parent 2fdb37f commit fb1a074
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions features/donations/monthly_donation_admin_view.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,21 @@ Feature: allow recurring donations
I want to allow recurring donations

Background:

Given I am logged in as administrator
And I visit the admin:settings page

Scenario: Allow Monthly Recurring Donations
When I set "Allow Recurring Donations" to "Yes"
When I set "allow_recurring_donations" to "Yes"
And I press "Update Settings"
And I should see "Update successful"
Then the radio button to select the default donation type should be "visible"
When I go to the donation default page
Then I should see "frequency"



Scenario: Disallow Monthly Recurring Donations
When I am logged in as administrator
And I visit the admin:settings page
When I visit the admin:settings page
And I set "Allow Recurring Donations" to "No"
And I press "Update Settings"
Then the radio button to select the default donation type should be "hidden"


Scenario: Customer Shouldn't See Monthly Option
When I switch to customer "Joe Mallon"
And I go to the quick donation page
And I should not see "Donation frequency"
When I go to the donation default page
Then I should not see "frequency"

0 comments on commit fb1a074

Please sign in to comment.