forked from armandofox/audience1st
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f206cb
commit c9a77c7
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@javascript | ||
Feature: allow recurring donations | ||
As an admin | ||
So that customers can setup 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" | ||
Then the radio button to select the default donation type should be "visible" | ||
Then the radio button to select the default donation type should be set to "one" | ||
And I press "Update Settings" | ||
Then I should see "Update successful" | ||
|
||
Scenario: Disallow Monthly Recurring Donations | ||
When I visit the admin:settings page | ||
And I set allow recurring donations to "No" | ||
Then the radio button to select the default donation type should be "hidden" | ||
And I press "Update Settings" | ||
Then I should see "Update successful" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Feature: make a recurring donation through quick donation | ||
|
||
Background: | ||
Given I am logged in as customer "Tom Foolery" | ||
Given admin has allowed recurring donations | ||
Given admin "has" allowed recurring donations | ||
And I go to the quick donation page | ||
|
||
@stubs_successful_credit_card_payment | ||
Scenario: make donation | ||
Then I should see "frequency" | ||
When I select monthly in the donation frequency radio button | ||
When I fill in "Donation amount" with "15" | ||
And I press "Charge Donation to Credit Card" | ||
Then I should see "You have paid a total of $15.00 by Credit card" | ||
Then there should be a Recurring Donation model instance belonging to "Tom Foolery" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters