Skip to content

Commit

Permalink
[API][Shop] Enable covered Product scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Aug 22, 2024
1 parent 299b0f2 commit 455adfe
Show file tree
Hide file tree
Showing 35 changed files with 78 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Accessing a disabled taxon
Background:
Given the store operates on a single channel in "United States"

@ui @no-api
@no-api @ui
Scenario: Accessing a disabled taxon
Given the store has "T-Shirts" taxonomy
And the "T-Shirts" taxon is disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Viewing a product details using permalink
Given the store operates on a single channel in "United States"
And the store has a product "T-Shirt banana"

@ui @no-api
@no-api @ui
Scenario: Accessing a detailed product page using permalink
When I open page "en_US/products/t-shirt-banana"
Then I should be on "T-Shirt banana" product detailed page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Accessing a product which does not exist
Background:
Given the store operates on a single channel in "United States"

@ui @api
@api @ui
Scenario: Accessing a product which does not exist
When I try to reach nonexistent product
Then I should be informed that the product does not exist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Redirecting to products when there is a trailing slash in path
And the store has a product "Plastic Tomato" available in "Poland" channel
And this product belongs to "Funny"

@ui @no-api
@no-api @ui
Scenario: Redirecting to products when there is a trailing slash in path
When I try to browse products from taxon "T-Shirts" with a trailing slash in the path
Then I should be redirected on the product list from taxon "T-Shirts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ Feature: Searching products by name within a specific taxon
And the store has a product "Magic stick" available in "United States" channel
And this product belongs to "Fantasy weapons"

@ui @api
@api @ui
Scenario: Searching for products with name containing specific text
When I browse products from taxon "Guns"
And I search for products with name "Magnum"
Then I should see the product "44 Magnum"
And I should not see the product "Glock 17"

@ui @api
@api @ui
Scenario: Clearing filters
When I browse products from taxon "Guns"
And I search for products with name "Magnum"
And I clear filter
Then I should see the product "44 Magnum"
And I should see the product "Glock 17"

@ui @api
@api @ui
Scenario: Seeing products only from specific taxon after search
When I browse products from taxon "Guns"
And I search for products with name "Mag"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Feature: Sorting products by first variant price
And the product "Johnnie Walker" has "Johnnie Walker Red Label" variant priced at "$20.00"
And the product "Johnnie Walker" has "Johnnie Walker Blue Label" variant priced at "$125.00"

@todo-api @ui
@api @ui
Scenario: Sorting products by price of their first variant with ascending order
When I browse products from taxon "Whiskey"
And I sort products by the lowest price first
Then the first product on the list should have name "Johnnie Walker" and price "$20.00"
And the last product on the list should have name "Jack Daniel's" and price "$50.00"

@todo-api @ui
@api @ui
Scenario: Sorting products by price of their first variant with descending order
When I browse products from taxon "Whiskey"
And I sort products by the highest price first
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature: Sorting products by discounted price
And the product "Mug" has "Symfony Mug" variant priced at "$30.00"
And there is a catalog promotion "Mugs sale" that reduces price by "25%" and applies on "PHP Mug" variant and "Symfony Mug" variant

@todo-api @ui
@api @ui
Scenario: Sorting products by discounted price of their first variant with ascending order
When I browse products from taxon "Merchandise"
And I sort products by the lowest price first
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Feature: Viewing children taxons of current taxon
And the "Clothes" taxon has children taxons "T-Shirts", "Coats" and "Trousers"
And channel "United States" has menu taxon "Category"

@todo-api @ui
@api @ui
Scenario: Viewing only enabled taxons in the vertical menu
Given the "Coats" taxon is disabled
When I try to browse products from taxon "Clothes"
Then I should not see "Coats" in the vertical menu
And I should see "T-Shirts" and "Trousers" in the vertical menu

@ui @no-api
@no-api @ui
Scenario: Cannot navigate to disabled parent taxon
Given the "Clothes" taxon is disabled
When I try to browse products from taxon "T-Shirts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Feature: Viewing diagonal variants options
Then I should be able to select the "Yellow" and "Blue" Color option values
And I should be able to select the "Small" and "Large" Size option values

@ui @javascript @no-api
@no-api @ui @javascript
Scenario: Viewing an "Unavailable" message when selecting an unavailable combination
When I view product "Extra Cool T-Shirt"
And I select its color as "Blue"
And I select its size as "Small"
Then I should see that the combination is "Unavailable"
And I should be unable to add it to the cart

@todo-api @no-ui
@api @no-ui
Scenario: Not seeing unavailable variants
When I view variants of the "Extra Cool T-Shirt" product
And I filter them by "Blue" option value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ Feature: Viewing different discounted price for different product variants
And the product "Wyborowa Vodka" has "Wyborowa Pear" variant priced at "$30.00"
And the "Wyborowa Pear" product variant has original price at "$20.00"

@ui @api
@api @ui
Scenario: Viewing a detailed page with default variant's price without discount
When I view product "Wyborowa Vodka"
Then the product price should be "$40.00"
And I should not see any original price

@ui @javascript @api
@api @ui @javascript
Scenario: Viewing a detailed page with product's discount price for different variant
When I view product "Wyborowa Vodka"
And I select "Wyborowa Apple" variant
Then the product variant price should be "$12.55"
And the product original price should be "$20.00"

@ui @javascript @no-api
@no-api @ui @javascript
Scenario: Not seeing the discount when a variant's original price is lower than current price
When I view product "Wyborowa Vodka"
And I select "Wyborowa Pear" variant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Feature: Viewing different price for different product variants
And the product "Wyborowa Vodka" has "Wyborowa Apple" variant priced at "$12.55"
And the "Wyborowa Lemon" product variant is disabled

@ui @api
@api @ui
Scenario: Viewing a detailed page with default variant's price
When I view product "Wyborowa Vodka"
Then the product price should be "$40.00"

@ui @api @javascript
@api @ui @javascript
Scenario: Viewing a detailed page with product's price for different variant
When I view product "Wyborowa Vodka"
And I select "Wyborowa Apple" variant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Feature: Viewing different price for different product variants selected with op
And this product is available in "0,5L" volume priced at "$20.00"
And this product is available in "0,7L" volume priced at "$25.00"

@ui @no-api
@no-api @ui
Scenario: Viewing a detailed page with product's price
When I view product "Wyborowa Vodka"
Then I should see the product price "$20.00"

@ui @javascript @no-api
@no-api @ui @javascript
Scenario: Viewing a detailed page with product's price for different option
When I view product "Wyborowa Vodka"
And I select its volume as "0,7L"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: Viewing a product details
And the store has a product "T-Shirt banana"
And the description of product "T-Shirt banana" is "You must have this beautiful T-Shirt"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's name
When I check this product's details
Then I should see the product name "T-Shirt banana"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,84 +7,84 @@ Feature: Viewing product's attributes
Background:
Given the store operates on a single channel in "United States"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's text attribute
Given the store has a product "T-Shirt banana"
And this product has a text attribute "T-Shirt material" with value "Banana skin"
When I check this product's details
Then I should see the product attribute "T-Shirt material" with value "Banana skin"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's non-translatable text attribute
Given the store has a product "T-Shirt banana"
And this product has non-translatable text attribute "T-Shirt details" with value "Banana is a very good material."
When I check this product's details
Then I should see the product attribute "T-Shirt details" with value "Banana is a very good material."

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's textarea attribute
Given the store has a product "T-Shirt banana"
And this product has a textarea attribute "T-Shirt details" with value "Banana is a very good material."
When I check this product's details
Then I should see the product attribute "T-Shirt details" with value "Banana is a very good material."

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's non-translatable textarea attribute
Given the store has a product "T-Shirt banana"
And this product has non-translatable textarea attribute "T-Shirt details" with value "Banana is a very good material."
When I check this product's details
Then I should see the product attribute "T-Shirt details" with value "Banana is a very good material."

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's checkbox attribute
Given the store has a product "T-Shirt banana"
And this product has a "checkbox" attribute "T-Shirt with cotton" set to "Yes"
When I check this product's details
Then I should see the product attribute "T-Shirt with cotton" with positive value

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's checkbox non-translatable attribute
Given the store has a product "T-Shirt banana"
And this product has non-translatable "checkbox" attribute "T-Shirt with cotton" set to "Yes"
When I check this product's details
Then I should see the product attribute "T-Shirt with cotton" with positive value

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's date attribute
Given the store has a product "T-Shirt banana"
And this product has a date attribute "T-Shirt date of production" with date "12 December 2015"
When I check this product's details
Then I should see the product attribute "T-Shirt date of production" with date "Dec 12, 2015"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's date non-translatable attribute
Given the store has a product "T-Shirt banana"
And this product has non-translatable date attribute "T-Shirt date of production" with date "12 December 2015"
When I check this product's details
Then I should see the product attribute "T-Shirt date of production" with date "Dec 12, 2015"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's datetime attribute
Given the store has a product "T-Shirt banana"
And this product has non-translatable datetime attribute "T-Shirt date of production" with date "12 December 2015 12:34"
When I check this product's details
Then I should see the product attribute "T-Shirt date of production" with date "Dec 12, 2015 12:34:00 PM"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's datetime non-translatable attribute
Given the store has a product "T-Shirt banana"
And this product has non-translatable datetime attribute "T-Shirt date of production" with date "12 December 2015 12:34"
When I check this product's details
Then I should see the product attribute "T-Shirt date of production" with date "Dec 12, 2015 12:34:00 PM"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's percent attribute
Given the store has a product "T-Shirt banana"
And this product has a percent attribute "T-Shirt cotton content" with value 50%
When I check this product's details
Then I should see the product attribute "T-Shirt cotton content" with value 50%

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's percent non-translatable attribute
Given the store has a product "T-Shirt banana"
And this product has non-translatable percent attribute "T-Shirt cotton content" with value 50%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Viewing product's attributes in different locales
And this product has a text attribute "T-Shirt material" with value "Skórka banana" in "Polish (Poland)" locale
And this product has a textarea attribute "T-Shirt details" with value "Banana is a very good material." in "English (United States)" locale

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's text attribute after locale change
When I view product "T-Shirt banana" in the "Polish (Poland)" locale
Then I should see the product attribute "T-Shirt material" with value "Skórka banana"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ Feature: Viewing product's attributes in different locales and channels
And this product has a textarea attribute "T-Shirt details" with value "Banana is a very good material." in "English (United States)" locale
And I am browsing the channel "US Channel"

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's attribute for current channel with its default locale
When I view product "T-Shirt banana" in the "Polish (Poland)" locale
Then I should see the product attribute "T-Shirt material" with value "Skórka banana"
And I should also see the product attribute "T-Shirt details" with value "Banana is a very good material."

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's attribute for current channel in different locale
When I view product "T-Shirt banana" in the "English (United States)" locale
Then I should see the product attribute "T-Shirt material" with value "Banana skin"
And I should also see the product attribute "T-Shirt details" with value "Banana is a very good material."

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's attribute for different channel with its default locale
When I change my current channel to "PL Channel"
And I view product "T-Shirt banana" in the "Polish (Poland)" locale
Then I should see the product attribute "T-Shirt material" with value "Skórka banana"
And I should also see the product attribute "T-Shirt details" with value "Banana is a very good material."

@ui @api
@api @ui
Scenario: Viewing a detailed page with product's attribute for different channel in different locale
When I change my current channel to "PL Channel"
And I view product "T-Shirt banana" in the "English (United States)" locale
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Feature: Viewing product's average rating
And this product has accepted reviews rated 5, 3, 4, 4 and 1
And I am a logged in customer

@ui @api
@api @ui
Scenario: Viewing product's average rating
When I check this product's details
Then I should see "3.4" as its average rating

@ui @api
@api @ui
Scenario: Viewing product's average rating calculated only from accepted reviews
Given this product also has accepted reviews rated 5, 4 and 1
And this product also has review rated 3 which is not accepted yet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Viewing product's enabled variants only
And the product "Super Cool T-Shirt" has also an "Extra Large" variant
And the "Extra Large" product variant is disabled

@todo-api @ui
@api @ui
Scenario: Seeing only enabled variants
When I view product "Super Cool T-Shirt"
Then I should be able to select between 3 variants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Feature: Viewing a product price on products list
Background:
Given the store operates on a single channel in "United States"

@ui @api
@api @ui
Scenario: Viewing a product with price on list
Given the store has a product "T-Shirt watermelon" priced at "$19.00"
And the store classifies its products as "T-Shirts"
And this product belongs to "T-Shirts"
When I browse products from taxon "T-Shirts"
Then I should see the product "T-Shirt watermelon" with price "$19.00"

@ui @api
@api @ui
Scenario: Viewing a product with discount on list
Given the store has a product "T-Shirt watermelon" priced at "$19.00"
And the product "T-Shirt watermelon" has original price "$20.00"
Expand All @@ -24,7 +24,7 @@ Feature: Viewing a product price on products list
When I browse products from taxon "T-Shirts"
Then I should see "T-Shirt watermelon" product discounted from "$20.00" to "$19.00"

@ui @no-api
@no-api @ui
Scenario: Not seeing discount on the list when the original price is lower than current price
Given the store has a product "T-Shirt watermelon" priced at "$19.00"
And the product "T-Shirt watermelon" has original price "$18.00"
Expand All @@ -34,7 +34,7 @@ Feature: Viewing a product price on products list
Then I should see the product "T-Shirt watermelon" with price "$19.00"
And I should see "T-Shirt watermelon" product not discounted on the list

@ui @api
@api @ui
Scenario: Viewing a product with a positioned default variant
Given the store has a product "T-Shirt watermelon" priced at "$19.00"
And the product "T-Shirt watermelon" has also an "Extra Large" variant at position 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Feature: Viewing product's variants names
And it has variant named "Die Hard - Extended Cut" in "English (United States)" locale and "Szklana Pułapka - Wersja Reżyserska" in "Polish (Poland)" locale
And this product has also variant named "Die Hard - Theatrical Cut" in "English (United States)" locale and "Szklana Pułapka - Wersja Kinowa" in "Polish (Poland)" locale

@ui @api
@api @ui
Scenario: Seeing variant's name in default locale
When I view product "Die Hard Movie"
Then its current variant should be named "Die Hard - Extended Cut"

@ui @api
@api @ui
Scenario: Seeing proper variant's name after locale change
When I view product "Die Hard Movie" in the "Polish (Poland)" locale
Then its current variant should be named "Szklana Pułapka - Wersja Reżyserska"
Loading

0 comments on commit 455adfe

Please sign in to comment.