Skip to content

Commit f8ed624

Browse files
authoredOct 21, 2022
minor #387 [Behat] Move scenario from Plus (TheMilek)
This PR was merged into the 1.3 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.3 | Bug fix? | no | New feature? | no Commits ------- 9d4ec40 [Behat] Move scenario from Plus
2 parents bc534f7 + 9d4ec40 commit f8ed624

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@refunds
2+
Feature: Validating refunding zero items
3+
In order not to make mistake during refunding
4+
As an Administrator
5+
I want not to be able to refund when none of items has been selected
6+
7+
Background:
8+
Given the store operates on a single channel in "United States"
9+
And the store has a product "Mr. Meeseeks T-Shirt" priced at "$10.00"
10+
And the store allows shipping with "Galaxy Post"
11+
And the store allows paying with "Space money"
12+
And there is a customer "rick.sanchez@wubba-lubba-dub-dub.com" that placed an order "#00000022"
13+
And the customer bought 2 "Mr. Meeseeks T-Shirt" products
14+
And the customer chose "Galaxy Post" shipping method to "United States" with "Space money" payment
15+
And I am logged in as an administrator
16+
17+
@ui @email
18+
Scenario: Being unable to refund zero items
19+
Given the order "#00000022" is already paid
20+
When I want to refund some units of order "#00000022"
21+
And I refund zero items
22+
Then I should be notified that at least one unit should be selected to refund
23+
And the customer "rick.sanchez@wubba-lubba-dub-dub.com" should not receive an email that some units have been refunded

‎tests/Behat/Context/Ui/RefundingContext.php

+1
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ public function theSelectedRefundPaymentMethodShouldBe(string $paymentMethod): v
357357

358358
/**
359359
* @Then email to :email with credit memo should not be sent
360+
* @Then the customer :email should not receive an email that some units have been refunded
360361
*/
361362
public function emailToWithCreditMemoShouldNotBeSent(string $email): void
362363
{

0 commit comments

Comments
 (0)
Please sign in to comment.