[PaymentMethod][Behat] validate translations with unexisting locales

This commit is contained in:
Kamil Grygierzec 2024-03-26 15:30:00 +01:00
parent 99dba352d3
commit ca29b6bfce
No known key found for this signature in database
GPG key ID: 7F54EE42DAD4B9E9
2 changed files with 8 additions and 0 deletions

View file

@ -18,6 +18,13 @@ Feature: Payment method validation
Then I should be notified that code is required
And the payment method with name "Paypal Express Checkout" should not be added
@no-ui @api
Scenario: Trying to add a new payment method translation in unexisting language
When I want to modify the "Offline" payment method
And I name it "Offline" in "French (France)"
And I try to save my changes
Then I should be notified that the locale is not available
@ui @api
Scenario: Trying to add a new payment method with a too long code
When I want to create a new payment method with "Paypal Express Checkout" gateway factory

View file

@ -30,6 +30,7 @@ default:
- sylius.behat.context.api.admin.save
- sylius.behat.context.api.admin.response
- Sylius\Behat\Context\Api\Admin\ManagingPaymentMethodsContext
- sylius.behat.context.api.admin.translation
filters:
tags: "@managing_payment_methods&&@api"