[Behat] Migrate shop promotion tests to chromedriver

This commit is contained in:
Rafikooo 2025-11-28 17:39:57 +01:00
parent ed16d2e369
commit 9da6d2a024
No known key found for this signature in database
GPG key ID: 4A26D8327BC2442B
5 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ Feature: Applying catalog promotions for product
When I view "PHP T-Shirt" variant of the "T-Shirt" product
Then I should see this variant is discounted from "$20.00" to "$10.00" with "Winter sale" promotion
@api @ui @javascript
@api @ui @mink:chromedriver
Scenario: Applying simple catalog promotion on another variant
When I view "Java T-Shirt" variant of the "T-Shirt" product
Then I should see this variant is discounted from "$30.00" to "$15.00" with "Winter sale" promotion

View file

@ -20,20 +20,20 @@ Feature: Seeing applied catalog promotions on products configured with the optio
When I view product "T-Shirt"
Then I should see this product is discounted from "$20.00" to "$10.00" with "Winter sale" promotion
@no-api @ui @javascript
@no-api @ui @mink:chromedriver
Scenario: Seeing applied catalog promotion on the product with non default option
When I view product "T-Shirt"
And I select its "Size" as "L"
Then I should see this product is discounted from "$50.00" to "$37.50" with "Surprise sale" promotion
@no-api @ui @javascript
@no-api @ui @mink:chromedriver
Scenario: Seeing applied catalog promotion on the product after changing the options multiple times
When I view product "T-Shirt"
And I select its "Size" as "L"
And I select its "Size" as "S"
Then I should see this product is discounted from "$20.00" to "$10.00" with "Winter sale" promotion
@no-api @ui @javascript
@no-api @ui @mink:chromedriver
Scenario: Seeing no applied catalog promotion on the product option without applied catalog promotion
When I view product "T-Shirt"
And I select its "Size" as "M"

View file

@ -16,7 +16,7 @@ Feature: Seeing applied catalog promotions on variant
When I view "PHP T-Shirt" variant of the "T-Shirt" product
Then I should see this variant is discounted from "$20.00" to "$10.00" with "Winter sale" promotion
@api @ui @javascript
@api @ui @mink:chromedriver
Scenario: Seeing no applied catalog promotion on variant
When I view "Sylius T-Shirt" variant of the "T-Shirt" product
Then I should see this variant is not discounted

View file

@ -11,7 +11,7 @@ Feature: Applying promotion coupon
And this promotion gives "$10.00" discount to every order
And I am a logged in customer
@api @ui @javascript
@api @ui @mink:chromedriver
Scenario: Receiving fixed discount for my cart
Given I added product "PHP T-Shirt" to the cart
When I check the details of my cart
@ -19,7 +19,7 @@ Feature: Applying promotion coupon
Then my cart total should be "$90.00"
And my discount should be "-$10.00"
@api @ui @javascript
@api @ui @mink:chromedriver
Scenario: Receiving no discount if promotion for the applied coupon is invalid
Given I added product "PHP T-Shirt" to the cart
When I check the details of my cart

View file

@ -11,7 +11,7 @@ Feature: Removing promotion coupon
And this promotion gives "$10.00" discount to every order
And I am a logged in customer
@api @ui @javascript
@api @ui @mink:chromedriver
Scenario: Removing coupon code from cart
Given I added product "PHP T-Shirt" to the cart
And this cart has promotion applied with coupon "SANTA2016"