Skip to content

Commit

Permalink
Change behat scenario to be more descriptive and remove unneded one
Browse files Browse the repository at this point in the history
  • Loading branch information
arti0090 committed Sep 14, 2021
1 parent b77b125 commit 5c748dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ Feature: Adding a product with selected variant with discounted catalog price to
Given the store operates on a single channel in "United States"
And the store has a product "T-Shirt"
And this product has "PHP T-Shirt" variant priced at "$20"
And the store has a product "Keyboard"
And this product has "RGB Keyboard" variant priced at "$40"
And there is a catalog promotion "Winter sale" that reduces price by "25%" and applies on "PHP T-Shirt" variant

@todo
Scenario: Adding a product with multiple variants with discounted catalog price to the cart
When I add "PHP T-Shirt" variant of this product to the cart
Then I should be on my cart summary page
And I should be notified that the product has been successfully added
And I should see "T-Shirt Banana" with unit price "$15.00" in my cart
Scenario: Adding multiple product variants with discounted price by catalog promotion catalog to the cart
Given I add product "PHP T-Shirt" to the cart
And I add product "RGB Keyboard" to the cart
When I check details of my cart
Then I should see "PHP T-Shirt" with unit price "$15.00" in my cart
And I should see "RGB Keyboard" with unit price "$40.00" in my cart
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,3 @@ Feature: Viewing different discounted price for different product variants
And I select "Wyborowa Apple" variant
Then the product variant price should be "$12.55"
And the product original price should be "$20.00"

@todo
Scenario: Viewing a detailed page with product's discounted catalog price for different variant
Given there is a catalog promotion "For apple drinks" that reduces price by "30%" and applies on "Wyborowa Apple" variant
When I view product "Wyborowa Vodka"
And I select "Wyborowa Apple" variant
Then the product variant price should be "$8,79"
And the product original price should be "$20.00"

0 comments on commit 5c748dc

Please sign in to comment.