minor #14960 Cover Api steps in paying offline during checkout as guest scenario (TheMilek)

This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                       |
| New feature?    | no                                                      |
| BC breaks?      | no                                                       |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  Cover Api steps in paying offline during checkout as guest scenario
  [ECS] Fix
This commit is contained in:
Jacob Tobiasz 2023-04-21 11:10:30 +02:00 committed by GitHub
commit 2861e60af1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View file

@ -20,9 +20,17 @@ Feature: Paying Offline during checkout as guest
And I confirm my order
Then I should see the thank you page
@ui
@ui @no-api
Scenario: Successfully placing an order using custom locale
Given I have product "PHP T-Shirt" in the cart
When I proceed through checkout process in the "French (France)" locale with email "john@example.com"
And I confirm my order
Then I should see the thank you page in "French (France)"
@api @no-ui
Scenario: Successfully placing an order using custom locale
Given I pick up cart in the "French (France)" locale
And I add product "PHP T-Shirt" to the cart
When I proceed through checkout process
And I confirm my order
Then my order's locale should be "French (France)"

View file

@ -12,6 +12,7 @@ default:
- sylius.behat.context.transform.channel
- sylius.behat.context.transform.country
- sylius.behat.context.transform.lexical
- sylius.behat.context.transform.locale
- sylius.behat.context.transform.payment
- sylius.behat.context.transform.product
- sylius.behat.context.transform.shared_storage

View file

@ -345,7 +345,7 @@ class Order extends BaseOrder implements OrderInterface
static function (int $subtotal, OrderItemInterface $item): int {
return $subtotal + $item->getSubtotal();
},
0
0,
);
}