mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Enable tests for placing an orders in chosen locale (#17060)
| Q | A |-----------------|----- | Branch? | 2.0 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | n/a | License | MIT
This commit is contained in:
commit
4549e2fa42
4 changed files with 4 additions and 6 deletions
|
|
@ -1,5 +1,3 @@
|
|||
live_component:
|
||||
resource: '@LiveComponentBundle/config/routes.php'
|
||||
prefix: '/_components'
|
||||
# adjust prefix to add localization to your components
|
||||
#prefix: '/{_locale}/_components'
|
||||
prefix: '/{_locale}/_components'
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Feature: Receiving confirmation email after finalizing checkout
|
|||
When I confirm my order
|
||||
Then an email with the summary of order placed by "john@example.com" should be sent to him
|
||||
|
||||
@api @todo-ui @javascript @email
|
||||
@api @ui @javascript @email
|
||||
Scenario: Receiving confirmation email after finalizing checkout in different locale than the default one
|
||||
Given I have product "Sig Sauer P226" in the cart
|
||||
And I have proceeded through checkout process in the "Polish (Poland)" locale with email "john@example.com"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Feature: Seeing order locale on order summary page
|
|||
Then I should be on the checkout summary step
|
||||
And my order's locale should be "English (United States)"
|
||||
|
||||
@no-api @todo-ui @javascript
|
||||
@no-api @ui @javascript
|
||||
Scenario: Seeing order locale on the order summary page after change channel locale
|
||||
Given I have product "Stark T-Shirt" in the cart
|
||||
When I proceed through checkout process in the "French (France)" locale
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ final class CheckoutCompleteContext implements Context
|
|||
* @Then I should be on the checkout complete step
|
||||
* @Then I should be on the checkout summary step
|
||||
*/
|
||||
public function iShouldBeOnTheCheckoutCompleteStep()
|
||||
public function iShouldBeOnTheCheckoutCompleteStep(): void
|
||||
{
|
||||
$this->completePage->verify();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue