forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
321 additions
and
24 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
features/admin/product/managing_products/reordering_product_images.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@managing_products | ||
Feature: Reordering product images | ||
In order to have the most important product image displayed first | ||
As an Administrator | ||
I want to be able to reorder product images | ||
|
||
Background: | ||
Given the store operates on a channel named "Web-US" in "USD" currency | ||
And the store has a product "Dice Brewing" priced at "$10.00" in "Web-US" channel | ||
And this product has an image "ford.jpg" with "small" type at position 0 | ||
And this product has an image "ford.jpg" with "medium" type at position 1 | ||
And this product has an image "ford.jpg" with "large" type at position 2 | ||
And I am logged in as an administrator | ||
|
||
@api @ui @mink:chromedriver | ||
Scenario: Reordering product images | ||
When I want to modify the images of "Dice Brewing" product | ||
And I change the "small" image position to 2 | ||
And I change the "medium" image position to 0 | ||
And I change the "large" image position to 1 | ||
Then I save my changes to the images | ||
And the one before last image on the list should have type "large" with position 1 | ||
And the last image on the list should have type small with position 2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@viewing_products | ||
Feature: Viewing a product's images on a product details page | ||
In order to see images of a product | ||
As a Visitor | ||
I want to be able to view a product's images | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
|
||
@api @ui @mink:chromedriver | ||
Scenario: Viewing a product's main image on a product details page | ||
Given the store has a product "Lamborghini Gallardo Model" | ||
And this product has an image "lamborghini.jpg" with "other" type at position 2 | ||
And this product has an image "lamborghini.jpg" with "main" type at position 1 | ||
When I check this product's details | ||
Then I should see the product name "Lamborghini Gallardo Model" | ||
And I should see a main image of type "main" | ||
|
||
@api @ui @mink:chromedriver | ||
Scenario: Viewing a products images in correct order | ||
Given the store has a product "Lamborghini Gallardo Model" | ||
And this product has an image "lamborghini.jpg" with "other" type at position 2 | ||
And this product has an image "lamborghini.jpg" with "thumbnail" type at position 1 | ||
When I check this product's details | ||
Then I should see the product name "Lamborghini Gallardo Model" | ||
And the main image should be of type "thumbnail" | ||
And the first thumbnail image should be of type "thumbnail" | ||
And the second thumbnail image should be of type "other" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.