[Behat] Use "When" for user actions where possible

This commit is contained in:
Kevin Kaniaburka 2022-03-11 09:03:08 +01:00
parent c79a481bd0
commit 984488d94b
120 changed files with 551 additions and 551 deletions

View file

@ -11,16 +11,16 @@ Feature: Sign in to the store
@ui @api @ui @api
Scenario: Sign in with email and password Scenario: Sign in with email and password
Given I want to log in When I want to log in
When I specify the username as "admin@example.com" And I specify the username as "admin@example.com"
And I specify the password as "sylius" And I specify the password as "sylius"
And I log in And I log in
Then I should be logged in Then I should be logged in
@ui @api @ui @api
Scenario: Sign in with bad credentials Scenario: Sign in with bad credentials
Given I want to log in When I want to log in
When I specify the username as "admin@example.com" And I specify the username as "admin@example.com"
And I specify the password as "pswd" And I specify the password as "pswd"
And I log in And I log in
Then I should be notified about bad credentials Then I should be notified about bad credentials
@ -28,8 +28,8 @@ Feature: Sign in to the store
@ui @api @ui @api
Scenario: Sign in using customer account Scenario: Sign in using customer account
Given I want to log in When I want to log in
When I specify the username as "bear@example.com" And I specify the username as "bear@example.com"
And I specify the password as "bear" And I specify the password as "bear"
And I log in And I log in
Then I should be notified about bad credentials Then I should be notified about bad credentials

View file

@ -10,8 +10,8 @@ Feature: Channel unique code validation
@ui @ui
Scenario: Trying to add channel with taken code Scenario: Trying to add channel with taken code
Given I want to create a new channel When I want to create a new channel
When I specify its code as "WEB" And I specify its code as "WEB"
And I name it "Mobile channel" And I name it "Mobile channel"
And I try to add it And I try to add it
Then I should be notified that channel with this code already exists Then I should be notified that channel with this code already exists

View file

@ -9,8 +9,8 @@ Feature: Channel validation
@ui @ui
Scenario: Trying to add a new channel without specifying its code Scenario: Trying to add a new channel without specifying its code
Given I want to create a new channel When I want to create a new channel
When I name it "Mobile channel" And I name it "Mobile channel"
But I do not specify its code But I do not specify its code
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
@ -18,8 +18,8 @@ Feature: Channel validation
@ui @ui
Scenario: Trying to add a new channel without specifying its name Scenario: Trying to add a new channel without specifying its name
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
But I do not name it But I do not name it
And I try to add it And I try to add it
Then I should be notified that name is required Then I should be notified that name is required
@ -27,8 +27,8 @@ Feature: Channel validation
@ui @ui
Scenario: Trying to add a new channel without base currency Scenario: Trying to add a new channel without base currency
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
But I do not choose base currency But I do not choose base currency
And I try to add it And I try to add it
Then I should be notified that base currency is required Then I should be notified that base currency is required
@ -36,8 +36,8 @@ Feature: Channel validation
@ui @ui
Scenario: Trying to add a new channel without default locale Scenario: Trying to add a new channel without default locale
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
But I do not choose default locale But I do not choose default locale
And I try to add it And I try to add it
Then I should be notified that default locale is required Then I should be notified that default locale is required
@ -46,8 +46,8 @@ Feature: Channel validation
@ui @ui
Scenario: Trying to remove name from existing channel Scenario: Trying to remove name from existing channel
Given the store operates on a channel named "Web Channel" Given the store operates on a channel named "Web Channel"
And I want to modify this channel When I want to modify this channel
When I remove its name And I remove its name
And I try to save my changes And I try to save my changes
Then I should be notified that name is required Then I should be notified that name is required
And this channel should still be named "Web Channel" And this channel should still be named "Web Channel"

View file

@ -10,8 +10,8 @@ Feature: Editing channel
@todo @todo
Scenario: Trying to change channel code Scenario: Trying to change channel code
Given I want to modify a channel "Web Channel" When I want to modify a channel "Web Channel"
When I change its code to "MOBILE" And I change its code to "MOBILE"
And I save my changes And I save my changes
Then I should be notified that code cannot be changed Then I should be notified that code cannot be changed
And channel "Web Channel" should still have code "MOBILE" And channel "Web Channel" should still have code "MOBILE"
@ -23,8 +23,8 @@ Feature: Editing channel
@ui @ui
Scenario: Renaming the channel Scenario: Renaming the channel
Given I want to modify a channel "Web Channel" When I want to modify a channel "Web Channel"
When I rename it to "Website store" And I rename it to "Website store"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this channel name should be "Website store" And this channel name should be "Website store"

View file

@ -11,8 +11,8 @@ Feature: Not being able to add a disabled channel when no other exist
@ui @ui
Scenario: Adding a new disabled channel should result Scenario: Adding a new disabled channel should result
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
And I name it "Mobile channel" And I name it "Mobile channel"
And I choose "Euro" as the base currency And I choose "Euro" as the base currency
And I choose "English (United States)" as a default locale And I choose "English (United States)" as a default locale

View file

@ -11,8 +11,8 @@ Feature: Toggling a channel
@ui @ui
Scenario: Disabling the last available channel Scenario: Disabling the last available channel
Given the channel "Web Channel" is enabled Given the channel "Web Channel" is enabled
And I want to modify this channel When I want to modify this channel
When I disable it And I disable it
And I save my changes And I save my changes
Then I should be notified that at least one channel has to be defined Then I should be notified that at least one channel has to be defined
And channel with name "Web Channel" should still be enabled And channel with name "Web Channel" should still be enabled

View file

@ -11,8 +11,8 @@ Feature: Selecting available currencies for a channel
@ui @ui
Scenario: Adding a new channel with currencies Scenario: Adding a new channel with currencies
Given I want to create a new channel When I want to create a new channel
When I specify its code as MOBILE And I specify its code as MOBILE
And I name it "Mobile store" And I name it "Mobile store"
And I allow for paying in "Euro" And I allow for paying in "Euro"
And I choose "English (United States)" as a default locale And I choose "English (United States)" as a default locale
@ -23,8 +23,8 @@ Feature: Selecting available currencies for a channel
@ui @ui
Scenario: Adding currencies to an existing channel Scenario: Adding currencies to an existing channel
Given the store operates on a channel named "Web store" Given the store operates on a channel named "Web store"
And I want to modify this channel When I want to modify this channel
When I allow for paying in "Euro" And I allow for paying in "Euro"
And I choose "English (United States)" as a default locale And I choose "English (United States)" as a default locale
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited

View file

@ -10,8 +10,8 @@ Feature: Selecting default tax zone for a channel
@ui @ui
Scenario: Adding a new channel with default tax zone Scenario: Adding a new channel with default tax zone
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
And I name it "Mobile store" And I name it "Mobile store"
And I select the "United States" as default tax zone And I select the "United States" as default tax zone
And I choose "USD" as the base currency And I choose "USD" as the base currency
@ -23,8 +23,8 @@ Feature: Selecting default tax zone for a channel
@ui @ui
Scenario: Selecting default tax zone for existing channel Scenario: Selecting default tax zone for existing channel
Given the store operates on a channel named "Web store" Given the store operates on a channel named "Web store"
And I want to modify this channel When I want to modify this channel
When I select the "United States" as default tax zone And I select the "United States" as default tax zone
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the default tax zone for the "Web store" channel should be "United States" And the default tax zone for the "Web store" channel should be "United States"

View file

@ -11,8 +11,8 @@ Feature: Selecting available locales for a channel
@ui @ui
Scenario: Adding a new channel with locales Scenario: Adding a new channel with locales
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
And I name it "Mobile channel" And I name it "Mobile channel"
And I make it available in "English (United States)" And I make it available in "English (United States)"
And I choose "Euro" as the base currency And I choose "Euro" as the base currency
@ -24,8 +24,8 @@ Feature: Selecting available locales for a channel
@ui @ui
Scenario: Adding locales to an existing channel Scenario: Adding locales to an existing channel
Given the store operates on a channel named "Web Channel" Given the store operates on a channel named "Web Channel"
And I want to modify this channel When I want to modify this channel
When I make it available in "English (United States)" And I make it available in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the channel "Web channel" should be available in "English (United States)" And the channel "Web channel" should be available in "English (United States)"

View file

@ -11,8 +11,8 @@ Feature: Selecting tax calculation strategy for a channel
@ui @ui
Scenario: Adding a new channel with implicitly selected tax calculation strategy Scenario: Adding a new channel with implicitly selected tax calculation strategy
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
And I name it "Mobile store" And I name it "Mobile store"
And I choose "Euro" as the base currency And I choose "Euro" as the base currency
And I choose "English (United States)" as a default locale And I choose "English (United States)" as a default locale
@ -22,8 +22,8 @@ Feature: Selecting tax calculation strategy for a channel
@ui @ui
Scenario: Adding a new channel with tax calculation strategy Scenario: Adding a new channel with tax calculation strategy
Given I want to create a new channel When I want to create a new channel
When I specify its code as "MOBILE" And I specify its code as "MOBILE"
And I select the "Order item units based" as tax calculation strategy And I select the "Order item units based" as tax calculation strategy
And I name it "Mobile store" And I name it "Mobile store"
And I choose "Euro" as the base currency And I choose "Euro" as the base currency
@ -35,8 +35,8 @@ Feature: Selecting tax calculation strategy for a channel
@ui @ui
Scenario: Changing tax calculation strategy of existing channel Scenario: Changing tax calculation strategy of existing channel
Given the store operates on a channel named "Web store" Given the store operates on a channel named "Web store"
And I want to modify this channel When I want to modify this channel
When I select the "Order item units based" as tax calculation strategy And I select the "Order item units based" as tax calculation strategy
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the tax calculation strategy for the "Web store" channel should be "Order item units based" And the tax calculation strategy for the "Web store" channel should be "Order item units based"

View file

@ -12,8 +12,8 @@ Feature: Toggling a channel
@ui @ui
Scenario: Disabling the channel Scenario: Disabling the channel
Given the channel "Web Channel" is enabled Given the channel "Web Channel" is enabled
And I want to modify this channel When I want to modify this channel
When I disable it And I disable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this channel should be disabled And this channel should be disabled
@ -21,8 +21,8 @@ Feature: Toggling a channel
@ui @ui
Scenario: Enabling the channel Scenario: Enabling the channel
Given the channel "Web Channel" is disabled Given the channel "Web Channel" is disabled
And I want to modify this channel When I want to modify this channel
When I enable it And I enable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this channel should be enabled And this channel should be enabled

View file

@ -9,8 +9,8 @@ Feature: Adding a new currency
@ui @api @ui @api
Scenario: Adding a new currency Scenario: Adding a new currency
Given I want to add a new currency When I want to add a new currency
When I choose "Euro" And I choose "Euro"
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created
And the currency "Euro" should appear in the store And the currency "Euro" should appear in the store

View file

@ -10,8 +10,8 @@ Feature: Currency unique code validation
@ui @api @ui @api
Scenario: Trying to add currency with taken code Scenario: Trying to add currency with taken code
Given I want to add a new currency When I want to add a new currency
When I choose "Euro" And I choose "Euro"
And I try to add it And I try to add it
Then I should be notified that currency code must be unique Then I should be notified that currency code must be unique
And there should still be only one currency with code "EUR" And there should still be only one currency with code "EUR"

View file

@ -10,8 +10,8 @@ Feature: Adding a new exchange rate
@ui @api @ui @api
Scenario: Adding a new exchange rate Scenario: Adding a new exchange rate
Given I want to add a new exchange rate When I want to add a new exchange rate
When I specify its ratio as 1.20 And I specify its ratio as 1.20
And I choose "US Dollar" as the source currency And I choose "US Dollar" as the source currency
And I choose "British Pound" as the target currency And I choose "British Pound" as the target currency
And I add it And I add it

View file

@ -10,8 +10,8 @@ Feature: Exchange rate validation
@ui @api @ui @api
Scenario: Trying to add a new exchange rate without ratio Scenario: Trying to add a new exchange rate without ratio
Given I want to add a new exchange rate When I want to add a new exchange rate
When I choose "US Dollar" as the source currency And I choose "US Dollar" as the source currency
And I choose "British Pound" as the target currency And I choose "British Pound" as the target currency
And I don't specify its ratio And I don't specify its ratio
And I try to add it And I try to add it
@ -20,8 +20,8 @@ Feature: Exchange rate validation
@ui @api @ui @api
Scenario: Trying to add a new exchange rate with negative ratio Scenario: Trying to add a new exchange rate with negative ratio
Given I want to add a new exchange rate When I want to add a new exchange rate
When I choose "US Dollar" as the source currency And I choose "US Dollar" as the source currency
And I choose "British Pound" as the target currency And I choose "British Pound" as the target currency
And I specify its ratio as -1.2 And I specify its ratio as -1.2
And I try to add it And I try to add it
@ -30,8 +30,8 @@ Feature: Exchange rate validation
@ui @api @ui @api
Scenario: Trying to add a new exchange rate with same target currency as source Scenario: Trying to add a new exchange rate with same target currency as source
Given I want to add a new exchange rate When I want to add a new exchange rate
When I specify its ratio as 1.23 And I specify its ratio as 1.23
And I choose "US Dollar" as the source currency And I choose "US Dollar" as the source currency
And I choose "US Dollar" as the target currency And I choose "US Dollar" as the target currency
And I try to add it And I try to add it

View file

@ -11,8 +11,8 @@ Feature: Inability of adding exchange rates with the same currency pair
@ui @api @ui @api
Scenario: Being prevented from adding an exchange rate for the same currency pair Scenario: Being prevented from adding an exchange rate for the same currency pair
Given I want to add a new exchange rate When I want to add a new exchange rate
When I specify its ratio as 3.20 And I specify its ratio as 3.20
And I choose "Euro" as the source currency And I choose "Euro" as the source currency
And I choose "British Pound" as the target currency And I choose "British Pound" as the target currency
And I try to add it And I try to add it
@ -22,8 +22,8 @@ Feature: Inability of adding exchange rates with the same currency pair
@ui @api @ui @api
Scenario: Being prevented from adding an exchange rate for a reversed currency pair Scenario: Being prevented from adding an exchange rate for a reversed currency pair
Given I want to add a new exchange rate When I want to add a new exchange rate
When I specify its ratio as 3.20 And I specify its ratio as 3.20
And I choose "British Pound" as the source currency And I choose "British Pound" as the source currency
And I choose "Euro" as the target currency And I choose "Euro" as the target currency
And I try to add it And I try to add it

View file

@ -19,8 +19,8 @@ Feature: Validation of decreasing inventory below on hold validation
@ui @ui
Scenario: Decreasing inventory when order was placed Scenario: Decreasing inventory when order was placed
Given I want to modify the "Wyborowa Vodka Exquisite" product variant When I want to modify the "Wyborowa Vodka Exquisite" product variant
When I change its quantity of inventory to 2 And I change its quantity of inventory to 2
And I save my changes And I save my changes
Then I should be notified that on hand quantity must be greater than the number of on hold units Then I should be notified that on hand quantity must be greater than the number of on hold units
And this variant should have a 5 item currently in stock And this variant should have a 5 item currently in stock
@ -28,8 +28,8 @@ Feature: Validation of decreasing inventory below on hold validation
@ui @ui
Scenario: Decreasing inventory when order was cancelled Scenario: Decreasing inventory when order was cancelled
Given the order "#00000023" was cancelled Given the order "#00000023" was cancelled
And I want to modify the "Wyborowa Vodka Exquisite" product variant When I want to modify the "Wyborowa Vodka Exquisite" product variant
When I change its quantity of inventory to 2 And I change its quantity of inventory to 2
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this variant should have a 2 item currently in stock And this variant should have a 2 item currently in stock
@ -37,8 +37,8 @@ Feature: Validation of decreasing inventory below on hold validation
@ui @ui
Scenario: Decreasing inventory when order was paid Scenario: Decreasing inventory when order was paid
Given the order "#00000023" is already paid Given the order "#00000023" is already paid
And I want to modify the "Wyborowa Vodka Exquisite" product variant When I want to modify the "Wyborowa Vodka Exquisite" product variant
When I change its quantity of inventory to 2 And I change its quantity of inventory to 2
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this variant should have a 2 item currently in stock And this variant should have a 2 item currently in stock

View file

@ -9,8 +9,8 @@ Feature: Adding a new locale
@ui @api @ui @api
Scenario: Adding a new locale Scenario: Adding a new locale
Given I want to create a new locale When I want to create a new locale
When I choose Norwegian And I choose Norwegian
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created
And the store should be available in the Norwegian language And the store should be available in the Norwegian language

View file

@ -10,5 +10,5 @@ Feature: Locale unique code validation
@ui @api @ui @api
Scenario: Trying to add new locale with used code Scenario: Trying to add new locale with used code
Given I want to add a new locale When I want to add a new locale
Then I should not be able to choose "Norwegian (Norway)" Then I should not be able to choose "Norwegian (Norway)"

View file

@ -10,7 +10,7 @@ Feature: Locale validation
@api @api
Scenario: Trying to add a locale without specifying a code Scenario: Trying to add a locale without specifying a code
Given I want to create a new locale When I want to create a new locale
When I do not choose a code And I do not choose a code
And I try to add it And I try to add it
Then I should be notified that a code is required Then I should be notified that a code is required

View file

@ -19,8 +19,8 @@ Feature: Adding a new payment method
@ui @ui
Scenario: Adding a new payment method with description Scenario: Adding a new payment method with description
Given I want to create a new offline payment method When I want to create a new offline payment method
When I name it "Offline" in "English (United States)" And I name it "Offline" in "English (United States)"
And I specify its code as "OFF" And I specify its code as "OFF"
And I describe it as "Payment method Offline" in "English (United States)" And I describe it as "Payment method Offline" in "English (United States)"
And I add it And I add it
@ -29,8 +29,8 @@ Feature: Adding a new payment method
@ui @ui
Scenario: Adding a new payment method with instructions Scenario: Adding a new payment method with instructions
Given I want to create a new offline payment method When I want to create a new offline payment method
When I name it "Offline" in "English (United States)" And I name it "Offline" in "English (United States)"
And I specify its code as "OFF" And I specify its code as "OFF"
And I set its instruction as "Bank account: 0000 1111 2222 3333" in "English (United States)" And I set its instruction as "Bank account: 0000 1111 2222 3333" in "English (United States)"
And I add it And I add it
@ -40,8 +40,8 @@ Feature: Adding a new payment method
@ui @ui
Scenario: Adding a new payment method for channel Scenario: Adding a new payment method for channel
Given I want to create a new offline payment method When I want to create a new offline payment method
When I name it "Offline" in "English (United States)" And I name it "Offline" in "English (United States)"
And I specify its code as "OFF" And I specify its code as "OFF"
And make it available in channel "United States" And make it available in channel "United States"
And I add it And I add it
@ -51,8 +51,8 @@ Feature: Adding a new payment method
@ui @ui
Scenario: Adding a new paypal payment method Scenario: Adding a new paypal payment method
Given I want to create a new payment method with "Paypal Express Checkout" gateway factory When I want to create a new payment method with "Paypal Express Checkout" gateway factory
When I name it "Paypal Express Checkout" in "English (United States)" And I name it "Paypal Express Checkout" in "English (United States)"
And I specify its code as "PEC" And I specify its code as "PEC"
And I configure it with test paypal credentials And I configure it with test paypal credentials
And I add it And I add it
@ -61,8 +61,8 @@ Feature: Adding a new payment method
@ui @ui
Scenario: Adding a new stripe payment method Scenario: Adding a new stripe payment method
Given I want to create a new payment method with "Stripe Checkout" gateway factory When I want to create a new payment method with "Stripe Checkout" gateway factory
When I name it "Stripe Checkout" in "English (United States)" And I name it "Stripe Checkout" in "English (United States)"
And I specify its code as "SC" And I specify its code as "SC"
And I configure it with test stripe gateway data And I configure it with test stripe gateway data
And I add it And I add it

View file

@ -11,16 +11,16 @@ Feature: Editing payment methods
@ui @ui
Scenario: Renaming the payment method Scenario: Renaming the payment method
Given I want to modify the "Offline" payment method When I want to modify the "Offline" payment method
When I rename it to "Cash on delivery" in "English (United States)" And I rename it to "Cash on delivery" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this payment method name should be "Cash on delivery" And this payment method name should be "Cash on delivery"
@ui @ui
Scenario: Disabling payment method Scenario: Disabling payment method
Given I want to modify the "Offline" payment method When I want to modify the "Offline" payment method
When I disable it And I disable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this payment method should be disabled And this payment method should be disabled
@ -28,8 +28,8 @@ Feature: Editing payment methods
@ui @ui
Scenario: Enabling payment method Scenario: Enabling payment method
Given the payment method "Offline" is disabled Given the payment method "Offline" is disabled
And I want to modify the "Offline" payment method When I want to modify the "Offline" payment method
When I enable it And I enable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this payment method should be enabled And this payment method should be enabled

View file

@ -11,8 +11,8 @@ Feature: Payment method unique code validation
@ui @ui
Scenario: Trying to add payment method with taken code Scenario: Trying to add payment method with taken code
Given I want to create a new offline payment method When I want to create a new offline payment method
When I name it "Paypal Express Checkout" in "English (United States)" And I name it "Paypal Express Checkout" in "English (United States)"
And I specify its code as "offline" And I specify its code as "offline"
And I try to add it And I try to add it
Then I should be notified that payment method with this code already exists Then I should be notified that payment method with this code already exists

View file

@ -11,8 +11,8 @@ Feature: Payment method validation
@ui @ui
Scenario: Trying to add a new payment method without specifying its code Scenario: Trying to add a new payment method without specifying its code
Given I want to create a new payment method with "Paypal Express Checkout" gateway factory When I want to create a new payment method with "Paypal Express Checkout" gateway factory
When I name it "Paypal Express Checkout" in "English (United States)" And I name it "Paypal Express Checkout" in "English (United States)"
But I do not specify its code But I do not specify its code
And I add it And I add it
Then I should be notified that code is required Then I should be notified that code is required
@ -20,8 +20,8 @@ Feature: Payment method validation
@ui @ui
Scenario: Trying to add a new payment method without specifying its name Scenario: Trying to add a new payment method without specifying its name
Given I want to create a new payment method with "Paypal Express Checkout" gateway factory When I want to create a new payment method with "Paypal Express Checkout" gateway factory
When I specify its code as "PEC" And I specify its code as "PEC"
But I do not name it But I do not name it
And I add it And I add it
Then I should be notified that name is required Then I should be notified that name is required
@ -29,8 +29,8 @@ Feature: Payment method validation
@ui @ui
Scenario: Trying to add a new paypal payment method without specifying required configuration Scenario: Trying to add a new paypal payment method without specifying required configuration
Given I want to create a new payment method with "Paypal Express Checkout" gateway factory When I want to create a new payment method with "Paypal Express Checkout" gateway factory
When I name it "Paypal Express Checkout" in "English (United States)" And I name it "Paypal Express Checkout" in "English (United States)"
And I specify its code as "PEC" And I specify its code as "PEC"
And I configure it for username "TEST" with "TEST" signature And I configure it for username "TEST" with "TEST" signature
But I do not specify configuration password But I do not specify configuration password
@ -40,8 +40,8 @@ Feature: Payment method validation
@ui @ui
Scenario: Trying to remove name from an existing payment method Scenario: Trying to remove name from an existing payment method
Given I want to modify the "Offline" payment method When I want to modify the "Offline" payment method
When I remove its name from "English (United States)" translation And I remove its name from "English (United States)" translation
And I try to save my changes And I try to save my changes
Then I should be notified that name is required Then I should be notified that name is required
And this payment method should still be named "Offline" And this payment method should still be named "Offline"

View file

@ -10,8 +10,8 @@ Feature: Adding a new checkbox product attribute
@ui @ui
Scenario: Adding a new checkbox product attribute Scenario: Adding a new checkbox product attribute
Given I want to create a new checkbox product attribute When I want to create a new checkbox product attribute
When I specify its code as "t_shirt_with_cotton" And I specify its code as "t_shirt_with_cotton"
And I name it "T-shirt with cotton" in "English (United States)" And I name it "T-shirt with cotton" in "English (United States)"
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created

View file

@ -10,8 +10,8 @@ Feature: Adding a new integer product attribute
@ui @ui
Scenario: Adding a new integer product attribute Scenario: Adding a new integer product attribute
Given I want to create a new integer product attribute When I want to create a new integer product attribute
When I specify its code as "book_pages" And I specify its code as "book_pages"
And I name it "Book pages" in "English (United States)" And I name it "Book pages" in "English (United States)"
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created

View file

@ -10,8 +10,8 @@ Feature: Adding a new percent product attribute
@ui @ui
Scenario: Adding a new percent product attribute Scenario: Adding a new percent product attribute
Given I want to create a new percent product attribute When I want to create a new percent product attribute
When I specify its code as "t_shirt_cotton_content" And I specify its code as "t_shirt_cotton_content"
And I name it "T-shirt cotton content" in "English (United States)" And I name it "T-shirt cotton content" in "English (United States)"
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created

View file

@ -10,8 +10,8 @@ Feature: Adding a new text product attribute
@ui @ui
Scenario: Adding a new text product attribute Scenario: Adding a new text product attribute
Given I want to create a new text product attribute When I want to create a new text product attribute
When I specify its code as "t_shirt_brand" And I specify its code as "t_shirt_brand"
And I name it "T-shirt brand" in "English (United States)" And I name it "T-shirt brand" in "English (United States)"
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created

View file

@ -10,8 +10,8 @@ Feature: Adding a new textarea product attribute
@ui @ui
Scenario: Adding a new textarea product attribute Scenario: Adding a new textarea product attribute
Given I want to create a new textarea product attribute When I want to create a new textarea product attribute
When I specify its code as "t_shirt_details" And I specify its code as "t_shirt_details"
And I name it "T-shirt details" in "English (United States)" And I name it "T-shirt details" in "English (United States)"
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created

View file

@ -11,8 +11,8 @@ Feature: Product attribute unique code validation
@ui @ui
Scenario: Trying to add a new product attribute with taken code Scenario: Trying to add a new product attribute with taken code
Given the store has a text product attribute "T-shirt cotton material" with code "t_shirt_material" Given the store has a text product attribute "T-shirt cotton material" with code "t_shirt_material"
And I want to create a new text product attribute When I want to create a new text product attribute
When I specify its code as "t_shirt_material" And I specify its code as "t_shirt_material"
And I name it "T-shirt special material" in "English (United States)" And I name it "T-shirt special material" in "English (United States)"
And I add it And I add it
Then I should be notified that product attribute with this code already exists Then I should be notified that product attribute with this code already exists

View file

@ -10,8 +10,8 @@ Feature: Adding a new product option
@ui @javascript @api @ui @javascript @api
Scenario: Adding a new product option with two required option values Scenario: Adding a new product option with two required option values
Given I want to create a new product option When I want to create a new product option
When I name it "T-Shirt size" in "English (United States)" And I name it "T-Shirt size" in "English (United States)"
And I specify its code as "t_shirt_size" And I specify its code as "t_shirt_size"
And I add the "S" option value identified by "OV1" And I add the "S" option value identified by "OV1"
And I add the "M" option value identified by "OV2" And I add the "M" option value identified by "OV2"
@ -23,8 +23,8 @@ Feature: Adding a new product option
@ui @api @ui @api
Scenario: Adding a new product option without any option values Scenario: Adding a new product option without any option values
Given I want to create a new product option When I want to create a new product option
When I name it "T-Shirt size" in "English (United States)" And I name it "T-Shirt size" in "English (United States)"
And I specify its code as "t_shirt_size" And I specify its code as "t_shirt_size"
But I do not add an option value But I do not add an option value
And I try to add it And I try to add it
@ -33,8 +33,8 @@ Feature: Adding a new product option
@ui @javascript @api @ui @javascript @api
Scenario: Adding a new product option with one option value Scenario: Adding a new product option with one option value
Given I want to create a new product option When I want to create a new product option
When I name it "T-Shirt size" in "English (United States)" And I name it "T-Shirt size" in "English (United States)"
And I specify its code as "t_shirt_size" And I specify its code as "t_shirt_size"
And I add the "S" option value identified by "OV1" And I add the "S" option value identified by "OV1"
And I try to add it And I try to add it

View file

@ -13,8 +13,8 @@ Feature: Editing product options
Scenario: Renaming the product option Scenario: Renaming the product option
Given this product option has the "S" option value with code "t_shirt_size_s" Given this product option has the "S" option value with code "t_shirt_size_s"
And this product option has also the "M" option value with code "t_shirt_size_m" And this product option has also the "M" option value with code "t_shirt_size_m"
And I want to modify the "T-Shirt size" product option When I want to modify the "T-Shirt size" product option
When I rename it to "T-Shirt color" in "English (United States)" And I rename it to "T-Shirt color" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product option name should be "T-Shirt color" And this product option name should be "T-Shirt color"

View file

@ -13,7 +13,7 @@ Feature: Managing option values of a product option
@ui @javascript @api @ui @javascript @api
Scenario: Adding an option value to an existing product option Scenario: Adding an option value to an existing product option
Given I want to modify the "T-Shirt size" product option When I want to modify the "T-Shirt size" product option
And I add the "L" option value identified by "OV3" And I add the "L" option value identified by "OV3"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -22,16 +22,16 @@ Feature: Managing option values of a product option
@ui @javascript @todo @ui @javascript @todo
Scenario: Removing an option value from an existing product option Scenario: Removing an option value from an existing product option
Given this product option has also the "L" option value with code "OV3" Given this product option has also the "L" option value with code "OV3"
And I want to modify the "T-Shirt size" product option When I want to modify the "T-Shirt size" product option
When I delete the "L" option value of this product option And I delete the "L" option value of this product option
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product option should not have the "L" option value And this product option should not have the "L" option value
@ui @javascript @todo @ui @javascript @todo
Scenario: Removing and adding a new option value to an existing product option Scenario: Removing and adding a new option value to an existing product option
Given I want to modify the "T-Shirt size" product option When I want to modify the "T-Shirt size" product option
When I delete the "M" option value of this product option And I delete the "M" option value of this product option
And I add the "L" option value identified by "OV3" And I add the "L" option value identified by "OV3"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited

View file

@ -11,8 +11,8 @@ Feature: Product option unique code validation
@ui @api @ui @api
Scenario: Trying to add product option with a taken code Scenario: Trying to add product option with a taken code
Given I want to create a new product option When I want to create a new product option
When I name it "T-Shirt color" in "English (United States)" And I name it "T-Shirt color" in "English (United States)"
And I specify its code as "t_shirt_size" And I specify its code as "t_shirt_size"
And I try to add it And I try to add it
Then I should be notified that product option with this code already exists Then I should be notified that product option with this code already exists

View file

@ -11,8 +11,8 @@ Feature: Product option validation
@ui @api @ui @api
Scenario: Trying to add a new product option without specifying its code Scenario: Trying to add a new product option without specifying its code
Given I want to create a new product option When I want to create a new product option
When I name it "T-Shirt size" in "English (United States)" And I name it "T-Shirt size" in "English (United States)"
But I do not specify its code But I do not specify its code
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
@ -20,8 +20,8 @@ Feature: Product option validation
@ui @api @ui @api
Scenario: Trying to add a new product option without specifying its name Scenario: Trying to add a new product option without specifying its name
Given I want to create a new product option When I want to create a new product option
When I specify its code as "t_shirt_size" And I specify its code as "t_shirt_size"
But I do not name it But I do not name it
And I try to add it And I try to add it
Then I should be notified that name is required Then I should be notified that name is required
@ -29,8 +29,8 @@ Feature: Product option validation
@ui @api @ui @api
Scenario: Trying to remove name from an existing product option Scenario: Trying to remove name from an existing product option
Given I want to modify the "T-Shirt color" product option When I want to modify the "T-Shirt color" product option
When I remove its name from "English (United States)" translation And I remove its name from "English (United States)" translation
And I try to save my changes And I try to save my changes
Then I should be notified that name is required Then I should be notified that name is required
And this product option should still be named "T-Shirt color" And this product option should still be named "T-Shirt color"

View file

@ -13,8 +13,8 @@ Feature: Adding a new product variant
@ui @ui
Scenario: Adding a new product variant Scenario: Adding a new product variant
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created
@ -24,8 +24,8 @@ Feature: Adding a new product variant
@ui @ui
Scenario: Adding a new product variant with name Scenario: Adding a new product variant with name
Given the store is also available in "Polish (Poland)" Given the store is also available in "Polish (Poland)"
And I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I name it "Vodka Wyborowa Premium" in "English (United States)" And I name it "Vodka Wyborowa Premium" in "English (United States)"
And I name it "Wódka Wyborowa Premium" in "Polish (Poland)" And I name it "Wódka Wyborowa Premium" in "Polish (Poland)"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
@ -38,8 +38,8 @@ Feature: Adding a new product variant
@ui @ui
Scenario: Adding a new product variant with specific option's value Scenario: Adding a new product variant with specific option's value
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_MELON" And I specify its code as "VODKA_WYBOROWA_MELON"
And I set its price to "$80.00" for "United States" channel And I set its price to "$80.00" for "United States" channel
And I set its "Taste" option to "Melon" And I set its "Taste" option to "Melon"
And I add it And I add it
@ -48,8 +48,8 @@ Feature: Adding a new product variant
@ui @ui
Scenario: Adding a new product variant with specific shipping category Scenario: Adding a new product variant with specific shipping category
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I set its shipping category as "Fragile" And I set its shipping category as "Fragile"
And I add it And I add it
@ -58,8 +58,8 @@ Feature: Adding a new product variant
@ui @ui
Scenario: Adding a new product variant with discounted price Scenario: Adding a new product variant with discounted price
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_EXQUISITE" And I specify its code as "VODKA_WYBOROWA_EXQUISITE"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I set its original price to "$120.00" for "United States" channel And I set its original price to "$120.00" for "United States" channel
And I add it And I add it
@ -70,8 +70,8 @@ Feature: Adding a new product variant
@ui @ui
Scenario: Adding a new product variant without shipping required Scenario: Adding a new product variant without shipping required
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I do not want to have shipping required for this product And I do not want to have shipping required for this product
And I add it And I add it

View file

@ -14,14 +14,14 @@ In order to check a product in shop in all channels it is available in
Scenario: Accessing product show page in shop from the product variant edit page where product is available in more than one channel Scenario: Accessing product show page in shop from the product variant edit page where product is available in more than one channel
Given this product is also available in the "Europe" channel Given this product is also available in the "Europe" channel
And this product has "Red" variant priced at "$220000.00" in "Europe" channel And this product has "Red" variant priced at "$220000.00" in "Europe" channel
And I want to modify the "Bugatti" product variant When I want to modify the "Bugatti" product variant
And I choose to show this product in the "Europe" channel And I choose to show this product in the "Europe" channel
Then I should see this product in the "Europe" channel in the shop Then I should see this product in the "Europe" channel in the shop
@ui @ui
Scenario: Accessing product show page in shop from the product variant edit page where product is available in one channel Scenario: Accessing product show page in shop from the product variant edit page where product is available in one channel
Given this product has "Red" variant priced at "$220000.00" in "United States" channel Given this product has "Red" variant priced at "$220000.00" in "United States" channel
And I want to modify the "Bugatti" product variant When I want to modify the "Bugatti" product variant
And I choose to show this product in this channel And I choose to show this product in this channel
Then I should see this product in the "United States" channel in the shop Then I should see this product in the "United States" channel in the shop

View file

@ -13,16 +13,16 @@ Feature: Toggle the inventory tracking
@ui @ui
Scenario: Disabling inventory for a product variant Scenario: Disabling inventory for a product variant
Given the "Wyborowa Vodka Exquisite" product variant is tracked by the inventory Given the "Wyborowa Vodka Exquisite" product variant is tracked by the inventory
And I want to modify the "Wyborowa Vodka Exquisite" product variant When I want to modify the "Wyborowa Vodka Exquisite" product variant
When I disable its inventory tracking And I disable its inventory tracking
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And inventory of this variant should not be tracked And inventory of this variant should not be tracked
@ui @ui
Scenario: Enabling inventory for a product variant Scenario: Enabling inventory for a product variant
Given I want to modify the "Wyborowa Vodka Exquisite" product variant When I want to modify the "Wyborowa Vodka Exquisite" product variant
When I enable its inventory tracking And I enable its inventory tracking
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And inventory of this variant should be tracked And inventory of this variant should be tracked

View file

@ -13,8 +13,8 @@ Feature: Toggle the product variant
@ui @ui
Scenario: Disabling a product variant Scenario: Disabling a product variant
Given the "Wyborowa Vodka Exquisite" product variant is enabled Given the "Wyborowa Vodka Exquisite" product variant is enabled
And I want to modify the "Wyborowa Vodka Exquisite" product variant When I want to modify the "Wyborowa Vodka Exquisite" product variant
When I disable it And I disable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this variant should be disabled And this variant should be disabled
@ -22,8 +22,8 @@ Feature: Toggle the product variant
@ui @ui
Scenario: Enabling a product variant Scenario: Enabling a product variant
Given the "Wyborowa Vodka Exquisite" product variant is disabled Given the "Wyborowa Vodka Exquisite" product variant is disabled
And I want to modify the "Wyborowa Vodka Exquisite" product variant When I want to modify the "Wyborowa Vodka Exquisite" product variant
When I enable it And I enable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this variant should be enabled And this variant should be enabled

View file

@ -12,8 +12,8 @@ Feature: Generating product variants
@ui @ui
Scenario: Generating a product variant for product without variants Scenario: Generating a product variant for product without variants
Given I want to generate new variants for this product When I want to generate new variants for this product
When I specify that the 1st variant is identified by "WYBOROWA_ORANGE" code and costs "$90" in "United States" channel And I specify that the 1st variant is identified by "WYBOROWA_ORANGE" code and costs "$90" in "United States" channel
And I specify that the 2nd variant is identified by "WYBOROWA_MELON" code and costs "$95" in "United States" channel And I specify that the 2nd variant is identified by "WYBOROWA_MELON" code and costs "$95" in "United States" channel
And I generate it And I generate it
Then I should be notified that it has been successfully generated Then I should be notified that it has been successfully generated
@ -22,8 +22,8 @@ Feature: Generating product variants
@ui @ui
Scenario: Generating the rest of product variants for product with at least one Scenario: Generating the rest of product variants for product with at least one
Given this product is available in "Melon" taste priced at "$95.00" Given this product is available in "Melon" taste priced at "$95.00"
And I want to generate new variants for this product When I want to generate new variants for this product
When I specify that the 2nd variant is identified by "WYBOROWA_ORANGE" code and costs "$90" in "United States" channel And I specify that the 2nd variant is identified by "WYBOROWA_ORANGE" code and costs "$90" in "United States" channel
And I generate it And I generate it
Then I should be notified that it has been successfully generated Then I should be notified that it has been successfully generated
And I should see 2 variants in the list And I should see 2 variants in the list
@ -31,16 +31,16 @@ Feature: Generating product variants
@ui @ui
Scenario: Generating the rest of product variants for product with at least one Scenario: Generating the rest of product variants for product with at least one
Given this product is available in "Orange" taste priced at "$90.00" Given this product is available in "Orange" taste priced at "$90.00"
And I want to generate new variants for this product When I want to generate new variants for this product
When I specify that the 2nd variant is identified by "WYBOROWA_MELON" code and costs "$95" in "United States" channel And I specify that the 2nd variant is identified by "WYBOROWA_MELON" code and costs "$95" in "United States" channel
And I generate it And I generate it
Then I should be notified that it has been successfully generated Then I should be notified that it has been successfully generated
And I should see 2 variants in the list And I should see 2 variants in the list
@ui @javascript @ui @javascript
Scenario: Generating only a part of product variants Scenario: Generating only a part of product variants
Given I want to generate new variants for this product When I want to generate new variants for this product
When I specify that the 1st variant is identified by "WYBOROWA_ORANGE" code and costs "$90" in "United States" channel And I specify that the 1st variant is identified by "WYBOROWA_ORANGE" code and costs "$90" in "United States" channel
And I remove 2nd variant from the list And I remove 2nd variant from the list
And I generate it And I generate it
Then I should be notified that it has been successfully generated Then I should be notified that it has been successfully generated

View file

@ -11,8 +11,8 @@ Feature: Product variant validation
@ui @ui
Scenario: Adding a new product variant without specifying its price Scenario: Adding a new product variant without specifying its price
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
But I do not set its price But I do not set its price
And I try to add it And I try to add it
Then I should be notified that prices in all channels must be defined Then I should be notified that prices in all channels must be defined
@ -20,8 +20,8 @@ Feature: Product variant validation
@ui @ui
Scenario: Adding a new product variant with price below 0 Scenario: Adding a new product variant with price below 0
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its price to "$-60.00" for "United States" channel And I set its price to "$-60.00" for "United States" channel
And I try to add it And I try to add it
Then I should be notified that price cannot be lower than 0 Then I should be notified that price cannot be lower than 0
@ -29,8 +29,8 @@ Feature: Product variant validation
@ui @ui
Scenario: Adding a new product variant without specifying its code Scenario: Adding a new product variant without specifying its code
Given I want to create a new variant of this product When I want to create a new variant of this product
When I set its price to "$80.00" for "United States" channel And I set its price to "$80.00" for "United States" channel
But I do not specify its code But I do not specify its code
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
@ -39,8 +39,8 @@ Feature: Product variant validation
@ui @ui
Scenario: Adding a new product variant with duplicated code Scenario: Adding a new product variant with duplicated code
Given this product has "Wyborowa Exquisite" variant priced at "$90" identified by "VODKA_WYBOROWA_PREMIUM" Given this product has "Wyborowa Exquisite" variant priced at "$90" identified by "VODKA_WYBOROWA_PREMIUM"
And I want to create a new variant of this product When I want to create a new variant of this product
When I set its price to "$80.00" for "United States" channel And I set its price to "$80.00" for "United States" channel
And I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I try to add it And I try to add it
Then I should be notified that code has to be unique Then I should be notified that code has to be unique
@ -50,8 +50,8 @@ Feature: Product variant validation
Scenario: Adding a new product variant with same set of options Scenario: Adding a new product variant with same set of options
Given this product has option "Taste" with values "Orange" and "Melon" Given this product has option "Taste" with values "Orange" and "Melon"
And this product is available in "Melon" taste priced at "$95.00" And this product is available in "Melon" taste priced at "$95.00"
And I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its "Taste" option to "Melon" And I set its "Taste" option to "Melon"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I try to add it And I try to add it
@ -60,8 +60,8 @@ Feature: Product variant validation
@ui @ui
Scenario: Adding a new product variant with negative properties Scenario: Adding a new product variant with negative properties
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I set its height, width, depth and weight to "-1" And I set its height, width, depth and weight to "-1"
And I try to add it And I try to add it
@ -70,8 +70,8 @@ Feature: Product variant validation
@ui @ui
Scenario: Adding a new product variant without current stock Scenario: Adding a new product variant without current stock
Given I want to create a new variant of this product When I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM" And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
But I do not specify its current stock But I do not specify its current stock
And I try to add it And I try to add it

View file

@ -10,8 +10,8 @@ Feature: Adding images to an existing product
@ui @javascript @ui @javascript
Scenario: Adding a single image to an existing product Scenario: Adding a single image to an existing product
Given the store has a product "Lamborghini Gallardo Model" Given the store has a product "Lamborghini Gallardo Model"
And I want to modify this product When I want to modify this product
When I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the product "Lamborghini Gallardo Model" should have an image with "banner" type And the product "Lamborghini Gallardo Model" should have an image with "banner" type
@ -19,8 +19,8 @@ Feature: Adding images to an existing product
@ui @javascript @ui @javascript
Scenario: Adding multiple images to an existing product Scenario: Adding multiple images to an existing product
Given the store has a product "Lamborghini Gallardo Model" Given the store has a product "Lamborghini Gallardo Model"
And I want to modify this product When I want to modify this product
When I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type
And I attach the "lamborghini.jpg" image with "thumbnail" type And I attach the "lamborghini.jpg" image with "thumbnail" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -30,8 +30,8 @@ Feature: Adding images to an existing product
@ui @javascript @ui @javascript
Scenario: Adding multiple images of the same type to an existing product Scenario: Adding multiple images of the same type to an existing product
Given the store has a product "Lamborghini Ford Model" Given the store has a product "Lamborghini Ford Model"
And I want to modify this product When I want to modify this product
When I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type
And I attach the "ford.jpg" image with "banner" type And I attach the "ford.jpg" image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -40,8 +40,8 @@ Feature: Adding images to an existing product
@ui @javascript @ui @javascript
Scenario: Adding a single image to an existing configurable product Scenario: Adding a single image to an existing configurable product
Given the store has a "Lamborghini Gallardo Model" configurable product Given the store has a "Lamborghini Gallardo Model" configurable product
And I want to modify this product When I want to modify this product
When I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the product "Lamborghini Gallardo Model" should have an image with "banner" type And the product "Lamborghini Gallardo Model" should have an image with "banner" type
@ -49,8 +49,8 @@ Feature: Adding images to an existing product
@ui @javascript @ui @javascript
Scenario: Adding multiple images of the same type to an existing configurable product Scenario: Adding multiple images of the same type to an existing configurable product
Given the store has a "Lamborghini Ford Model" configurable product Given the store has a "Lamborghini Ford Model" configurable product
And I want to modify this product When I want to modify this product
When I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type
And I attach the "ford.jpg" image with "banner" type And I attach the "ford.jpg" image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -59,8 +59,8 @@ Feature: Adding images to an existing product
@ui @javascript @ui @javascript
Scenario: Adding an image to an existing product without providing its type Scenario: Adding an image to an existing product without providing its type
Given the store has a product "Lamborghini Gallardo Model" Given the store has a product "Lamborghini Gallardo Model"
And I want to modify this product When I want to modify this product
When I attach the "lamborghini.jpg" image And I attach the "lamborghini.jpg" image
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product should have only one image And this product should have only one image
@ -68,8 +68,8 @@ Feature: Adding images to an existing product
@ui @javascript @ui @javascript
Scenario: Adding an image to an existing configurable product without providing its type Scenario: Adding an image to an existing configurable product without providing its type
Given the store has a "Lamborghini Gallardo Model" configurable product Given the store has a "Lamborghini Gallardo Model" configurable product
And I want to modify this product When I want to modify this product
When I attach the "lamborghini.jpg" image And I attach the "lamborghini.jpg" image
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product should have only one image And this product should have only one image

View file

@ -11,8 +11,8 @@ Feature: Adding a new product
@ui @api @ui @api
Scenario: Adding a new simple product with price Scenario: Adding a new simple product with price
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING" And I specify its code as "BOARD_DICE_BREWING"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its slug to "dice-brewing" in "English (United States)" And I set its slug to "dice-brewing" in "English (United States)"
And I set its price to "$10.00" for "United States" channel And I set its price to "$10.00" for "United States" channel
@ -22,8 +22,8 @@ Feature: Adding a new product
@ui @ui
Scenario: Adding a new simple product with discounted price Scenario: Adding a new simple product with discounted price
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING" And I specify its code as "BOARD_DICE_BREWING"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its slug to "dice-brewing" in "English (United States)" And I set its slug to "dice-brewing" in "English (United States)"
And I set its price to "$10.00" for "United States" channel And I set its price to "$10.00" for "United States" channel
@ -45,8 +45,8 @@ Feature: Adding a new product
@ui @ui
Scenario: Adding a new simple product with specific shipping category Scenario: Adding a new simple product with specific shipping category
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING" And I specify its code as "BOARD_DICE_BREWING"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its price to "$10.00" for "United States" channel And I set its price to "$10.00" for "United States" channel
And I set its slug to "dice-brewing" in "English (United States)" And I set its slug to "dice-brewing" in "English (United States)"
@ -60,8 +60,8 @@ Feature: Adding a new product
Given the store has a product option "Bottle size" with a code "bottle_size" Given the store has a product option "Bottle size" with a code "bottle_size"
And this product option has the "0.7" option value with code "bottle_size_medium" And this product option has the "0.7" option value with code "bottle_size_medium"
And this product option has also the "0.5" option value with code "bottle_size_small" And this product option has also the "0.5" option value with code "bottle_size_small"
And I want to create a new configurable product When I want to create a new configurable product
When I specify its code as "WHISKEY_GENTLEMEN" And I specify its code as "WHISKEY_GENTLEMEN"
And I name it "Gentleman Jack" in "English (United States)" And I name it "Gentleman Jack" in "English (United States)"
And I add the "Bottle size" option to it And I add the "Bottle size" option to it
And I set its slug to "whiskey/gentleman-jack" in "English (United States)" And I set its slug to "whiskey/gentleman-jack" in "English (United States)"
@ -71,8 +71,8 @@ Feature: Adding a new product
@ui @api @ui @api
Scenario: Adding a new configurable product without options Scenario: Adding a new configurable product without options
Given I want to create a new configurable product When I want to create a new configurable product
When I specify its code as "WHISKEY_GENTLEMEN" And I specify its code as "WHISKEY_GENTLEMEN"
And I name it "Gentleman Jack" in "English (United States)" And I name it "Gentleman Jack" in "English (United States)"
And I set its slug to "whiskey/gentleman-jack" in "English (United States)" And I set its slug to "whiskey/gentleman-jack" in "English (United States)"
And I add it And I add it
@ -81,8 +81,8 @@ Feature: Adding a new product
@ui @ui
Scenario: Adding a new simple product without shipping required Scenario: Adding a new simple product without shipping required
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING" And I specify its code as "BOARD_DICE_BREWING"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its slug to "dice-brewing" in "English (United States)" And I set its slug to "dice-brewing" in "English (United States)"
And I set its price to "$10.00" for "United States" channel And I set its price to "$10.00" for "United States" channel

View file

@ -10,8 +10,8 @@ Feature: Adding a new product with images
@ui @javascript @ui @javascript
Scenario: Adding a new simple product with a single image Scenario: Adding a new simple product with a single image
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "LAMBORGHINI_GALLARDO" And I specify its code as "LAMBORGHINI_GALLARDO"
And I name it "Lamborghini Gallardo Model" in "English (United States)" And I name it "Lamborghini Gallardo Model" in "English (United States)"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type
@ -21,8 +21,8 @@ Feature: Adding a new product with images
@ui @javascript @ui @javascript
Scenario: Adding a new simple product with multiple images Scenario: Adding a new simple product with multiple images
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "LAMBORGHINI_GALLARDO" And I specify its code as "LAMBORGHINI_GALLARDO"
And I name it "Lamborghini Gallardo Model" in "English (United States)" And I name it "Lamborghini Gallardo Model" in "English (United States)"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type
@ -37,8 +37,8 @@ Feature: Adding a new product with images
Given the store has a product option "Model scale" with a code "model_scale" Given the store has a product option "Model scale" with a code "model_scale"
And this product option has the "1:43" option value with code "model_scale_medium" And this product option has the "1:43" option value with code "model_scale_medium"
And this product option has also the "1:18" option value with code "model_scale_big" And this product option has also the "1:18" option value with code "model_scale_big"
And I want to create a new configurable product When I want to create a new configurable product
When I specify its code as "LAMBORGHINI_GALLARDO" And I specify its code as "LAMBORGHINI_GALLARDO"
And I name it "Lamborghini Gallardo Model" in "English (United States)" And I name it "Lamborghini Gallardo Model" in "English (United States)"
And I add the "Model scale" option to it And I add the "Model scale" option to it
And I attach the "lamborghini.jpg" image with "banner" type And I attach the "lamborghini.jpg" image with "banner" type

View file

@ -12,8 +12,8 @@ Feature: Adding a new product with a percent attribute
@ui @javascript @ui @javascript
Scenario: Adding a percent attribute to product Scenario: Adding a percent attribute to product
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "44_MAGNUM" And I specify its code as "44_MAGNUM"
And I name it "44 Magnum" in "English (United States)" And I name it "44 Magnum" in "English (United States)"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I set its "Awesomeness rating" attribute to "80" in "English (United States)" And I set its "Awesomeness rating" attribute to "80" in "English (United States)"

View file

@ -13,8 +13,8 @@ Feature: Adding a new product with text attribute
@ui @javascript @ui @javascript
Scenario: Adding a text attribute to product Scenario: Adding a text attribute to product
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "44_MAGNUM" And I specify its code as "44_MAGNUM"
And I name it "44 Magnum" in "English (United States)" And I name it "44 Magnum" in "English (United States)"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I set its "Gun caliber" attribute to "11 mm" in "English (United States)" And I set its "Gun caliber" attribute to "11 mm" in "English (United States)"

View file

@ -11,16 +11,16 @@ Feature: Toggle the inventory tracking
@ui @ui
Scenario: Disabling inventory for a simple product Scenario: Disabling inventory for a simple product
Given the "Dice Brewing" product is tracked by the inventory Given the "Dice Brewing" product is tracked by the inventory
And I want to modify the "Dice Brewing" product When I want to modify the "Dice Brewing" product
When I disable its inventory tracking And I disable its inventory tracking
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And inventory of this product should not be tracked And inventory of this product should not be tracked
@ui @ui
Scenario: Enabling inventory for a simple product Scenario: Enabling inventory for a simple product
Given I want to modify the "Dice Brewing" product When I want to modify the "Dice Brewing" product
When I enable its inventory tracking And I enable its inventory tracking
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And inventory of this product should be tracked And inventory of this product should be tracked

View file

@ -11,8 +11,8 @@ Feature: Toggle the product
@ui @ui
Scenario: Disabling a simple product Scenario: Disabling a simple product
Given the "Dice Brewing" product is enabled Given the "Dice Brewing" product is enabled
And I want to modify the "Dice Brewing" product When I want to modify the "Dice Brewing" product
When I disable it And I disable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product should be disabled along with its variant And this product should be disabled along with its variant
@ -20,8 +20,8 @@ Feature: Toggle the product
@ui @ui
Scenario: Enabling a simple product Scenario: Enabling a simple product
Given the "Dice Brewing" product is disabled Given the "Dice Brewing" product is disabled
And I want to modify the "Dice Brewing" product When I want to modify the "Dice Brewing" product
When I enable it And I enable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product should be enabled along with its variant And this product should be enabled along with its variant

View file

@ -16,8 +16,8 @@ Feature: Editing a product
@ui @api @ui @api
Scenario: Renaming a simple product Scenario: Renaming a simple product
Given I want to modify the "Dice Brewing" product When I want to modify the "Dice Brewing" product
When I rename it to "7 Wonders" in "English (United States)" And I rename it to "7 Wonders" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product name should be "7 Wonders" And this product name should be "7 Wonders"
@ -25,24 +25,24 @@ Feature: Editing a product
@ui @ui
Scenario: Renaming a simple product does not change its variant name Scenario: Renaming a simple product does not change its variant name
Given this product only variant was renamed to "Dice Brewing: The Game" Given this product only variant was renamed to "Dice Brewing: The Game"
And I want to modify this product When I want to modify this product
When I rename it to "7 Wonders" in "English (United States)" And I rename it to "7 Wonders" in "English (United States)"
And I save my changes And I save my changes
And I want to view all variants of this product And I want to view all variants of this product
Then the first variant in the list should have name "Dice Brewing: The Game" Then the first variant in the list should have name "Dice Brewing: The Game"
@ui @ui
Scenario: Changing a simple product price Scenario: Changing a simple product price
Given I want to modify the "Dice Brewing" product When I want to modify the "Dice Brewing" product
When I change its price to $15.00 for "United States" channel And I change its price to $15.00 for "United States" channel
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And it should be priced at $15.00 for channel "United States" And it should be priced at $15.00 for channel "United States"
@ui @ui
Scenario: Changing a simple product price Scenario: Changing a simple product price
Given I want to modify the "Dice Brewing" product When I want to modify the "Dice Brewing" product
When I change its price to $7.50 for "United States" channel And I change its price to $7.50 for "United States" channel
And I change its original price to "$15.00" for "United States" channel And I change its original price to "$15.00" for "United States" channel
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -52,8 +52,8 @@ Feature: Editing a product
@ui @api @ui @api
Scenario: Renaming a configurable product Scenario: Renaming a configurable product
Given the store has a "Wyborowa Vodka" configurable product Given the store has a "Wyborowa Vodka" configurable product
And I want to modify this product When I want to modify this product
When I rename it to "Sobieski Vodka" in "English (United States)" And I rename it to "Sobieski Vodka" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product name should be "Sobieski Vodka" And this product name should be "Sobieski Vodka"
@ -63,8 +63,8 @@ Feature: Editing a product
Given the store has a "Wyborowa Vodka" configurable product Given the store has a "Wyborowa Vodka" configurable product
And the store has a product option "Bottle size" with a code "bottle_size" And the store has a product option "Bottle size" with a code "bottle_size"
And this product has this product option And this product has this product option
And I want to modify this product When I want to modify this product
When I rename it to "Sobieski Vodka" in "English (United States)" And I rename it to "Sobieski Vodka" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product name should be "Sobieski Vodka" And this product name should be "Sobieski Vodka"
@ -75,8 +75,8 @@ Feature: Editing a product
And the store has a product option "T-Shirt size" with a code "t_shirt_size" And the store has a product option "T-Shirt size" with a code "t_shirt_size"
And the store has a product option "T-Shirt color" with a code "t_shirt_color" And the store has a product option "T-Shirt color" with a code "t_shirt_color"
And this product has a "T-Shirt size" option And this product has a "T-Shirt size" option
And I want to modify this product When I want to modify this product
When I add the "T-Shirt color" option to it And I add the "T-Shirt color" option to it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this product should have a "T-Shirt color" option And this product should have a "T-Shirt color" option

View file

@ -19,8 +19,8 @@ Feature: Editing product's slug
@ui @javascript @api @ui @javascript @api
Scenario: Creating a product with a custom slug Scenario: Creating a product with a custom slug
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "BOARD_MANSION_OF_MADNESS" And I specify its code as "BOARD_MANSION_OF_MADNESS"
And I name it "Mansion of Madness" in "English (United States)" And I name it "Mansion of Madness" in "English (United States)"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I set its slug to "mom-board-game" in "English (United States)" And I set its slug to "mom-board-game" in "English (United States)"

View file

@ -12,8 +12,8 @@ Feature: Editing product's slug in multiple locales
@ui @ui
Scenario: Creating a product with custom slugs Scenario: Creating a product with custom slugs
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "PUG_PUGGINTON_PLUSHIE" And I specify its code as "PUG_PUGGINTON_PLUSHIE"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I name it "Pug Pugginton Plushie" in "English (United States)" And I name it "Pug Pugginton Plushie" in "English (United States)"
@ -26,8 +26,8 @@ Feature: Editing product's slug in multiple locales
@ui @javascript @ui @javascript
Scenario: Creating a product with autogenerated slugs Scenario: Creating a product with autogenerated slugs
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "PUG_PUGGINTON_PLUSHIE" And I specify its code as "PUG_PUGGINTON_PLUSHIE"
And I set its price to "$100.00" for "United States" channel And I set its price to "$100.00" for "United States" channel
And I name it "Pug Pugginton Plushie" in "English (United States)" And I name it "Pug Pugginton Plushie" in "English (United States)"
And I name it "Pluszak Mops Mopsiński" in "Polish (Poland)" And I name it "Pluszak Mops Mopsiński" in "Polish (Poland)"

View file

@ -15,8 +15,8 @@ Feature: Products validation
@ui @ui
Scenario: Adding a new simple product without specifying its code Scenario: Adding a new simple product without specifying its code
Given I want to create a new simple product When I want to create a new simple product
When I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its price to "$10.00" for "Web" channel And I set its price to "$10.00" for "Web" channel
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
@ -25,8 +25,8 @@ Feature: Products validation
@ui @ui
Scenario: Adding a new simple product with duplicated code among products Scenario: Adding a new simple product with duplicated code among products
Given the store has a product "7 Wonders" with code "AWESOME_GAME" Given the store has a product "7 Wonders" with code "AWESOME_GAME"
And I want to create a new simple product When I want to create a new simple product
When I specify its code as "AWESOME_GAME" And I specify its code as "AWESOME_GAME"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its price to "$10.00" for "Web" channel And I set its price to "$10.00" for "Web" channel
And I try to add it And I try to add it
@ -37,8 +37,8 @@ Feature: Products validation
Scenario: Adding a new simple product with duplicated code among product variants Scenario: Adding a new simple product with duplicated code among product variants
Given the store has a product "7 Wonders" Given the store has a product "7 Wonders"
And this product has "7 Wonders: Cities" variant priced at "$30" identified by "AWESOME_GAME" And this product has "7 Wonders: Cities" variant priced at "$30" identified by "AWESOME_GAME"
And I want to create a new simple product When I want to create a new simple product
When I specify its code as "AWESOME_GAME" And I specify its code as "AWESOME_GAME"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its price to "$10.00" for "Web" channel And I set its price to "$10.00" for "Web" channel
And I try to add it And I try to add it
@ -47,8 +47,8 @@ Feature: Products validation
@ui @ui
Scenario: Adding a new simple product without specifying its slug Scenario: Adding a new simple product without specifying its slug
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING" And I specify its code as "BOARD_DICE_BREWING"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I set its price to "$10.00" for "Web" channel And I set its price to "$10.00" for "Web" channel
And I remove its slug And I remove its slug
@ -58,8 +58,8 @@ Feature: Products validation
@ui @ui
Scenario: Adding a new simple product without specifying its name Scenario: Adding a new simple product without specifying its name
Given I want to create a new simple product When I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING" And I specify its code as "BOARD_DICE_BREWING"
And I set its price to "$10.00" for "Web" channel And I set its price to "$10.00" for "Web" channel
And I try to add it And I try to add it
Then I should be notified that name is required Then I should be notified that name is required
@ -80,8 +80,8 @@ Feature: Products validation
@ui @api @ui @api
Scenario: Adding a new configurable product without specifying its code Scenario: Adding a new configurable product without specifying its code
Given I want to create a new configurable product When I want to create a new configurable product
When I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
And product with name "Dice Brewing" should not be added And product with name "Dice Brewing" should not be added
@ -89,8 +89,8 @@ Feature: Products validation
@ui @api @ui @api
Scenario: Adding a new configurable product with duplicated code Scenario: Adding a new configurable product with duplicated code
Given the store has a product "7 Wonders" with code "AWESOME_GAME" Given the store has a product "7 Wonders" with code "AWESOME_GAME"
And I want to create a new configurable product When I want to create a new configurable product
When I specify its code as "AWESOME_GAME" And I specify its code as "AWESOME_GAME"
And I name it "Dice Brewing" in "English (United States)" And I name it "Dice Brewing" in "English (United States)"
And I try to add it And I try to add it
Then I should be notified that code has to be unique Then I should be notified that code has to be unique
@ -108,8 +108,8 @@ Feature: Products validation
@ui @api @ui @api
Scenario: Trying to remove name from existing simple product Scenario: Trying to remove name from existing simple product
Given the store has a "Dice Brewing" product Given the store has a "Dice Brewing" product
And I want to modify this product When I want to modify this product
When I remove its name from "English (United States)" translation And I remove its name from "English (United States)" translation
And I try to save my changes And I try to save my changes
Then I should be notified that name is required Then I should be notified that name is required
And this product should still be named "Dice Brewing" And this product should still be named "Dice Brewing"
@ -117,8 +117,8 @@ Feature: Products validation
@ui @api @ui @api
Scenario: Not seeing validation error for duplicated code if product code has not been changed Scenario: Not seeing validation error for duplicated code if product code has not been changed
Given the store has a "Dice Brewing" product Given the store has a "Dice Brewing" product
And I want to modify this product When I want to modify this product
When I remove its name from "English (United States)" translation And I remove its name from "English (United States)" translation
And I try to save my changes And I try to save my changes
Then this product should still be named "Dice Brewing" Then this product should still be named "Dice Brewing"
@ -136,8 +136,8 @@ Feature: Products validation
@ui @ui
Scenario: Adding a new simple product with price Scenario: Adding a new simple product with price
Given the store has a "7 Wonders" configurable product with "7-wonders" slug Given the store has a "7 Wonders" configurable product with "7-wonders" slug
And I want to create a new configurable product When I want to create a new configurable product
When I specify its code as "7-WONDERS-BABEL" And I specify its code as "7-WONDERS-BABEL"
And I name it "7 Wonders Babel" in "English (United States)" And I name it "7 Wonders Babel" in "English (United States)"
And I set its slug to "7-wonders" in "English (United States)" And I set its slug to "7-wonders" in "English (United States)"
And I add it And I add it

View file

@ -12,8 +12,8 @@ Feature: Adding a new coupon
@ui @ui
Scenario: Adding a new coupon Scenario: Adding a new coupon
Given I want to create a new coupon for this promotion When I want to create a new coupon for this promotion
When I specify its code as "SANTA2016" And I specify its code as "SANTA2016"
And I limit its usage to 100 times And I limit its usage to 100 times
And I limit its per customer usage to 50 times And I limit its per customer usage to 50 times
And I make it valid until "21.04.2017" And I make it valid until "21.04.2017"

View file

@ -11,6 +11,6 @@ Feature: Browsing promotion coupons
@ui @ui
Scenario: Browsing coupons in store Scenario: Browsing coupons in store
Given I want to view all coupons of this promotion When I want to view all coupons of this promotion
Then there should be 1 coupon related to this promotion And there should be 1 coupon related to this promotion
And there should be coupon with code "SANTA2016" And there should be coupon with code "SANTA2016"

View file

@ -11,8 +11,8 @@ Feature: Coupon unique code validation
@ui @ui
Scenario: Trying to add coupon with taken code Scenario: Trying to add coupon with taken code
Given I want to create a new coupon for this promotion When I want to create a new coupon for this promotion
When I specify its code as "SANTA2016" And I specify its code as "SANTA2016"
And I limit its usage to 30 times And I limit its usage to 30 times
And I limit its per customer usage to 50 times And I limit its per customer usage to 50 times
And I make it valid until "26.03.2017" And I make it valid until "26.03.2017"

View file

@ -12,8 +12,8 @@ Feature: Coupon validation
@ui @ui
Scenario: Trying to add a new coupon without specifying its code Scenario: Trying to add a new coupon without specifying its code
Given I want to create a new coupon for this promotion When I want to create a new coupon for this promotion
When I do not specify its code And I do not specify its code
And I limit its usage to 30 times And I limit its usage to 30 times
And I limit its per customer usage to 40 times And I limit its per customer usage to 40 times
And I make it valid until "26.03.2017" And I make it valid until "26.03.2017"
@ -23,8 +23,8 @@ Feature: Coupon validation
@ui @ui
Scenario: Trying to add a new coupon with usage limit below one Scenario: Trying to add a new coupon with usage limit below one
Given I want to create a new coupon for this promotion When I want to create a new coupon for this promotion
When I specify its code as "SANTA2016" And I specify its code as "SANTA2016"
And I limit its usage to "-1" times And I limit its usage to "-1" times
And I limit its per customer usage to 25 times And I limit its per customer usage to 25 times
And I make it valid until "26.03.2017" And I make it valid until "26.03.2017"

View file

@ -11,29 +11,29 @@ Feature: Editing promotion coupon
@ui @ui
Scenario: Changing coupon expires date Scenario: Changing coupon expires date
Given I want to modify the "SANTA2016" coupon for this promotion When I want to modify the "SANTA2016" coupon for this promotion
When I change expires date to "21.05.2019" And I change expires date to "21.05.2019"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this coupon should be valid until "21.05.2019" And this coupon should be valid until "21.05.2019"
@ui @ui
Scenario: Changing coupons usage limit Scenario: Changing coupons usage limit
Given I want to modify the "SANTA2016" coupon for this promotion When I want to modify the "SANTA2016" coupon for this promotion
When I change its usage limit to 50 And I change its usage limit to 50
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this coupon should have 50 usage limit And this coupon should have 50 usage limit
@ui @ui
Scenario: Changing coupons per customer usage limit Scenario: Changing coupons per customer usage limit
Given I want to modify the "SANTA2016" coupon for this promotion When I want to modify the "SANTA2016" coupon for this promotion
When I change its per customer usage limit to 20 And I change its per customer usage limit to 20
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this coupon should have 20 per customer usage limit And this coupon should have 20 per customer usage limit
@ui @ui
Scenario: Seeing a disabled code field when editing a coupon Scenario: Seeing a disabled code field when editing a coupon
Given I want to modify the "SANTA2016" coupon for this promotion When I want to modify the "SANTA2016" coupon for this promotion
Then the code field should be disabled Then the code field should be disabled

View file

@ -10,8 +10,8 @@ Feature: Adding a new promotion
@ui @ui
Scenario: Adding a new promotion Scenario: Adding a new promotion
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION" And I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion" And I name it "Full metal promotion"
And I add it And I add it
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created
@ -19,8 +19,8 @@ Feature: Adding a new promotion
@ui @ui
Scenario: Adding a new promotion with usage limit Scenario: Adding a new promotion with usage limit
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION" And I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion" And I name it "Full metal promotion"
And I set its usage limit to 50 And I set its usage limit to 50
And I add it And I add it
@ -29,8 +29,8 @@ Feature: Adding a new promotion
@ui @ui
Scenario: Adding a new exclusive promotion Scenario: Adding a new exclusive promotion
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION" And I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion" And I name it "Full metal promotion"
And I make it exclusive And I make it exclusive
And I add it And I add it
@ -39,8 +39,8 @@ Feature: Adding a new promotion
@ui @ui
Scenario: Adding a new coupon based promotion Scenario: Adding a new coupon based promotion
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION" And I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion" And I name it "Full metal promotion"
And I make it coupon based And I make it coupon based
And I add it And I add it
@ -49,8 +49,8 @@ Feature: Adding a new promotion
@ui @ui
Scenario: Adding a new channels promotion Scenario: Adding a new channels promotion
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION" And I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion" And I name it "Full metal promotion"
And I make it applicable for the "United States" channel And I make it applicable for the "United States" channel
And I add it And I add it
@ -59,8 +59,8 @@ Feature: Adding a new promotion
@ui @ui
Scenario: Adding a promotion with start and end date Scenario: Adding a promotion with start and end date
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION" And I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion" And I name it "Full metal promotion"
And I make it available from "21.04.2017" to "21.05.2017" And I make it available from "21.04.2017" to "21.05.2017"
And I add it And I add it

View file

@ -11,8 +11,8 @@ Feature: Adding a new promotion with rule
@ui @javascript @ui @javascript
Scenario: Adding a new promotion with taxon rule Scenario: Adding a new promotion with taxon rule
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "HOLIDAY_SALE" And I specify its code as "HOLIDAY_SALE"
And I name it "Holiday sale" And I name it "Holiday sale"
And I add the "Has at least one from taxons" rule configured with "T-Shirts" and "Mugs" And I add the "Has at least one from taxons" rule configured with "T-Shirts" and "Mugs"
And I add it And I add it
@ -21,8 +21,8 @@ Feature: Adding a new promotion with rule
@ui @javascript @ui @javascript
Scenario: Adding a new promotion with total price of items from taxon rule Scenario: Adding a new promotion with total price of items from taxon rule
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "100_MUGS_PROMOTION" And I specify its code as "100_MUGS_PROMOTION"
And I name it "100 Mugs promotion" And I name it "100 Mugs promotion"
And I add the "Total price of items from taxon" rule configured with "Mugs" taxon and $100 amount for "United States" channel And I add the "Total price of items from taxon" rule configured with "Mugs" taxon and $100 amount for "United States" channel
And I add it And I add it
@ -32,8 +32,8 @@ Feature: Adding a new promotion with rule
@ui @javascript @ui @javascript
Scenario: Adding a new promotion with contains product rule Scenario: Adding a new promotion with contains product rule
Given the store has a product "PHP T-Shirt" priced at "$100.00" Given the store has a product "PHP T-Shirt" priced at "$100.00"
And I want to create a new promotion When I want to create a new promotion
When I specify its code as "PHP_TSHIRT_PROMOTION" And I specify its code as "PHP_TSHIRT_PROMOTION"
And I name it "PHP T-Shirt promotion" And I name it "PHP T-Shirt promotion"
And I add the "Contains product" rule configured with the "PHP T-Shirt" product And I add the "Contains product" rule configured with the "PHP T-Shirt" product
And I add it And I add it

View file

@ -11,8 +11,8 @@ Feature: Adding a new promotion with rule configured in different channels
@ui @javascript @ui @javascript
Scenario: Adding a new promotion with total price of items from taxon rule Scenario: Adding a new promotion with total price of items from taxon rule
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "100_IN_EVERY_CURRENCY" And I specify its code as "100_IN_EVERY_CURRENCY"
And I name it "100 in every currency" And I name it "100 in every currency"
And I add the "Item total" rule configured with 100 amount for "United States" channel and £100 amount for "Web-GB" channel And I add the "Item total" rule configured with 100 amount for "United States" channel and £100 amount for "Web-GB" channel
And I add it And I add it

View file

@ -11,13 +11,13 @@ Feature: Browsing promotions
@ui @api @ui @api
Scenario: Browsing promotions Scenario: Browsing promotions
Given I want to browse promotions When I want to browse promotions
Then I should see a single promotion in the list Then I should see a single promotion in the list
And the "Basic promotion" promotion should exist in the registry And the "Basic promotion" promotion should exist in the registry
@ui @api @ui @api
Scenario: Browsing manage button for coupon based promotion Scenario: Browsing manage button for coupon based promotion
Given the store has promotion "Christmas sale" with coupon "Santa's gift" Given the store has promotion "Christmas sale" with coupon "Santa's gift"
And I want to browse promotions When I want to browse promotions
Then this promotion should be coupon based Then this promotion should be coupon based
And I should be able to manage coupons for this promotion And I should be able to manage coupons for this promotion

View file

@ -17,40 +17,40 @@ Feature: Editing promotion
@ui @ui
Scenario: Editing promotions usage limit Scenario: Editing promotions usage limit
Given I want to modify a "Christmas sale" promotion When I want to modify a "Christmas sale" promotion
When I set its usage limit to 50 And I set its usage limit to 50
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the "Christmas sale" promotion should be available to be used only 50 times And the "Christmas sale" promotion should be available to be used only 50 times
@ui @ui
Scenario: Editing promotion exclusiveness Scenario: Editing promotion exclusiveness
Given I want to modify a "Christmas sale" promotion When I want to modify a "Christmas sale" promotion
When I make it exclusive And I make it exclusive
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the "Christmas sale" promotion should be exclusive And the "Christmas sale" promotion should be exclusive
@ui @ui
Scenario: Editing promotions coupon based option Scenario: Editing promotions coupon based option
Given I want to modify a "Christmas sale" promotion When I want to modify a "Christmas sale" promotion
When I make it coupon based And I make it coupon based
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the "Christmas sale" promotion should be coupon based And the "Christmas sale" promotion should be coupon based
@ui @ui
Scenario: Editing promotions channels Scenario: Editing promotions channels
Given I want to modify a "Christmas sale" promotion When I want to modify a "Christmas sale" promotion
When I make it applicable for the "United States" channel And I make it applicable for the "United States" channel
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the "Christmas sale" promotion should be applicable for the "United States" channel And the "Christmas sale" promotion should be applicable for the "United States" channel
@ui @ui
Scenario: Editing a promotion with start and end date Scenario: Editing a promotion with start and end date
Given I want to modify a "Christmas sale" promotion When I want to modify a "Christmas sale" promotion
When I make it available from "12.12.2017" to "24.12.2017" And I make it available from "12.12.2017" to "24.12.2017"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the "Christmas sale" promotion should be available from "12.12.2017" to "24.12.2017" And the "Christmas sale" promotion should be available from "12.12.2017" to "24.12.2017"
@ -63,8 +63,8 @@ Feature: Editing promotion
@ui @ui
Scenario: Remove priority from existing promotion Scenario: Remove priority from existing promotion
Given I want to modify a "Christmas sale" promotion When I want to modify a "Christmas sale" promotion
When I remove its priority And I remove its priority
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And the "Christmas sale" promotion should have priority 1 And the "Christmas sale" promotion should have priority 1

View file

@ -11,8 +11,8 @@ Feature: Promotion unique code validation
@ui @ui
Scenario: Trying to add promotion with taken code Scenario: Trying to add promotion with taken code
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "NO_VAT" And I specify its code as "NO_VAT"
And I name it "No VAT promotion" And I name it "No VAT promotion"
And I try to add it And I try to add it
Then I should be notified that promotion with this code already exists Then I should be notified that promotion with this code already exists

View file

@ -10,8 +10,8 @@ Feature: Promotion validation
@ui @ui
Scenario: Trying to add a new promotion without specifying its code Scenario: Trying to add a new promotion without specifying its code
Given I want to create a new promotion When I want to create a new promotion
When I name it "No-VAT promotion" And I name it "No-VAT promotion"
And I do not specify its code And I do not specify its code
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
@ -19,8 +19,8 @@ Feature: Promotion validation
@ui @ui
Scenario: Trying to add a new promotion without specifying its name Scenario: Trying to add a new promotion without specifying its name
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "no_vat_promotion" And I specify its code as "no_vat_promotion"
But I do not name it But I do not name it
And I try to add it And I try to add it
Then I should be notified that name is required Then I should be notified that name is required
@ -28,8 +28,8 @@ Feature: Promotion validation
@ui @ui
Scenario: Adding a promotion with start date set up after end date Scenario: Adding a promotion with start date set up after end date
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "FULL_METAL_PROMOTION" And I specify its code as "FULL_METAL_PROMOTION"
And I name it "Full metal promotion" And I name it "Full metal promotion"
And I make it available from "24.12.2017" to "12.12.2017" And I make it available from "24.12.2017" to "12.12.2017"
And I try to add it And I try to add it
@ -38,8 +38,8 @@ Feature: Promotion validation
@ui @ui
Scenario: Trying to remove name from existing promotion Scenario: Trying to remove name from existing promotion
Given there is a promotion "Christmas sale" Given there is a promotion "Christmas sale"
And I want to modify this promotion When I want to modify this promotion
When I remove its name And I remove its name
And I try to save my changes And I try to save my changes
Then I should be notified that name is required Then I should be notified that name is required
And this promotion should still be named "Christmas sale" And this promotion should still be named "Christmas sale"
@ -47,15 +47,15 @@ Feature: Promotion validation
@ui @ui
Scenario: Trying to add start later then end date for existing promotion Scenario: Trying to add start later then end date for existing promotion
Given there is a promotion "Christmas sale" Given there is a promotion "Christmas sale"
And I want to modify this promotion When I want to modify this promotion
And I make it available from "24.12.2017" to "12.12.2017" And I make it available from "24.12.2017" to "12.12.2017"
And I try to save my changes And I try to save my changes
Then I should be notified that promotion cannot end before it start Then I should be notified that promotion cannot end before it start
@ui @javascript @ui @javascript
Scenario: Trying to add a new promotion without specifying a percentage discount Scenario: Trying to add a new promotion without specifying a percentage discount
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "christmas_sale" And I specify its code as "christmas_sale"
And I name it "Christmas sale" And I name it "Christmas sale"
And I add the "Order percentage discount" action configured without a percentage value And I add the "Order percentage discount" action configured without a percentage value
And I try to add it And I try to add it
@ -64,8 +64,8 @@ Feature: Promotion validation
@ui @javascript @ui @javascript
Scenario: Trying to add a new promotion with a wrong percentage discount Scenario: Trying to add a new promotion with a wrong percentage discount
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "christmas_sale" And I specify its code as "christmas_sale"
And I name it "Christmas sale" And I name it "Christmas sale"
And I add the "Order percentage discount" action configured with a percentage value of 120% And I add the "Order percentage discount" action configured with a percentage value of 120%
And I try to add it And I try to add it
@ -74,8 +74,8 @@ Feature: Promotion validation
@ui @javascript @ui @javascript
Scenario: Trying to add a new promotion with a negative percentage discount Scenario: Trying to add a new promotion with a negative percentage discount
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "christmas_sale" And I specify its code as "christmas_sale"
And I name it "Christmas sale" And I name it "Christmas sale"
And I add the "Order percentage discount" action configured with a percentage value of -20% And I add the "Order percentage discount" action configured with a percentage value of -20%
And I try to add it And I try to add it

View file

@ -10,8 +10,8 @@ Feature: Promotion filters validation
@ui @javascript @ui @javascript
Scenario: Adding a promotion with wrong minimum price on price range filter Scenario: Adding a promotion with wrong minimum price on price range filter
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "10_for_all_products_over_10" And I specify its code as "10_for_all_products_over_10"
And I name it "$10 discount for all products over $10!" And I name it "$10 discount for all products over $10!"
And I add the "Item percentage discount" action configured with a percentage value of 10% for "United States" channel And I add the "Item percentage discount" action configured with a percentage value of 10% for "United States" channel
And I specify that on "United States" channel this action should be applied to items with price greater then "$asdasd" And I specify that on "United States" channel this action should be applied to items with price greater then "$asdasd"
@ -21,8 +21,8 @@ Feature: Promotion filters validation
@ui @javascript @ui @javascript
Scenario: Adding a promotion with wrong maximum price on price range filter Scenario: Adding a promotion with wrong maximum price on price range filter
Given I want to create a new promotion When I want to create a new promotion
When I specify its code as "10_for_all_products_over_10" And I specify its code as "10_for_all_products_over_10"
And I name it "$10 discount for (almost) all products!" And I name it "$10 discount for (almost) all products!"
And I add the "Item percentage discount" action configured with a percentage value of 10% for "United States" channel And I add the "Item percentage discount" action configured with a percentage value of 10% for "United States" channel
And I specify that on "United States" channel this action should be applied to items with price lesser then "$asdasda" And I specify that on "United States" channel this action should be applied to items with price lesser then "$asdasda"

View file

@ -10,8 +10,8 @@ Feature: Adding a new shipping category
@ui @api @ui @api
Scenario: Adding a new shipping category with detailed information Scenario: Adding a new shipping category with detailed information
Given I want to create a new shipping category When I want to create a new shipping category
When I specify its code as "OVER_SIZED" And I specify its code as "OVER_SIZED"
And I name it "Over sized" And I name it "Over sized"
And I specify its description as "Shipping method with huge dimension" And I specify its description as "Shipping method with huge dimension"
And I add it And I add it

View file

@ -16,8 +16,8 @@ Feature: Editing shipping method
@ui @api @ui @api
Scenario: Renaming the shipping category Scenario: Renaming the shipping category
Given I want to modify a shipping category "Standard" When I want to modify a shipping category "Standard"
When I rename it to "Normal" And I rename it to "Normal"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this shipping category name should be "Normal" And this shipping category name should be "Normal"

View file

@ -11,8 +11,8 @@ Feature: Shipping category unique code validation
@ui @api @ui @api
Scenario: Trying to add shipping category with taken code Scenario: Trying to add shipping category with taken code
Given I want to create a new shipping category When I want to create a new shipping category
When I specify its code as "STANDARD" And I specify its code as "STANDARD"
And I name it "Normal" And I name it "Normal"
And I try to add it And I try to add it
Then I should be notified that shipping category with this code already exists Then I should be notified that shipping category with this code already exists

View file

@ -12,8 +12,8 @@ Feature: Editing shipping method
@todo @todo
Scenario: Trying to change shipping method code Scenario: Trying to change shipping method code
Given I want to modify a shipping method "UPS Carrier" When I want to modify a shipping method "UPS Carrier"
When I change its code to "UPS" And I change its code to "UPS"
And I save my changes And I save my changes
Then I should be notified that code cannot be changed Then I should be notified that code cannot be changed
And shipping method "UPS Carrier" should still have code "UPS_CARRIER" And shipping method "UPS Carrier" should still have code "UPS_CARRIER"
@ -25,8 +25,8 @@ Feature: Editing shipping method
@ui @api @ui @api
Scenario: Renaming the shipping method Scenario: Renaming the shipping method
Given I want to modify a shipping method "UPS Carrier" When I want to modify a shipping method "UPS Carrier"
When I rename it to "UPS Transport" in "English (United States)" And I rename it to "UPS Transport" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this shipping method name should be "UPS Transport" And this shipping method name should be "UPS Transport"

View file

@ -12,8 +12,8 @@ Feature: Shipping method code validation
@ui @ui
Scenario: Trying to add a new shipping method with special symbols in the code Scenario: Trying to add a new shipping method with special symbols in the code
Given I want to create a new shipping method When I want to create a new shipping method
When I name it "FedEx Carrier" in "English (United States)" And I name it "FedEx Carrier" in "English (United States)"
And I specify its code as "#π/" And I specify its code as "#π/"
And I try to add it And I try to add it
Then I should be notified that code needs to contain only specific symbols Then I should be notified that code needs to contain only specific symbols
@ -21,8 +21,8 @@ Feature: Shipping method code validation
@ui @ui
Scenario: Trying to add a new shipping method with spaces in the code Scenario: Trying to add a new shipping method with spaces in the code
Given I want to create a new shipping method When I want to create a new shipping method
When I name it "FedEx Carrier" in "English (United States)" And I name it "FedEx Carrier" in "English (United States)"
And I specify its code as "PEC -PEC" And I specify its code as "PEC -PEC"
And I try to add it And I try to add it
Then I should be notified that code needs to contain only specific symbols Then I should be notified that code needs to contain only specific symbols
@ -30,8 +30,8 @@ Feature: Shipping method code validation
@ui @javascript @ui @javascript
Scenario: Trying to add a new shipping method with Scenario: Trying to add a new shipping method with
Given I want to create a new shipping method When I want to create a new shipping method
When I name it "FedEx Carrier First US Division" in "English (United States)" And I name it "FedEx Carrier First US Division" in "English (United States)"
And I specify its code as "PEC-US_01" And I specify its code as "PEC-US_01"
And I define it for the zone named "United States" And I define it for the zone named "United States"
And I choose "Flat rate per shipment" calculator And I choose "Flat rate per shipment" calculator

View file

@ -13,8 +13,8 @@ Feature: Shipping method unique code validation
@ui @api @javascript @ui @api @javascript
Scenario: Trying to add shipping method with taken code Scenario: Trying to add shipping method with taken code
Given I want to create a new shipping method When I want to create a new shipping method
When I specify its code as "UPS" And I specify its code as "UPS"
And I name it "FedEx Carrier" in "English (United States)" And I name it "FedEx Carrier" in "English (United States)"
And I define it for the zone named "United States" And I define it for the zone named "United States"
And I choose "Flat rate per shipment" calculator And I choose "Flat rate per shipment" calculator

View file

@ -20,8 +20,8 @@ Feature: Shipping method validation
@ui @api @ui @api
Scenario: Trying to add a new shipping method without specifying its name Scenario: Trying to add a new shipping method without specifying its name
Given I want to create a new shipping method When I want to create a new shipping method
When I specify its code as "FED_EX" And I specify its code as "FED_EX"
But I do not name it But I do not name it
And I try to add it And I try to add it
Then I should be notified that name is required Then I should be notified that name is required
@ -40,8 +40,8 @@ Feature: Shipping method validation
@ui @api @ui @api
Scenario: Trying to remove name from existing shipping method Scenario: Trying to remove name from existing shipping method
Given the store allows shipping with "UPS Ground" Given the store allows shipping with "UPS Ground"
And I want to modify this shipping method When I want to modify this shipping method
When I remove its name from "English (United States)" translation And I remove its name from "English (United States)" translation
And I try to save my changes And I try to save my changes
Then I should be notified that name is required Then I should be notified that name is required
And this shipping method should still be named "UPS Ground" And this shipping method should still be named "UPS Ground"
@ -49,7 +49,7 @@ Feature: Shipping method validation
@ui @ui
Scenario: Trying to remove zone from existing shipping method Scenario: Trying to remove zone from existing shipping method
Given the store allows shipping with "UPS Ground" Given the store allows shipping with "UPS Ground"
And I want to modify this shipping method When I want to modify this shipping method
When I remove its zone And I remove its zone
And I try to save my changes And I try to save my changes
Then I should be notified that zone has to be selected Then I should be notified that zone has to be selected

View file

@ -12,8 +12,8 @@ Feature: Toggling a shipping method
@ui @api @ui @api
Scenario: Disabling the shipping method Scenario: Disabling the shipping method
Given the shipping method "UPS Carrier" is enabled Given the shipping method "UPS Carrier" is enabled
And I want to modify this shipping method When I want to modify this shipping method
When I disable it And I disable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this shipping method should be disabled And this shipping method should be disabled
@ -21,8 +21,8 @@ Feature: Toggling a shipping method
@ui @api @ui @api
Scenario: Enabling the shipping method Scenario: Enabling the shipping method
Given the shipping method "UPS Carrier" is disabled Given the shipping method "UPS Carrier" is disabled
And I want to modify this shipping method When I want to modify this shipping method
When I enable it And I enable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this shipping method should be enabled And this shipping method should be enabled

View file

@ -10,8 +10,8 @@ Feature: Editing tax category
@todo @todo
Scenario: Trying to change tax category code Scenario: Trying to change tax category code
Given I want to modify a tax category "Alcohol" When I want to modify a tax category "Alcohol"
When I change its code to "beverages" And I change its code to "beverages"
And I save my changes And I save my changes
Then I should be notified that code cannot be changed Then I should be notified that code cannot be changed
And tax category "Alcohol" should still have code "alcohol" And tax category "Alcohol" should still have code "alcohol"

View file

@ -9,8 +9,8 @@ Feature: Tax category validation
@ui @api @ui @api
Scenario: Trying to add a new tax category without specifying its code Scenario: Trying to add a new tax category without specifying its code
Given I want to create a new tax category When I want to create a new tax category
When I name it "Food and Beverage" And I name it "Food and Beverage"
But I do not specify its code But I do not specify its code
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required

View file

@ -11,8 +11,8 @@ Feature: Adding a new tax rate
@ui @ui
Scenario: Adding a new tax rate Scenario: Adding a new tax rate
Given I want to create a new tax rate When I want to create a new tax rate
When I specify its code as "US_SALES_TAX" And I specify its code as "US_SALES_TAX"
And I name it "United States Sales Tax" And I name it "United States Sales Tax"
And I define it for the "United States" zone And I define it for the "United States" zone
And I make it applicable for the "Food and Beverage" tax category And I make it applicable for the "Food and Beverage" tax category
@ -24,8 +24,8 @@ Feature: Adding a new tax rate
@ui @javascript @ui @javascript
Scenario: Adding a new tax rate which will be included in product price Scenario: Adding a new tax rate which will be included in product price
Given I want to create a new tax rate When I want to create a new tax rate
When I specify its code as "US_SALES_TAX" And I specify its code as "US_SALES_TAX"
And I name it "United States Sales Tax" And I name it "United States Sales Tax"
And I define it for the "United States" zone And I define it for the "United States" zone
And I make it applicable for the "Food and Beverage" tax category And I make it applicable for the "Food and Beverage" tax category

View file

@ -12,8 +12,8 @@ Feature: Editing tax rate
@todo @todo
Scenario: Trying to change tax rate code Scenario: Trying to change tax rate code
Given I want to modify a tax rate "United States Sales Tax" When I want to modify a tax rate "United States Sales Tax"
When I change its code to "us_vat" And I change its code to "us_vat"
And I save my changes And I save my changes
Then I should be notified that code cannot be changed Then I should be notified that code cannot be changed
And tax rate "United States Sales Tax" should still have code "united_states_sales_tax" And tax rate "United States Sales Tax" should still have code "united_states_sales_tax"
@ -25,16 +25,16 @@ Feature: Editing tax rate
@ui @ui
Scenario: Renaming the tax rate Scenario: Renaming the tax rate
Given I want to modify a tax rate "United States Sales Tax" When I want to modify a tax rate "United States Sales Tax"
When I rename it to "US VAT" And I rename it to "US VAT"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this tax rate name should be "US VAT" And this tax rate name should be "US VAT"
@ui @ui
Scenario: Changing the tax rate amount Scenario: Changing the tax rate amount
Given I want to modify a tax rate "United States Sales Tax" When I want to modify a tax rate "United States Sales Tax"
When I specify its amount as 16% And I specify its amount as 16%
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this tax rate amount should be 16% And this tax rate amount should be 16%
@ -42,8 +42,8 @@ Feature: Editing tax rate
@ui @ui
Scenario: Changing related tax category Scenario: Changing related tax category
Given the store has a tax category "Food and Beverage" also Given the store has a tax category "Food and Beverage" also
And I want to modify a tax rate "United States Sales Tax" When I want to modify a tax rate "United States Sales Tax"
When I change it to be applicable for the "Food and Beverage" tax category And I change it to be applicable for the "Food and Beverage" tax category
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this tax rate should be applicable for the "Food and Beverage" tax category And this tax rate should be applicable for the "Food and Beverage" tax category
@ -51,8 +51,8 @@ Feature: Editing tax rate
@ui @ui
Scenario: Changing related zone Scenario: Changing related zone
Given there is a zone "The Rest of the World" containing all other countries Given there is a zone "The Rest of the World" containing all other countries
And I want to modify a tax rate "United States Sales Tax" When I want to modify a tax rate "United States Sales Tax"
When I change its zone to "The Rest of the World" And I change its zone to "The Rest of the World"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this tax rate should be applicable in "The Rest of the World" zone And this tax rate should be applicable in "The Rest of the World" zone

View file

@ -12,8 +12,8 @@ Feature: Tax rate unique code validation
@ui @ui
Scenario: Trying to add tax rate with taken code Scenario: Trying to add tax rate with taken code
Given I want to create a new tax rate When I want to create a new tax rate
When I specify its code as "UNITED_STATES_SALES_TAX" And I specify its code as "UNITED_STATES_SALES_TAX"
And I name it "United States Sales Tax" And I name it "United States Sales Tax"
And I define it for the "United States" zone And I define it for the "United States" zone
And I make it applicable for the "Sports gear" tax category And I make it applicable for the "Sports gear" tax category

View file

@ -11,8 +11,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to add a new tax rate without specifying its code Scenario: Trying to add a new tax rate without specifying its code
Given I want to create a new tax rate When I want to create a new tax rate
When I name it "Food and Beverage Tax Rates" And I name it "Food and Beverage Tax Rates"
But I do not specify its code But I do not specify its code
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
@ -20,8 +20,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to add a new tax rate without specifying its amount Scenario: Trying to add a new tax rate without specifying its amount
Given I want to create a new tax rate When I want to create a new tax rate
When I name it "Food and Beverage Tax Rates" And I name it "Food and Beverage Tax Rates"
But I do not specify its amount But I do not specify its amount
And I try to add it And I try to add it
Then I should be notified that amount is required Then I should be notified that amount is required
@ -29,8 +29,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to add a new tax rate without specifying its name Scenario: Trying to add a new tax rate without specifying its name
Given I want to create a new tax rate When I want to create a new tax rate
When I specify its code as "UNITED_STATES_SALES_TAX" And I specify its code as "UNITED_STATES_SALES_TAX"
But I do not name it But I do not name it
And I try to add it And I try to add it
Then I should be notified that name is required Then I should be notified that name is required
@ -39,8 +39,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to add a new tax rate without specifying its zone Scenario: Trying to add a new tax rate without specifying its zone
Given the store does not have any zones defined Given the store does not have any zones defined
And I want to create a new tax rate When I want to create a new tax rate
When I name it "Food and Beverage Tax Rates" And I name it "Food and Beverage Tax Rates"
But I do not specify its zone But I do not specify its zone
And I try to add it And I try to add it
Then I should be notified that zone has to be selected Then I should be notified that zone has to be selected
@ -49,8 +49,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to add a new tax rate without specifying its category Scenario: Trying to add a new tax rate without specifying its category
Given the store does not have any categories defined Given the store does not have any categories defined
And I want to create a new tax rate When I want to create a new tax rate
When I name it "Food and Beverage Tax Rates" And I name it "Food and Beverage Tax Rates"
But I do not specify related tax category But I do not specify related tax category
And I try to add it And I try to add it
Then I should be notified that category has to be selected Then I should be notified that category has to be selected
@ -59,8 +59,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to remove amount from existing tax rate Scenario: Trying to remove amount from existing tax rate
Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within the "US" zone Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within the "US" zone
And I want to modify this tax rate When I want to modify this tax rate
When I remove its amount And I remove its amount
And I try to save my changes And I try to save my changes
Then I should be notified that amount is required Then I should be notified that amount is required
And this tax rate amount should still be 20% And this tax rate amount should still be 20%
@ -68,8 +68,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to remove name from existing tax rate Scenario: Trying to remove name from existing tax rate
Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within the "US" zone Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within the "US" zone
And I want to modify this tax rate When I want to modify this tax rate
When I remove its name And I remove its name
And I try to save my changes And I try to save my changes
Then I should be notified that name is required Then I should be notified that name is required
And this tax rate should still be named "United States Sales Tax" And this tax rate should still be named "United States Sales Tax"
@ -77,8 +77,8 @@ Feature: Tax rate validation
@ui @ui
Scenario: Trying to remove zone from existing tax rate Scenario: Trying to remove zone from existing tax rate
Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within the "US" zone Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within the "US" zone
And I want to modify this tax rate When I want to modify this tax rate
When I remove its zone And I remove its zone
And I try to save my changes And I try to save my changes
Then I should be notified that zone has to be selected Then I should be notified that zone has to be selected

View file

@ -11,24 +11,24 @@ Feature: Adding images to an existing taxon
@ui @javascript @ui @javascript
Scenario: Adding a single image to an existing taxon Scenario: Adding a single image to an existing taxon
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type And I attach the "t-shirts.jpg" image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should have an image with "banner" type And this taxon should have an image with "banner" type
@ui @javascript @ui @javascript
Scenario: Adding a single image to an existing taxon without specifying the type Scenario: Adding a single image to an existing taxon without specifying the type
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image And I attach the "t-shirts.jpg" image
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should have only one image And this taxon should have only one image
@ui @javascript @ui @javascript
Scenario: Adding multiple images to an existing taxon Scenario: Adding multiple images to an existing taxon
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "thumbnail" type And I attach the "t-shirts.jpg" image with "thumbnail" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -37,8 +37,8 @@ Feature: Adding images to an existing taxon
@ui @javascript @ui @javascript
Scenario: Adding multiple images of the same type to an existing taxon Scenario: Adding multiple images of the same type to an existing taxon
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "banner" type And I attach the "t-shirts.jpg" image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited

View file

@ -10,8 +10,8 @@ Feature: Adding a new taxon
@ui @ui
Scenario: Adding a new taxon Scenario: Adding a new taxon
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "t-shirts" And I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)" And I name it "T-Shirts" in "English (United States)"
And I set its slug to "t-shirts" in "English (United States)" And I set its slug to "t-shirts" in "English (United States)"
And I add it And I add it
@ -20,8 +20,8 @@ Feature: Adding a new taxon
@ui @ui
Scenario: Adding a new taxon with slug and description Scenario: Adding a new taxon with slug and description
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "category" And I specify its code as "category"
And I name it "Category" in "English (United States)" And I name it "Category" in "English (United States)"
And I set its slug to "category" in "English (United States)" And I set its slug to "category" in "English (United States)"
And I describe it as "Main taxonomy for products." in "English (United States)" And I describe it as "Main taxonomy for products." in "English (United States)"

View file

@ -11,7 +11,7 @@ Feature: Adding a new taxon for parent
@ui @ui
Scenario: Adding a new taxon for specific parent taxon Scenario: Adding a new taxon for specific parent taxon
Given I want to create a new taxon for "Category" When I want to create a new taxon for "Category"
And I specify its code as "guns" And I specify its code as "guns"
And I name it "Guns" in "English (United States)" And I name it "Guns" in "English (United States)"
And I set its slug to "guns" in "English (United States)" And I set its slug to "guns" in "English (United States)"

View file

@ -11,7 +11,7 @@ Feature: Adding a new taxon with parent specified
@ui @javascript @ui @javascript
Scenario: Adding a new taxon with parent Scenario: Adding a new taxon with parent
Given I want to create a new taxon When I want to create a new taxon
And I set its parent taxon to "category" And I set its parent taxon to "category"
And I specify its code as "guns" And I specify its code as "guns"
And I name it "Guns" in "English (United States)" And I name it "Guns" in "English (United States)"

View file

@ -10,8 +10,8 @@ Feature: Adding a new taxon with images
@ui @javascript @ui @javascript
Scenario: Adding a new taxon with a single image Scenario: Adding a new taxon with a single image
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "t-shirts" And I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)" And I name it "T-Shirts" in "English (United States)"
And I attach the "t-shirts.jpg" image with "banner" type And I attach the "t-shirts.jpg" image with "banner" type
And I add it And I add it
@ -21,8 +21,8 @@ Feature: Adding a new taxon with images
@ui @javascript @ui @javascript
Scenario: Adding a new taxon with multiple images Scenario: Adding a new taxon with multiple images
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "t-shirts" And I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)" And I name it "T-Shirts" in "English (United States)"
And I attach the "t-shirts.jpg" image with "banner" type And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "thumbnail" type And I attach the "t-shirts.jpg" image with "thumbnail" type

View file

@ -10,6 +10,6 @@ Feature: Browsing taxons
@ui @ui
Scenario: Browsing taxons in store Scenario: Browsing taxons in store
Given I want to see all taxons in store When I want to see all taxons in store
Then I should see 2 taxons on the list Then I should see 2 taxons on the list
And I should see the taxon named "T-Shirts" in the list And I should see the taxon named "T-Shirts" in the list

View file

@ -12,8 +12,8 @@ Feature: Changing images of an existing taxon
@ui @javascript @ui @javascript
Scenario: Changing a single image of a taxon Scenario: Changing a single image of a taxon
Given the "T-Shirts" taxon has an image "ford.jpg" with "banner" type Given the "T-Shirts" taxon has an image "ford.jpg" with "banner" type
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I change the image with the "banner" type to "t-shirts.jpg" And I change the image with the "banner" type to "t-shirts.jpg"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should have an image with "banner" type And this taxon should have an image with "banner" type
@ -22,8 +22,8 @@ Feature: Changing images of an existing taxon
Scenario: Changing the type of image of a taxon Scenario: Changing the type of image of a taxon
Given the "T-Shirts" taxon has an image "ford.jpg" with "thumbnail" type Given the "T-Shirts" taxon has an image "ford.jpg" with "thumbnail" type
And the "T-Shirts" taxon also has an image "t-shirts.jpg" with "banner" type And the "T-Shirts" taxon also has an image "t-shirts.jpg" with "banner" type
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I change the first image type to "banner" And I change the first image type to "banner"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should still have 2 images And this taxon should still have 2 images

View file

@ -11,16 +11,16 @@ Feature: Editing a taxon
@ui @ui
Scenario: Renaming a taxon Scenario: Renaming a taxon
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I rename it to "Stickers" in "English (United States)" And I rename it to "Stickers" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon name should be "Stickers" And this taxon name should be "Stickers"
@ui @ui
Scenario: Changing description Scenario: Changing description
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I rename it to "Stickers" in "English (United States)" And I rename it to "Stickers" in "English (United States)"
And I change its description to "Main taxonomy for stickers" in "English (United States)" And I change its description to "Main taxonomy for stickers" in "English (United States)"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -28,8 +28,8 @@ Feature: Editing a taxon
@ui @javascript @ui @javascript
Scenario: Changing parent taxon Scenario: Changing parent taxon
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I rename it to "Stickers" in "English (United States)" And I rename it to "Stickers" in "English (United States)"
And I change its description to "Main taxonomy for stickers" in "English (United States)" And I change its description to "Main taxonomy for stickers" in "English (United States)"
And I set its slug to "stickers" in "English (United States)" And I set its slug to "stickers" in "English (United States)"
And I change its parent taxon to "Accessories" And I change its parent taxon to "Accessories"
@ -39,5 +39,5 @@ Feature: Editing a taxon
@ui @ui
Scenario: Seeing a disabled code field when editing a taxon Scenario: Seeing a disabled code field when editing a taxon
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
Then the code field should be disabled Then the code field should be disabled

View file

@ -10,16 +10,16 @@ Feature: Editing taxon's slug
@ui @javascript @ui @javascript
Scenario: Creating a root taxon with an autogenerated slug Scenario: Creating a root taxon with an autogenerated slug
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "MEDIEVAL_WEAPONS" And I specify its code as "MEDIEVAL_WEAPONS"
And I name it "Medieval weapons" in "English (United States)" And I name it "Medieval weapons" in "English (United States)"
And I add it And I add it
Then this taxon slug should be "medieval-weapons" Then this taxon slug should be "medieval-weapons"
@ui @ui
Scenario: Creating a root taxon with a custom slug Scenario: Creating a root taxon with a custom slug
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "MEDIEVAL_WEAPONS" And I specify its code as "MEDIEVAL_WEAPONS"
And I name it "Medieval weapons" in "English (United States)" And I name it "Medieval weapons" in "English (United States)"
And I set its slug to "mw" in "English (United States)" And I set its slug to "mw" in "English (United States)"
And I add it And I add it
@ -28,8 +28,8 @@ Feature: Editing taxon's slug
@ui @javascript @ui @javascript
Scenario: Creating a taxon with an autogenerated slug for parent Scenario: Creating a taxon with an autogenerated slug for parent
Given the store has "Medieval weapons" taxonomy Given the store has "Medieval weapons" taxonomy
And I want to create a new taxon for "Medieval weapons" When I want to create a new taxon for "Medieval weapons"
When I specify its code as "SIEGE_ENGINES" And I specify its code as "SIEGE_ENGINES"
And I name it "Siege engines" in "English (United States)" And I name it "Siege engines" in "English (United States)"
And I add it And I add it
Then this taxon slug should be "medieval-weapons/siege-engines" Then this taxon slug should be "medieval-weapons/siege-engines"
@ -37,8 +37,8 @@ Feature: Editing taxon's slug
@ui @ui
Scenario: Creating a taxon with a custom slug for parent Scenario: Creating a taxon with a custom slug for parent
Given the store has "Medieval weapons" taxonomy Given the store has "Medieval weapons" taxonomy
And I want to create a new taxon for "Medieval weapons" When I want to create a new taxon for "Medieval weapons"
When I specify its code as "SIEGE_ENGINES" And I specify its code as "SIEGE_ENGINES"
And I name it "Siege engines" in "English (United States)" And I name it "Siege engines" in "English (United States)"
And I set its slug to "medieval-weapons/siege" in "English (United States)" And I set its slug to "medieval-weapons/siege" in "English (United States)"
And I add it And I add it

View file

@ -11,8 +11,8 @@ Feature: Editing taxon's slug in multiple locales
@ui @javascript @ui @javascript
Scenario: Creating a root taxon with an autogenerated slug Scenario: Creating a root taxon with an autogenerated slug
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "MEDIEVAL_WEAPONS" And I specify its code as "MEDIEVAL_WEAPONS"
And I name it "Medieval weapons" in "English (United States)" And I name it "Medieval weapons" in "English (United States)"
And I name it "Bronie średniowieczne" in "Polish (Poland)" And I name it "Bronie średniowieczne" in "Polish (Poland)"
And I add it And I add it
@ -22,8 +22,8 @@ Feature: Editing taxon's slug in multiple locales
@ui @javascript @ui @javascript
Scenario: Creating a child taxon with an autogenerated slug Scenario: Creating a child taxon with an autogenerated slug
Given the store has taxonomy named "Medieval weapons" in "English (United States)" locale and "Bronie średniowieczne" in "Polish (Poland)" locale Given the store has taxonomy named "Medieval weapons" in "English (United States)" locale and "Bronie średniowieczne" in "Polish (Poland)" locale
And I want to create a new taxon for "Medieval weapons" When I want to create a new taxon for "Medieval weapons"
When I specify its code as "SIEGE_ENGINES" And I specify its code as "SIEGE_ENGINES"
And I name it "Siege engines" in "English (United States)" And I name it "Siege engines" in "English (United States)"
And I name it "Machiny oblężnicze" in "Polish (Poland)" And I name it "Machiny oblężnicze" in "Polish (Poland)"
And I add it And I add it
@ -32,8 +32,8 @@ Feature: Editing taxon's slug in multiple locales
@ui @ui
Scenario: Creating a root taxon with a custom slug Scenario: Creating a root taxon with a custom slug
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "MEDIEVAL_WEAPONS" And I specify its code as "MEDIEVAL_WEAPONS"
And I name it "Medieval weapons" in "English (United States)" And I name it "Medieval weapons" in "English (United States)"
And I set its slug to "mw" in "English (United States)" And I set its slug to "mw" in "English (United States)"
And I name it "Bronie średniowieczne" in "Polish (Poland)" And I name it "Bronie średniowieczne" in "Polish (Poland)"

View file

@ -12,8 +12,8 @@ Feature: Removing images of an existing taxon
@ui @javascript @ui @javascript
Scenario: Removing a single image of a taxon Scenario: Removing a single image of a taxon
Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I remove an image with "banner" type And I remove an image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should not have any images And this taxon should not have any images
@ -22,9 +22,9 @@ Feature: Removing images of an existing taxon
Scenario: Removing all images of a taxon Scenario: Removing all images of a taxon
Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type
And the "T-Shirts" taxon also has an image "t-shirts.jpg" with "thumbnail" type And the "T-Shirts" taxon also has an image "t-shirts.jpg" with "thumbnail" type
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I remove an image with "banner" type And I remove an image with "banner" type
When I also remove an image with "thumbnail" type And I also remove an image with "thumbnail" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should not have any images And this taxon should not have any images
@ -33,8 +33,8 @@ Feature: Removing images of an existing taxon
Scenario: Removing only one image of a taxon Scenario: Removing only one image of a taxon
Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type
And the "T-Shirts" taxon also has an image "t-shirts.jpg" with "thumbnail" type And the "T-Shirts" taxon also has an image "t-shirts.jpg" with "thumbnail" type
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I remove an image with "banner" type And I remove an image with "banner" type
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should have an image with "thumbnail" type And this taxon should have an image with "thumbnail" type
@ -44,16 +44,16 @@ Feature: Removing images of an existing taxon
Scenario: Removing only one image of a simple product when all images have same type Scenario: Removing only one image of a simple product when all images have same type
Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type Given the "T-Shirts" taxon has an image "t-shirts.jpg" with "banner" type
And the "T-Shirts" taxon also has an image "mugs.jpg" with "banner" type And the "T-Shirts" taxon also has an image "mugs.jpg" with "banner" type
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I remove the first image And I remove the first image
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And this taxon should have only one image And this taxon should have only one image
@ui @javascript @ui @javascript
Scenario: Adding multiple images and removing a single image of a taxon Scenario: Adding multiple images and removing a single image of a taxon
Given I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "thumbnail" type And I attach the "t-shirts.jpg" image with "thumbnail" type
And I remove the first image And I remove the first image
And I save my changes And I save my changes

View file

@ -11,8 +11,8 @@ Feature: Taxon unique code validation
@ui @ui
Scenario: Trying to add taxon with taken code Scenario: Trying to add taxon with taken code
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "t_shirts" And I specify its code as "t_shirts"
And I name it "T-Shirts" in "English (United States)" And I name it "T-Shirts" in "English (United States)"
And I try to add it And I try to add it
Then I should be notified that taxon with this code already exists Then I should be notified that taxon with this code already exists

View file

@ -10,8 +10,8 @@ Feature: Taxon validation
@ui @ui
Scenario: Trying to add a taxon without specifying its code Scenario: Trying to add a taxon without specifying its code
Given I want to create a new taxon When I want to create a new taxon
When I do not specify its code And I do not specify its code
And I name it "T-Shirts" in "English (United States)" And I name it "T-Shirts" in "English (United States)"
And I try to add it And I try to add it
Then I should be notified that code is required Then I should be notified that code is required
@ -19,16 +19,16 @@ Feature: Taxon validation
@ui @ui
Scenario: Trying to add a taxon without specifying its name Scenario: Trying to add a taxon without specifying its name
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "t-shirts" And I specify its code as "t-shirts"
And I do not specify its name And I do not specify its name
And I try to add it And I try to add it
Then I should be notified that name is required Then I should be notified that name is required
@ui @ui
Scenario: Trying to add a taxon without specifying its slug Scenario: Trying to add a taxon without specifying its slug
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "t-shirts" And I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)" And I name it "T-Shirts" in "English (United States)"
And I do not specify its slug And I do not specify its slug
And I try to add it And I try to add it

View file

@ -11,8 +11,8 @@ Feature: Toggling the taxon
@ui @ui
Scenario: Adding a disabled taxon Scenario: Adding a disabled taxon
Given I want to create a new taxon When I want to create a new taxon
When I specify its code as "jeans" And I specify its code as "jeans"
And I name it "Jeans" in "English (United States)" And I name it "Jeans" in "English (United States)"
And I set its slug to "jeans" in "English (United States)" And I set its slug to "jeans" in "English (United States)"
And I disable it And I disable it
@ -24,8 +24,8 @@ Feature: Toggling the taxon
@ui @ui
Scenario: Enabling a Taxon Scenario: Enabling a Taxon
Given the "T-Shirts" taxon is disabled Given the "T-Shirts" taxon is disabled
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I enable it And I enable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And it should be enabled And it should be enabled
@ -33,8 +33,8 @@ Feature: Toggling the taxon
@ui @ui
Scenario: Disabling a Taxon Scenario: Disabling a Taxon
Given the "T-Shirts" taxon is enabled Given the "T-Shirts" taxon is enabled
And I want to modify the "T-Shirts" taxon When I want to modify the "T-Shirts" taxon
When I disable it And I disable it
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
And it should be disabled And it should be disabled

View file

@ -10,16 +10,16 @@ Feature: Adding a new customer
@ui @ui
Scenario: Adding a new customer Scenario: Adding a new customer
Given I want to create a new customer When I want to create a new customer
When I specify their email as "l.skywalker@gmail.com" And I specify their email as "l.skywalker@gmail.com"
And I add them And I add them
Then I should be notified that it has been successfully created Then I should be notified that it has been successfully created
And the customer "l.skywalker@gmail.com" should appear in the store And the customer "l.skywalker@gmail.com" should appear in the store
@ui @ui
Scenario: Adding a new customer with full details Scenario: Adding a new customer with full details
Given I want to create a new customer When I want to create a new customer
When I specify their first name as "Luke" And I specify their first name as "Luke"
And I specify their last name as "Skywalker" And I specify their last name as "Skywalker"
And I specify their email as "l.skywalker@gmail.com" And I specify their email as "l.skywalker@gmail.com"
And I specify its birthday as "1892-01-03" And I specify its birthday as "1892-01-03"

View file

@ -9,8 +9,8 @@ Feature: Adding a new customer account
@ui @javascript @ui @javascript
Scenario: Adding a new customer with an account Scenario: Adding a new customer with an account
Given I want to create a new customer account When I want to create a new customer account
When I specify their email as "l.skywalker@gmail.com" And I specify their email as "l.skywalker@gmail.com"
And I choose create account option And I choose create account option
And I specify their password as "psw123" And I specify their password as "psw123"
And I add them And I add them
@ -21,8 +21,8 @@ Feature: Adding a new customer account
@ui @javascript @ui @javascript
Scenario: Creating an account for existing customer Scenario: Creating an account for existing customer
Given the store has customer "Frodo Baggins" with email "f.baggins@example.com" Given the store has customer "Frodo Baggins" with email "f.baggins@example.com"
And I want to edit this customer When I want to edit this customer
When I choose create account option And I choose create account option
And I specify their password as "killSauron" And I specify their password as "killSauron"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited

View file

@ -9,8 +9,8 @@ Feature: Adding a new customer account after failed creation action
@ui @javascript @ui @javascript
Scenario: Trying to add new customer with an account without required information Scenario: Trying to add new customer with an account without required information
Given I want to create a new customer account When I want to create a new customer account
When I choose create account option And I choose create account option
And I do not specify any information And I do not specify any information
And I try to add them And I try to add them
Then I should still be on the customer creation page Then I should still be on the customer creation page
@ -21,8 +21,8 @@ Feature: Adding a new customer account after failed creation action
@ui @javascript @ui @javascript
Scenario: Trying to add new customer with an account without email Scenario: Trying to add new customer with an account without email
Given I want to create a new customer account When I want to create a new customer account
When I choose create account option And I choose create account option
And I specify their password as "Banana" And I specify their password as "Banana"
But I do not specify their email But I do not specify their email
And I try to add them And I try to add them
@ -33,8 +33,8 @@ Feature: Adding a new customer account after failed creation action
@ui @javascript @ui @javascript
Scenario: Trying to add new customer without an account without email Scenario: Trying to add new customer without an account without email
Given I want to create a new customer account When I want to create a new customer account
When I do not choose create account option And I do not choose create account option
And I do not specify their email And I do not specify their email
And I try to add them And I try to add them
Then I should still be on the customer creation page Then I should still be on the customer creation page
@ -44,8 +44,8 @@ Feature: Adding a new customer account after failed creation action
@ui @javascript @ui @javascript
Scenario: Trying to add new customer with an account without required information Scenario: Trying to add new customer with an account without required information
Given I want to create a new customer account When I want to create a new customer account
When I choose create account option And I choose create account option
And I specify their password as "Na" And I specify their password as "Na"
And I try to add them And I try to add them
Then I should still be on the customer creation page Then I should still be on the customer creation page

View file

@ -9,7 +9,7 @@ Feature: Create account option availability
@ui @ui
Scenario: Being able to create an account for created customer Scenario: Being able to create an account for created customer
Given I want to create a new customer When I want to create a new customer
And I do not choose create account option And I do not choose create account option
And I specify their email as "bananaPotato@example.com" And I specify their email as "bananaPotato@example.com"
And I add them And I add them
@ -19,7 +19,7 @@ Feature: Create account option availability
@ui @javascript @ui @javascript
Scenario: Not seeing create account option after adding customer with account Scenario: Not seeing create account option after adding customer with account
Given I want to create a new customer account When I want to create a new customer account
And I choose create account option And I choose create account option
And I specify their password as "Banana" And I specify their password as "Banana"
And I specify their email as "bananaPotato@example.com" And I specify their email as "bananaPotato@example.com"

View file

@ -10,8 +10,8 @@ Feature: Customer uniqueness of email validation
@ui @ui
Scenario: Trying to add a new customer with taken email Scenario: Trying to add a new customer with taken email
Given the store has customer "f.baggins@example.com" Given the store has customer "f.baggins@example.com"
And I want to create a new customer When I want to create a new customer
When I specify their email as "f.baggins@example.com" And I specify their email as "f.baggins@example.com"
And I try to add them And I try to add them
Then I should be notified that email must be unique Then I should be notified that email must be unique
And there should still be only one customer with email "f.baggins@example.com" And there should still be only one customer with email "f.baggins@example.com"

View file

@ -9,8 +9,8 @@ Feature: Customer validation
@ui @ui
Scenario: Trying to add a new customer without an email Scenario: Trying to add a new customer without an email
Given I want to create a new customer When I want to create a new customer
When I specify their first name as "Luke" And I specify their first name as "Luke"
And I specify their last name as "Skywalker" And I specify their last name as "Skywalker"
And I try to add them And I try to add them
Then I should be notified that email is required Then I should be notified that email is required
@ -18,8 +18,8 @@ Feature: Customer validation
@ui @ui
Scenario: Trying to specify too short first name for an existing customer Scenario: Trying to specify too short first name for an existing customer
Given the store has customer "l.skywalker@gmail.com" Given the store has customer "l.skywalker@gmail.com"
And I want to edit this customer When I want to edit this customer
When I specify their first name as "L" And I specify their first name as "L"
And I try to save my changes And I try to save my changes
Then I should be notified that first name should be at least 2 characters long Then I should be notified that first name should be at least 2 characters long
And the customer "l.skywalker@gmail.com" should still have an empty first name And the customer "l.skywalker@gmail.com" should still have an empty first name
@ -27,8 +27,8 @@ Feature: Customer validation
@ui @ui
Scenario: Trying to specify too short last name for an existing customer Scenario: Trying to specify too short last name for an existing customer
Given the store has customer "l.skywalker@gmail.com" with first name "Luke" Given the store has customer "l.skywalker@gmail.com" with first name "Luke"
And I want to edit this customer When I want to edit this customer
When I specify their last name as "S" And I specify their last name as "S"
And I try to save my changes And I try to save my changes
Then I should be notified that last name should be at least 2 characters long Then I should be notified that last name should be at least 2 characters long
And the customer "l.skywalker@gmail.com" should still have an empty last name And the customer "l.skywalker@gmail.com" should still have an empty last name
@ -36,24 +36,24 @@ Feature: Customer validation
@ui @ui
Scenario: Trying to remove email from an existing customer Scenario: Trying to remove email from an existing customer
Given the store has customer "l.skywalker@gmail.com" Given the store has customer "l.skywalker@gmail.com"
And I want to edit this customer When I want to edit this customer
When I remove its email And I remove its email
And I try to save my changes And I try to save my changes
Then I should be notified that email is required Then I should be notified that email is required
And the customer "l.skywalker@gmail.com" should still have this email And the customer "l.skywalker@gmail.com" should still have this email
@ui @ui
Scenario: Trying to create customer with wrong email format Scenario: Trying to create customer with wrong email format
Given I want to create a new customer When I want to create a new customer
When I specify their email as "wrongemail" And I specify their email as "wrongemail"
And I try to add them And I try to add them
Then I should be notified that email is not valid Then I should be notified that email is not valid
And the customer with email "wrongemail" should not appear in the store And the customer with email "wrongemail" should not appear in the store
@ui @ui
Scenario: Trying to create customer with wrong email format in strict mode Scenario: Trying to create customer with wrong email format in strict mode
Given I want to create a new customer When I want to create a new customer
When I specify their email as "wrongemail@example..com" And I specify their email as "wrongemail@example..com"
And I try to add them And I try to add them
Then I should be notified that email is not valid Then I should be notified that email is not valid
And the customer with email "wrongemail@example..com" should not appear in the store And the customer with email "wrongemail@example..com" should not appear in the store

View file

@ -10,8 +10,8 @@ Feature: Editing a customer
@ui @ui
Scenario: Changing first and last name of an existing customer Scenario: Changing first and last name of an existing customer
Given the store has customer "Frodo Baggins" with email "f.baggins@example.com" Given the store has customer "Frodo Baggins" with email "f.baggins@example.com"
And I want to edit this customer When I want to edit this customer
When I specify his first name as "Jon" And I specify his first name as "Jon"
And I specify his last name as "Snow" And I specify his last name as "Snow"
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited
@ -20,8 +20,8 @@ Feature: Editing a customer
@ui @ui
Scenario: Removing first and last name from an existing customer Scenario: Removing first and last name from an existing customer
Given the store has customer "Luke Skywalker" with email "l.skywalker@gmail.com" Given the store has customer "Luke Skywalker" with email "l.skywalker@gmail.com"
And I want to edit this customer When I want to edit this customer
When I remove its first name And I remove its first name
And I remove its last name And I remove its last name
And I save my changes And I save my changes
Then I should be notified that it has been successfully edited Then I should be notified that it has been successfully edited

Some files were not shown because too many files have changed in this diff Show more