mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Behat] Add scenario for checking if attribute is correctly added with values
This commit is contained in:
parent
fd1834479d
commit
a959f7c4fc
2 changed files with 27 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
@managing_product_attributes
|
||||
Feature: Seeing correct select attribute values in different locale than default one
|
||||
In order to see correct attribute values in different locale than default one
|
||||
As and Administrator
|
||||
I should be able to create attribute with values in different locale than default one
|
||||
|
||||
Background:
|
||||
Given the store is available in "French (France)"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Seeing correct attribute values in different locale than default one
|
||||
When I want to create a new select product attribute
|
||||
And I specify its code as "mug_material"
|
||||
And I name it "Mug material" in "French (France)"
|
||||
And I add value "Banana Skin" in "French (France)"
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And it should see value "Banana Skin"
|
||||
|
|
@ -364,6 +364,14 @@ final class ManagingProductAttributesContext implements Context
|
|||
Assert::same(end($names), $name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^it should see value "([^"]*)"/
|
||||
*/
|
||||
public function theSelectAttributeShouldHaveValueInLocale(string $value): void
|
||||
{
|
||||
Assert::true($this->updatePage->hasAttributeValue($value));
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^(this product attribute) should have value "([^"]*)"/
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue