Reorder the behat tags

This commit is contained in:
Kamil Grygierzec 2024-07-25 08:37:20 +02:00
parent c5d847334b
commit 9e43ac412f
No known key found for this signature in database
GPG key ID: 7F54EE42DAD4B9E9
8 changed files with 18 additions and 18 deletions

View file

@ -10,7 +10,7 @@ Feature: Adding a new coupon
And it is coupon based promotion
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Adding a new coupon
When I want to create a new coupon for this promotion
And I specify its code as "SANTA2016"

View file

@ -9,7 +9,7 @@ Feature: Browsing promotion coupons
And the store has promotion "Christmas sale" with coupon "SANTA2016"
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Browsing coupons of a promotion
When I want to view all coupons of this promotion
And there should be 1 coupon related to this promotion

View file

@ -10,7 +10,7 @@ Feature: Coupon validation
And it is coupon based promotion
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Trying to add a new coupon without specifying its code
When I want to create a new coupon for this promotion
And I do not specify its code
@ -21,7 +21,7 @@ Feature: Coupon validation
Then I should be notified that code is required
And there should be 0 coupons related to this promotion
@ui @api
@api @ui
Scenario: Trying to add a new coupon with a too long code
When I want to create a new coupon for this promotion
And I limit its usage to 30 times
@ -31,7 +31,7 @@ Feature: Coupon validation
And I try to add it
Then I should be notified that code is too long
@ui @api
@api @ui
Scenario: Trying to add a new coupon with usage limit below one
When I want to create a new coupon for this promotion
And I specify its code as "SANTA2016"
@ -42,7 +42,7 @@ Feature: Coupon validation
Then I should be notified that coupon usage limit must be at least one
And there should be 0 coupons related to this promotion
@ui @api
@api @ui
Scenario: Trying to add a new coupon with per customer usage limit below one
When I want to create a new coupon for this promotion
And I specify its code as "SANTA2016"

View file

@ -9,7 +9,7 @@ Feature: Deleting a coupon
And the store has promotion "Christmas sale" with coupon "SANTA2016"
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Deleted coupon should disappear from the registry
When I delete "SANTA2016" coupon related to this promotion
Then I should be notified that it has been successfully deleted

View file

@ -10,7 +10,7 @@ Feature: Deleting multiple coupons
And this promotion has "SANTA1", "SANTA2" and "SANTA3" coupons
And I am logged in as an administrator
@ui @mink:chromedriver @no-api
@no-api @ui @mink:chromedriver
Scenario: Deleting multiple coupons at once
When I browse coupons of this promotion
And I check the "SANTA1" coupon

View file

@ -9,7 +9,7 @@ Feature: Editing promotion coupon
And the store has promotion "Christmas sale" with coupon "SANTA2016"
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Changing coupon expires date
When I want to modify the "SANTA2016" coupon for this promotion
And I change its expiration date to "21.05.2019"
@ -17,7 +17,7 @@ Feature: Editing promotion coupon
Then I should be notified that it has been successfully edited
And this coupon should be valid until "21.05.2019"
@ui @api
@api @ui
Scenario: Changing coupons usage limit
When I want to modify the "SANTA2016" coupon for this promotion
And I change its usage limit to 50
@ -25,7 +25,7 @@ Feature: Editing promotion coupon
Then I should be notified that it has been successfully edited
And this coupon should have 50 usage limit
@ui @api
@api @ui
Scenario: Changing coupons per customer usage limit
When I want to modify the "SANTA2016" coupon for this promotion
And I change its per customer usage limit to 20
@ -33,7 +33,7 @@ Feature: Editing promotion coupon
Then I should be notified that it has been successfully edited
And this coupon should have 20 per customer usage limit
@ui @api
@api @ui
Scenario: Changing whether it can be reused from cancelled orders
When I want to modify the "SANTA2016" coupon for this promotion
And I make it not reusable from cancelled orders
@ -41,7 +41,7 @@ Feature: Editing promotion coupon
Then I should be notified that it has been successfully edited
And this coupon should not be reusable from cancelled orders
@ui @api
@api @ui
Scenario: Being unable to change code of promotion coupon
When I want to modify the "SANTA2016" coupon for this promotion
Then I should not be able to edit its code

View file

@ -15,7 +15,7 @@ Feature: Not being able to delete a coupon which is in use
And the customer chose "Free" shipping method to "United States" with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Being unable to delete a used coupon
When I try to delete "SANTA2016" coupon related to this promotion
Then I should be notified that it is in use and cannot be deleted

View file

@ -19,27 +19,27 @@ Feature: Sorting listed coupons
And this coupon expires on "20-02-2023"
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Coupons are sorted by descending number of uses by default
When I want to view all coupons of this promotion
Then I should see 3 coupons on the list
And the first coupon should have code "Y"
@ui @api
@api @ui
Scenario: Changing the number of uses sorting order to ascending
Given I am browsing coupons of this promotion
When I sort coupons by ascending number of uses
Then I should see 3 coupons on the list
And the first coupon should have code "X"
@ui @api
@api @ui
Scenario: Sorting coupons by code in descending order
Given I am browsing coupons of this promotion
When I sort coupons by descending code
Then I should see 3 coupons on the list
And the first coupon should have code "Z"
@ui @api
@api @ui
Scenario: Sorting coupons by code in ascending order
Given I am browsing coupons of this promotion
When I sort coupons by ascending code