mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 01:20:59 +00:00
[Behat] Reorganize inventory scenario tags
This commit is contained in:
parent
8f791584fc
commit
0809749257
4 changed files with 10 additions and 10 deletions
|
|
@ -8,7 +8,7 @@ Feature: Inability to add a specific product to the cart when it is out of stock
|
|||
Given the store operates on a single channel in "United States"
|
||||
And the store has a product "T-Shirt banana"
|
||||
|
||||
@ui @api
|
||||
@api @ui
|
||||
Scenario: Not being able to add a product to the cart when it is out of stock
|
||||
Given the product "T-Shirt banana" is out of stock
|
||||
When I check this product's details
|
||||
|
|
|
|||
|
|
@ -10,20 +10,20 @@ Feature: Prevent buying more products than available in a stock
|
|||
And "T-Shirt Mononoke" product is tracked by the inventory
|
||||
And there are 5 units of product "T-Shirt Mononoke" available in the inventory
|
||||
|
||||
@ui @javascript @api
|
||||
@api @ui @javascript
|
||||
Scenario: Preventing from adding more items to the cart than it's available in stock
|
||||
When I add 6 products "T-Shirt Mononoke" to the cart
|
||||
Then I should still be on product "T-Shirt Mononoke" page
|
||||
And I should be notified that this product does not have sufficient stock
|
||||
|
||||
@ui @javascript @api
|
||||
@api @ui @javascript
|
||||
Scenario: Preventing from adding more items to the cart than it's available in stock by adding same item twice
|
||||
When I add 5 products "T-Shirt Mononoke" to the cart
|
||||
And I add again 5 products "T-Shirt Mononoke" to the cart
|
||||
Then I should still be on product "T-Shirt Mononoke" page
|
||||
And I should be notified that this product does not have sufficient stock
|
||||
|
||||
@ui @javascript @api
|
||||
@api @ui @javascript
|
||||
Scenario: Allowing to add items to the cart if they are in stock
|
||||
When I add 4 products "T-Shirt Mononoke" to the cart
|
||||
Then I should not be notified that this product does not have sufficient stock
|
||||
|
|
|
|||
|
|
@ -13,14 +13,14 @@ Feature: Verifying inventory quantity on cart summary
|
|||
And this product is tracked by the inventory
|
||||
And there are 10 units of product "Black Dress" available in the inventory
|
||||
|
||||
@ui @api
|
||||
@api @ui
|
||||
Scenario: Being unable to save a cart with product that is out of stock
|
||||
Given I have added 3 products "Iron Maiden T-Shirt" to the cart
|
||||
When I change product "Iron Maiden T-Shirt" quantity to 6 in my cart
|
||||
And I update my cart
|
||||
Then I should be notified that this product has insufficient stock
|
||||
|
||||
@ui @no-api
|
||||
@no-api @ui
|
||||
Scenario: Preventing the cart recalculation when the form has errors
|
||||
Given I have added 3 products "Iron Maiden T-Shirt" to the cart
|
||||
And I have added 1 product "Black Dress" to the cart
|
||||
|
|
@ -31,7 +31,7 @@ Feature: Verifying inventory quantity on cart summary
|
|||
And I should see "Black Dress" with quantity 11 in my cart
|
||||
And my cart's total should be "$100.36"
|
||||
|
||||
@ui @api
|
||||
@api @ui
|
||||
Scenario: Placing an order with products that have sufficient quantity
|
||||
Given I have added 3 products "Iron Maiden T-Shirt" in the cart
|
||||
When I change product "Iron Maiden T-Shirt" quantity to 5 in my cart
|
||||
|
|
|
|||
|
|
@ -16,14 +16,14 @@ Feature: Being unable to buy products that are out of stock
|
|||
And the store allows paying Offline
|
||||
And I am a logged in customer
|
||||
|
||||
@ui @api
|
||||
@api @ui
|
||||
Scenario: Placing an order with products that have sufficient quantity
|
||||
When I add 3 products "Iron Maiden T-Shirt" to the cart
|
||||
And I proceed through checkout process
|
||||
And I confirm my order
|
||||
Then I should see the thank you page
|
||||
|
||||
@ui @api
|
||||
@api @ui
|
||||
Scenario: Being unable to place an order with product that is out of stock
|
||||
When I add 5 products "Iron Maiden T-Shirt" to the cart
|
||||
And I proceed through checkout process
|
||||
|
|
@ -32,7 +32,7 @@ Feature: Being unable to buy products that are out of stock
|
|||
Then I should not see the thank you page
|
||||
And I should be notified that product "Iron Maiden T-Shirt" does not have sufficient stock
|
||||
|
||||
@ui @api
|
||||
@api @ui
|
||||
Scenario: Being unable to place an order with products that are out of stock
|
||||
When I add 5 products "Iron Maiden T-Shirt" to the cart
|
||||
And I add 5 products "2Pac T-Shirt" to the cart
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue