mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
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.
30 lines
1.3 KiB
Gherkin
30 lines
1.3 KiB
Gherkin
@managing_taxons
|
|
Feature: Changing images of an existing taxon
|
|
In order to change images of my categories
|
|
As an Administrator
|
|
I want to be able to changing images of an existing taxon
|
|
|
|
Background:
|
|
Given the store is available in "English (United States)"
|
|
And the store classifies its products as "T-Shirts"
|
|
And I am logged in as an administrator
|
|
|
|
@ui @javascript
|
|
Scenario: Changing a single image of a taxon
|
|
Given the "T-Shirts" taxon has an image "ford.jpg" with "banner" type
|
|
And I want to modify the "T-Shirts" taxon
|
|
When I change the image with the "banner" type to "t-shirts.jpg"
|
|
And I save my changes
|
|
Then I should be notified that it has been successfully edited
|
|
And this taxon should have an image with "banner" type
|
|
|
|
@ui @javascript
|
|
Scenario: Changing the type of image of a taxon
|
|
Given the "T-Shirts" taxon has an image "ford.jpg" with "thumbnail" type
|
|
And the "T-Shirts" taxon also has an image "t-shirts.jpg" with "banner" type
|
|
And I want to modify the "T-Shirts" taxon
|
|
When I change the first image type to "banner"
|
|
And I save my changes
|
|
Then I should be notified that it has been successfully edited
|
|
And this taxon should still have 2 images
|
|
But it should not have any images with "thumbnail" type
|