-
Notifications
You must be signed in to change notification settings - Fork 61
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
8 changed files
with
170 additions
and
201 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@wishlist | ||
@wishlist @api_wishlist | ||
Feature: Adding a product to wishlist | ||
In order to compare or buy products later | ||
As a Visitor | ||
|
@@ -41,3 +41,77 @@ Feature: Adding a product to wishlist | |
And I log out | ||
And I log in again | ||
Then I should have one item in my wishlist | ||
|
||
@api | ||
Scenario: Adding a product to wishlist with API as an anonymous user | ||
Given user has a wishlist | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
When user adds product "Jack Daniels Gentleman" to the wishlist | ||
Then user should have product "Jack Daniels Gentleman" in the wishlist | ||
|
||
@api | ||
Scenario: Adding a product to wishlist with API as an authenticated user | ||
Given there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
When user has a wishlist | ||
And user adds product "Jack Daniels Gentleman" to the wishlist | ||
Then user should have product "Jack Daniels Gentleman" in the wishlist | ||
|
||
@api | ||
Scenario: Anonymous user tries to add product to another user's wishlist with API | ||
Given there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
When user has a wishlist | ||
And user is unauthenticated | ||
Then user tries to add product "Jack Daniels Gentleman" to the wishlist | ||
|
||
@api | ||
Scenario: Authenticated user tries to add product to another user's wishlist with API | ||
Given there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
When user has a wishlist | ||
And there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
Then user tries to add product "Jack Daniels Gentleman" to the wishlist | ||
|
||
@api | ||
Scenario: Adding a product variant to wishlist with API as an anonymous user | ||
Given user has a wishlist | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
And the product "Jack Daniels Gentleman" has a "700ML" variant priced at "$10.00" | ||
When user adds "700ML" product variant to the wishlist | ||
Then user should have "700ML" product variant in the wishlist | ||
|
||
@api | ||
Scenario: Adding a product variant to wishlist with API as an authenticated user | ||
Given there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
And user has a wishlist | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
And the product "Jack Daniels Gentleman" has a "700ML" variant priced at "$10.00" | ||
When user adds "700ML" product variant to the wishlist | ||
Then user should have "700ML" product variant in the wishlist | ||
|
||
@api | ||
Scenario: Anonymous user tries to add product variant to another user's wishlist with API | ||
Given there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
And the product "Jack Daniels Gentleman" has a "700ML" variant priced at "$10.00" | ||
When user has a wishlist | ||
And user is unauthenticated | ||
Then user tries to add "700ML" product variant to the wishlist | ||
|
||
@api | ||
Scenario: Authenticated user tries to add product to another user's wishlist with API | ||
Given there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
And the store has a product "Jack Daniels Gentleman" priced at "$10.00" | ||
And the product "Jack Daniels Gentleman" has a "700ML" variant priced at "$10.00" | ||
When user has a wishlist | ||
And there is a user "[email protected]" | ||
And user "[email protected]" "sylius" is authenticated | ||
Then user tries to add "700ML" product variant to the wishlist |
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 was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
features/api/adding_product_to_wishlist_on_multiple_channels.feature
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
features/api/removing_product_variant_from_wishlist.feature
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.