mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Taxon][Behat] Fix behat step
This commit is contained in:
parent
414669609a
commit
3f86a5b8ce
4 changed files with 9 additions and 9 deletions
|
|
@ -12,7 +12,7 @@ Feature: Adding images to an existing taxon
|
|||
@ui @javascript
|
||||
Scenario: Adding a single image to an existing taxon
|
||||
Given I want to modify the "T-Shirts" taxon
|
||||
When I attach "t-shirts.jpg" image with a code "banner"
|
||||
When I attach the "t-shirts.jpg" image with a code "banner"
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
And this taxon should have an image with a code "banner"
|
||||
|
|
@ -20,8 +20,8 @@ Feature: Adding images to an existing taxon
|
|||
@ui @javascript
|
||||
Scenario: Adding multiple images to an existing taxon
|
||||
Given I want to modify the "T-Shirts" taxon
|
||||
When I attach "t-shirts.jpg" image with a code "banner"
|
||||
And I attach "t-shirts.jpg" image with a code "thumbnail"
|
||||
When I attach the "t-shirts.jpg" image with a code "banner"
|
||||
And I attach the "t-shirts.jpg" image with a code "thumbnail"
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
And this taxon should have an image with a code "banner"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Feature: Adding a new taxon with 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 "t-shirts.jpg" image with a code "banner"
|
||||
And I attach the "t-shirts.jpg" image with a code "banner"
|
||||
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
|
||||
|
|
@ -24,8 +24,8 @@ Feature: Adding a new taxon with 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 "t-shirts.jpg" image with a code "banner"
|
||||
And I attach "t-shirts.jpg" image with a code "thumbnail"
|
||||
And I attach the "t-shirts.jpg" image with a code "banner"
|
||||
And I attach the "t-shirts.jpg" image with a code "thumbnail"
|
||||
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
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ Feature: Removing images of an existing taxon
|
|||
@ui @javascript
|
||||
Scenario: Adding multiple images and removing a single image of a taxon
|
||||
Given I want to modify the "T-Shirts" taxon
|
||||
When I attach "t-shirts.jpg" image with a code "banner"
|
||||
And I attach "t-shirts.jpg" image with a code "thumbnail"
|
||||
When I attach the "t-shirts.jpg" image with a code "banner"
|
||||
And I attach the "t-shirts.jpg" image with a code "thumbnail"
|
||||
And I remove the first image
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ final class ManagingTaxonsContext implements Context
|
|||
}
|
||||
|
||||
/**
|
||||
* @When I attach :path image with a code :code
|
||||
* @When I attach the :path image with a code :code
|
||||
*/
|
||||
public function iAttachImageWithACode($path, $code)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue