mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
35 lines
1.5 KiB
Gherkin
35 lines
1.5 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
|
|
|
|
@no-api @ui @mink:chromedriver
|
|
Scenario: Adding a new taxon with a single image
|
|
When I want to create a new taxon
|
|
And I specify its code as "t-shirts"
|
|
And I name it "T-Shirts" in "English (United States)"
|
|
And I set its slug to "t-shirts"
|
|
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
|
|
|
|
@no-api @ui @mink:chromedriver
|
|
Scenario: Adding a new taxon with multiple images
|
|
When I want to create a new taxon
|
|
And I specify its code as "t-shirts"
|
|
And I name it "T-Shirts" in "English (United States)"
|
|
And I set its slug to "t-shirts"
|
|
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
|