Cover Api steps in paying offline during checkout as guest scenario

This commit is contained in:
TheMilek 2023-04-20 15:42:01 +02:00
parent db561c9b1f
commit c08deaff33
No known key found for this signature in database
GPG key ID: 2E44205E7374692F
2 changed files with 10 additions and 1 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