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:
Rafał Jaskulski 2024-10-01 08:27:12 +02:00 committed by GitHub
commit 4549e2fa42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 6 deletions

View file

@ -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'

View file

@ -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"

View file

@ -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

View file

@ -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();
}