-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from FLUX-SE/fix-double-admin-actions
[FIX] double admin actions
- Loading branch information
Showing
27 changed files
with
927 additions
and
306 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
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
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,25 @@ | ||
@managing_orders | ||
Feature: Canceling an authorized order | ||
In order to cancel an order already authorized | ||
As an Administrator | ||
I want to be able to cancel a Stripe authorized order | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Green Arrow" | ||
And the store ships everywhere for free | ||
And the store has a payment method "Stripe" with a code "stripe" and Stripe payment gateway using authorize | ||
And there is a customer "[email protected]" that placed an order "#00000001" | ||
And the customer bought a single "Green Arrow" | ||
And the customer chose "Free" shipping method to "United States" with "Stripe" payment | ||
And this order is already authorized as "pi_123" Stripe payment intent | ||
And I am logged in as an administrator | ||
|
||
@ui | ||
Scenario: Initializing the Stripe refund | ||
Given I am viewing the summary of this order | ||
And I am prepared to cancel this order | ||
When I cancel this order | ||
Then I should be notified that it has been successfully updated | ||
And it should have payment with state cancelled | ||
And it should have payment state cancelled |
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,25 @@ | ||
@managing_orders | ||
Feature: Canceling an order | ||
In order to cancel a not paid order | ||
As an Administrator | ||
I want to be able to cancel a Stripe not paid order | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Green Arrow" | ||
And the store ships everywhere for free | ||
And the store has a payment method "Stripe" with a code "stripe" and Stripe payment gateway without using authorize | ||
And there is a customer "[email protected]" that placed an order "#00000001" | ||
And the customer bought a single "Green Arrow" | ||
And the customer chose "Free" shipping method to "United States" with "Stripe" payment | ||
And this order is not yet paid as "cs_123" Stripe checkout session | ||
And I am logged in as an administrator | ||
|
||
@ui | ||
Scenario: Initializing the Stripe refund | ||
Given I am viewing the summary of this order | ||
And I am prepared to expire the checkout session this order | ||
When I cancel this order | ||
Then I should be notified that it has been successfully updated | ||
And it should have payment with state cancelled | ||
And it should have payment state cancelled |
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,25 @@ | ||
@managing_orders | ||
Feature: Capturing the authorization of an order | ||
In order to complete a payment | ||
As an Administrator | ||
I want to be able to capture the authorization of a Stripe paid order | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Green Arrow" | ||
And the store ships everywhere for free | ||
And the store has a payment method "Stripe" with a code "stripe" and Stripe payment gateway using authorize | ||
And there is a customer "[email protected]" that placed an order "#00000001" | ||
And the customer bought a single "Green Arrow" | ||
And the customer chose "Free" shipping method to "United States" with "Stripe" payment | ||
And this order is already authorized as "pi_123" Stripe payment intent | ||
And I am logged in as an administrator | ||
|
||
@ui | ||
Scenario: Initializing the Stripe refund | ||
Given I am viewing the summary of this order | ||
And I am prepared to capture authorization of this order | ||
When I mark this order as paid | ||
Then I should be notified that the order's payment has been successfully completed | ||
And it should have payment with state completed | ||
And it should have payment state completed |
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,25 @@ | ||
@managing_orders | ||
Feature: Refunding an order | ||
In order to return the money to the Customer | ||
As an Administrator | ||
I want to be able to refund a Stripe paid order | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Green Arrow" | ||
And the store ships everywhere for free | ||
And the store has a payment method "Stripe" with a code "stripe" and Stripe payment gateway without using authorize | ||
And there is a customer "[email protected]" that placed an order "#00000001" | ||
And the customer bought a single "Green Arrow" | ||
And the customer chose "Free" shipping method to "United States" with "Stripe" payment | ||
And this order is already paid as "pi_123" Stripe payment intent | ||
And I am logged in as an administrator | ||
|
||
@ui | ||
Scenario: Initializing the Stripe refund | ||
Given I am viewing the summary of this order | ||
And I am prepared to refund this order | ||
When I mark this order's payment as refunded | ||
Then I should be notified that the order's payment has been successfully refunded | ||
And it should have payment with state refunded | ||
And it's payment state should be refunded |
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
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
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
Oops, something went wrong.