Sylius/features/taxonomy/managing_taxons/adding_taxon_with_images.feature
Jan Goralski 6d3c706615
[Core] Images refactor
The `code` field name has been changed to `type`, and is no longer
unique; in addition it became editable upon editing by UI.
Product/Taxon `getImageByCode` has been refactored to `getImagesByType`,
now returning a collection, instead of a single image.
2017-02-06 13:16:22 +01:00

33 lines
1.4 KiB
Gherkin

@managing_taxons
Feature: Adding a new taxon with images
In order to categorize my merchandise
As an Administrator
I want to add a new taxon to the registry
Background:
Given the store is available in "English (United States)"
And I am logged in as an administrator
@ui @javascript
Scenario: Adding a new taxon with a single image
Given I want to create a new taxon
When I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)"
And I attach the "t-shirts.jpg" image with "banner" type
And I add it
Then I should be notified that it has been successfully created
And the "T-Shirts" taxon should appear in the registry
And this taxon should have an image with "banner" type
@ui @javascript
Scenario: Adding a new taxon with multiple images
Given I want to create a new taxon
When I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)"
And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "thumbnail" type
And I add it
Then I should be notified that it has been successfully created
And the "T-Shirts" taxon should appear in the registry
And this taxon should have an image with "banner" type
And it should also have an image with "thumbnail" type