Sylius/features/taxonomy/managing_taxons/adding_images_to_existing_taxon.feature
2022-03-11 09:20:29 +01:00

45 lines
2 KiB
Gherkin

@managing_taxons
Feature: Adding images to an existing taxon
In order to change images of my categories
As an Administrator
I want to be able to add new images to a 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: Adding a single image to an existing taxon
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image with "banner" type
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: Adding a single image to an existing taxon without specifying the type
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image
And I save my changes
Then I should be notified that it has been successfully edited
And this taxon should have only one image
@ui @javascript
Scenario: Adding multiple images to an existing taxon
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "thumbnail" type
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
And it should also have an image with "thumbnail" type
@ui @javascript
Scenario: Adding multiple images of the same type to an existing taxon
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "banner" type
And I save my changes
Then I should be notified that it has been successfully edited
And this taxon should have 2 images