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

View file

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

View file

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

View file

@ -10,8 +10,8 @@ Feature: Editing channel
@todo
Scenario: Trying to change channel code
Given I want to modify a channel "Web Channel"
When I change its code to "MOBILE"
When I want to modify a channel "Web Channel"
And I change its code to "MOBILE"
And I save my changes
Then I should be notified that code cannot be changed
And channel "Web Channel" should still have code "MOBILE"
@ -23,8 +23,8 @@ Feature: Editing channel
@ui
Scenario: Renaming the channel
Given I want to modify a channel "Web Channel"
When I rename it to "Website store"
When I want to modify a channel "Web Channel"
And I rename it to "Website store"
And I save my changes
Then I should be notified that it has been successfully edited
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
Scenario: Adding a new disabled channel should result
Given I want to create a new channel
When I specify its code as "MOBILE"
When I want to create a new channel
And I specify its code as "MOBILE"
And I name it "Mobile channel"
And I choose "Euro" as the base currency
And I choose "English (United States)" as a default locale

View file

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

View file

@ -11,8 +11,8 @@ Feature: Selecting available currencies for a channel
@ui
Scenario: Adding a new channel with currencies
Given I want to create a new channel
When I specify its code as MOBILE
When I want to create a new channel
And I specify its code as MOBILE
And I name it "Mobile store"
And I allow for paying in "Euro"
And I choose "English (United States)" as a default locale
@ -23,8 +23,8 @@ Feature: Selecting available currencies for a channel
@ui
Scenario: Adding currencies to an existing channel
Given the store operates on a channel named "Web store"
And I want to modify this channel
When I allow for paying in "Euro"
When I want to modify this channel
And I allow for paying in "Euro"
And I choose "English (United States)" as a default locale
And I save my changes
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
Scenario: Adding a new channel with default tax zone
Given I want to create a new channel
When I specify its code as "MOBILE"
When I want to create a new channel
And I specify its code as "MOBILE"
And I name it "Mobile store"
And I select the "United States" as default tax zone
And I choose "USD" as the base currency
@ -23,8 +23,8 @@ Feature: Selecting default tax zone for a channel
@ui
Scenario: Selecting default tax zone for existing channel
Given the store operates on a channel named "Web store"
And I want to modify this channel
When I select the "United States" as default tax zone
When I want to modify this channel
And I select the "United States" as default tax zone
And I save my changes
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"

View file

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

View file

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

View file

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

View file

@ -10,8 +10,8 @@ Feature: Currency unique code validation
@ui @api
Scenario: Trying to add currency with taken code
Given I want to add a new currency
When I choose "Euro"
When I want to add a new currency
And I choose "Euro"
And I try to add it
Then I should be notified that currency code must be unique
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
Scenario: Adding a new exchange rate
Given I want to add a new exchange rate
When I specify its ratio as 1.20
When I want to add a new exchange rate
And I specify its ratio as 1.20
And I choose "US Dollar" as the source currency
And I choose "British Pound" as the target currency
And I add it

View file

@ -10,8 +10,8 @@ Feature: Exchange rate validation
@ui @api
Scenario: Trying to add a new exchange rate without ratio
Given I want to add a new exchange rate
When I choose "US Dollar" as the source currency
When I want to add a new exchange rate
And I choose "US Dollar" as the source currency
And I choose "British Pound" as the target currency
And I don't specify its ratio
And I try to add it
@ -20,8 +20,8 @@ Feature: Exchange rate validation
@ui @api
Scenario: Trying to add a new exchange rate with negative ratio
Given I want to add a new exchange rate
When I choose "US Dollar" as the source currency
When I want to add a new exchange rate
And I choose "US Dollar" as the source currency
And I choose "British Pound" as the target currency
And I specify its ratio as -1.2
And I try to add it
@ -30,8 +30,8 @@ Feature: Exchange rate validation
@ui @api
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 specify its ratio as 1.23
When I want to add a new exchange rate
And I specify its ratio as 1.23
And I choose "US Dollar" as the source currency
And I choose "US Dollar" as the target currency
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
Scenario: Being prevented from adding an exchange rate for the same currency pair
Given I want to add a new exchange rate
When I specify its ratio as 3.20
When I want to add a new exchange rate
And I specify its ratio as 3.20
And I choose "Euro" as the source currency
And I choose "British Pound" as the target currency
And I try to add it
@ -22,8 +22,8 @@ Feature: Inability of adding exchange rates with the same currency pair
@ui @api
Scenario: Being prevented from adding an exchange rate for a reversed currency pair
Given I want to add a new exchange rate
When I specify its ratio as 3.20
When I want to add a new exchange rate
And I specify its ratio as 3.20
And I choose "British Pound" as the source currency
And I choose "Euro" as the target currency
And I try to add it

View file

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

View file

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

View file

@ -10,5 +10,5 @@ Feature: Locale unique code validation
@ui @api
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)"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -10,8 +10,8 @@ Feature: Adding a new checkbox product attribute
@ui
Scenario: Adding a new checkbox product attribute
Given I want to create a new checkbox product attribute
When I specify its code as "t_shirt_with_cotton"
When I want to create a new checkbox product attribute
And I specify its code as "t_shirt_with_cotton"
And I name it "T-shirt with cotton" in "English (United States)"
And I add it
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
Scenario: Adding a new integer product attribute
Given I want to create a new integer product attribute
When I specify its code as "book_pages"
When I want to create a new integer product attribute
And I specify its code as "book_pages"
And I name it "Book pages" in "English (United States)"
And I add it
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
Scenario: Adding a new percent product attribute
Given I want to create a new percent product attribute
When I specify its code as "t_shirt_cotton_content"
When I want to create a new percent product attribute
And I specify its code as "t_shirt_cotton_content"
And I name it "T-shirt cotton content" in "English (United States)"
And I add it
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
Scenario: Adding a new text product attribute
Given I want to create a new text product attribute
When I specify its code as "t_shirt_brand"
When I want to create a new text product attribute
And I specify its code as "t_shirt_brand"
And I name it "T-shirt brand" in "English (United States)"
And I add it
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
Scenario: Adding a new textarea product attribute
Given I want to create a new textarea product attribute
When I specify its code as "t_shirt_details"
When I want to create a new textarea product attribute
And I specify its code as "t_shirt_details"
And I name it "T-shirt details" in "English (United States)"
And I add it
Then I should be notified that it has been successfully created

View file

@ -11,8 +11,8 @@ Feature: Product attribute unique code validation
@ui
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"
And I want to create a new text product attribute
When I specify its code as "t_shirt_material"
When I want to create a new text product attribute
And I specify its code as "t_shirt_material"
And I name it "T-shirt special material" in "English (United States)"
And I add it
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
Scenario: Adding a new product option with two required option values
Given I want to create a new product option
When I name it "T-Shirt size" in "English (United States)"
When I want to create a new product option
And I name it "T-Shirt size" in "English (United States)"
And I specify its code as "t_shirt_size"
And I add the "S" option value identified by "OV1"
And I add the "M" option value identified by "OV2"
@ -23,8 +23,8 @@ Feature: Adding a new product option
@ui @api
Scenario: Adding a new product option without any option values
Given I want to create a new product option
When I name it "T-Shirt size" in "English (United States)"
When I want to create a new product option
And I name it "T-Shirt size" in "English (United States)"
And I specify its code as "t_shirt_size"
But I do not add an option value
And I try to add it
@ -33,8 +33,8 @@ Feature: Adding a new product option
@ui @javascript @api
Scenario: Adding a new product option with one option value
Given I want to create a new product option
When I name it "T-Shirt size" in "English (United States)"
When I want to create a new product option
And I name it "T-Shirt size" in "English (United States)"
And I specify its code as "t_shirt_size"
And I add the "S" option value identified by "OV1"
And I try to add it

View file

@ -13,8 +13,8 @@ Feature: Editing product options
Scenario: Renaming the product option
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 I want to modify the "T-Shirt size" product option
When I rename it to "T-Shirt color" in "English (United States)"
When I want to modify the "T-Shirt size" product option
And I rename it to "T-Shirt color" in "English (United States)"
And I save my changes
Then I should be notified that it has been successfully edited
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
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 save my changes
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
Scenario: Removing an option value from an existing product option
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 delete the "L" option value of this product option
When I want to modify the "T-Shirt size" product option
And I delete the "L" option value of this product option
And I save my changes
Then I should be notified that it has been successfully edited
And this product option should not have the "L" option value
@ui @javascript @todo
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 delete the "M" option value of this product option
When I want to modify the "T-Shirt size" 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 save my changes
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
Scenario: Trying to add product option with a taken code
Given I want to create a new product option
When I name it "T-Shirt color" in "English (United States)"
When I want to create a new product option
And I name it "T-Shirt color" in "English (United States)"
And I specify its code as "t_shirt_size"
And I try to add it
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
Scenario: Trying to add a new product option without specifying its code
Given I want to create a new product option
When I name it "T-Shirt size" in "English (United States)"
When I want to create a new product option
And I name it "T-Shirt size" in "English (United States)"
But I do not specify its code
And I try to add it
Then I should be notified that code is required
@ -20,8 +20,8 @@ Feature: Product option validation
@ui @api
Scenario: Trying to add a new product option without specifying its name
Given I want to create a new product option
When I specify its code as "t_shirt_size"
When I want to create a new product option
And I specify its code as "t_shirt_size"
But I do not name it
And I try to add it
Then I should be notified that name is required
@ -29,8 +29,8 @@ Feature: Product option validation
@ui @api
Scenario: Trying to remove name from an existing product option
Given I want to modify the "T-Shirt color" product option
When I remove its name from "English (United States)" translation
When I want to modify the "T-Shirt color" product option
And I remove its name from "English (United States)" translation
And I try to save my changes
Then I should be notified that name is required
And this product option should still be named "T-Shirt color"

View file

@ -13,8 +13,8 @@ Feature: Adding a new product variant
@ui
Scenario: Adding a new product variant
Given I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM"
When I want to create a new variant of this product
And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I set its price to "$100.00" for "United States" channel
And I add it
Then I should be notified that it has been successfully created
@ -24,8 +24,8 @@ Feature: Adding a new product variant
@ui
Scenario: Adding a new product variant with name
Given the store is also available in "Polish (Poland)"
And I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM"
When I want to create a new variant of this product
And I specify its code as "VODKA_WYBOROWA_PREMIUM"
And I name it "Vodka Wyborowa Premium" in "English (United States)"
And I name it "Wódka Wyborowa Premium" in "Polish (Poland)"
And I set its price to "$100.00" for "United States" channel
@ -38,8 +38,8 @@ Feature: Adding a new product variant
@ui
Scenario: Adding a new product variant with specific option's value
Given I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_MELON"
When I want to create a new variant of this product
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 "Taste" option to "Melon"
And I add it
@ -48,8 +48,8 @@ Feature: Adding a new product variant
@ui
Scenario: Adding a new product variant with specific shipping category
Given I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM"
When I want to create a new variant of this product
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 shipping category as "Fragile"
And I add it
@ -58,8 +58,8 @@ Feature: Adding a new product variant
@ui
Scenario: Adding a new product variant with discounted price
Given I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_EXQUISITE"
When I want to create a new variant of this product
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 original price to "$120.00" for "United States" channel
And I add it
@ -70,8 +70,8 @@ Feature: Adding a new product variant
@ui
Scenario: Adding a new product variant without shipping required
Given I want to create a new variant of this product
When I specify its code as "VODKA_WYBOROWA_PREMIUM"
When I want to create a new variant of this product
And I specify its code as "VODKA_WYBOROWA_PREMIUM"
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 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
Given this product is also available in the "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
Then I should see this product in the "Europe" channel in the shop
@ui
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
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
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
Scenario: Disabling inventory for a product variant
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 disable its inventory tracking
When I want to modify the "Wyborowa Vodka Exquisite" product variant
And I disable its inventory tracking
And I save my changes
Then I should be notified that it has been successfully edited
And inventory of this variant should not be tracked
@ui
Scenario: Enabling inventory for a product variant
Given I want to modify the "Wyborowa Vodka Exquisite" product variant
When I enable its inventory tracking
When I want to modify the "Wyborowa Vodka Exquisite" product variant
And I enable its inventory tracking
And I save my changes
Then I should be notified that it has been successfully edited
And inventory of this variant should be tracked

View file

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

View file

@ -12,8 +12,8 @@ Feature: Generating product variants
@ui
Scenario: Generating a product variant for product without variants
Given 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
When I want to generate new variants for this product
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 generate it
Then I should be notified that it has been successfully generated
@ -22,8 +22,8 @@ Feature: Generating product variants
@ui
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"
And 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
When I want to generate new variants for this product
And I specify that the 2nd variant is identified by "WYBOROWA_ORANGE" code and costs "$90" in "United States" channel
And I generate it
Then I should be notified that it has been successfully generated
And I should see 2 variants in the list
@ -31,16 +31,16 @@ Feature: Generating product variants
@ui
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"
And 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
When I want to generate new variants for this product
And I specify that the 2nd variant is identified by "WYBOROWA_MELON" code and costs "$95" in "United States" channel
And I generate it
Then I should be notified that it has been successfully generated
And I should see 2 variants in the list
@ui @javascript
Scenario: Generating only a part of product variants
Given 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
When I want to generate new variants for this product
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 generate it
Then I should be notified that it has been successfully generated

View file

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

View file

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

View file

@ -11,8 +11,8 @@ Feature: Adding a new product
@ui @api
Scenario: Adding a new simple product with price
Given I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING"
When I want to create a new simple product
And I specify its code as "BOARD_DICE_BREWING"
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 price to "$10.00" for "United States" channel
@ -22,8 +22,8 @@ Feature: Adding a new product
@ui
Scenario: Adding a new simple product with discounted price
Given I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING"
When I want to create a new simple product
And I specify its code as "BOARD_DICE_BREWING"
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 price to "$10.00" for "United States" channel
@ -45,8 +45,8 @@ Feature: Adding a new product
@ui
Scenario: Adding a new simple product with specific shipping category
Given I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING"
When I want to create a new simple product
And I specify its code as "BOARD_DICE_BREWING"
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 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"
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 I want to create a new configurable product
When I specify its code as "WHISKEY_GENTLEMEN"
When I want to create a new configurable product
And I specify its code as "WHISKEY_GENTLEMEN"
And I name it "Gentleman Jack" in "English (United States)"
And I add the "Bottle size" option to it
And I set its slug to "whiskey/gentleman-jack" in "English (United States)"
@ -71,8 +71,8 @@ Feature: Adding a new product
@ui @api
Scenario: Adding a new configurable product without options
Given I want to create a new configurable product
When I specify its code as "WHISKEY_GENTLEMEN"
When I want to create a new configurable product
And I specify its code as "WHISKEY_GENTLEMEN"
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 add it
@ -81,8 +81,8 @@ Feature: Adding a new product
@ui
Scenario: Adding a new simple product without shipping required
Given I want to create a new simple product
When I specify its code as "BOARD_DICE_BREWING"
When I want to create a new simple product
And I specify its code as "BOARD_DICE_BREWING"
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 price to "$10.00" for "United States" channel

View file

@ -10,8 +10,8 @@ Feature: Adding a new product with images
@ui @javascript
Scenario: Adding a new simple product with a single image
Given I want to create a new simple product
When I specify its code as "LAMBORGHINI_GALLARDO"
When I want to create a new simple product
And I specify its code as "LAMBORGHINI_GALLARDO"
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 attach the "lamborghini.jpg" image with "banner" type
@ -21,8 +21,8 @@ Feature: Adding a new product with images
@ui @javascript
Scenario: Adding a new simple product with multiple images
Given I want to create a new simple product
When I specify its code as "LAMBORGHINI_GALLARDO"
When I want to create a new simple product
And I specify its code as "LAMBORGHINI_GALLARDO"
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 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"
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 I want to create a new configurable product
When I specify its code as "LAMBORGHINI_GALLARDO"
When I want to create a new configurable product
And I specify its code as "LAMBORGHINI_GALLARDO"
And I name it "Lamborghini Gallardo Model" in "English (United States)"
And I add the "Model scale" option to it
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
Scenario: Adding a percent attribute to product
Given I want to create a new simple product
When I specify its code as "44_MAGNUM"
When I want to create a new simple product
And I specify its code as "44_MAGNUM"
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 "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
Scenario: Adding a text attribute to product
Given I want to create a new simple product
When I specify its code as "44_MAGNUM"
When I want to create a new simple product
And I specify its code as "44_MAGNUM"
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 "Gun caliber" attribute to "11 mm" in "English (United States)"

View file

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

View file

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

View file

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

View file

@ -19,8 +19,8 @@ Feature: Editing product's slug
@ui @javascript @api
Scenario: Creating a product with a custom slug
Given I want to create a new simple product
When I specify its code as "BOARD_MANSION_OF_MADNESS"
When I want to create a new simple product
And I specify its code as "BOARD_MANSION_OF_MADNESS"
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 slug to "mom-board-game" in "English (United States)"

View file

@ -12,8 +12,8 @@ Feature: Editing product's slug in multiple locales
@ui
Scenario: Creating a product with custom slugs
Given I want to create a new simple product
When I specify its code as "PUG_PUGGINTON_PLUSHIE"
When I want to create a new simple product
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)"
@ -26,8 +26,8 @@ Feature: Editing product's slug in multiple locales
@ui @javascript
Scenario: Creating a product with autogenerated slugs
Given I want to create a new simple product
When I specify its code as "PUG_PUGGINTON_PLUSHIE"
When I want to create a new simple product
And I specify its code as "PUG_PUGGINTON_PLUSHIE"
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 "Pluszak Mops Mopsiński" in "Polish (Poland)"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -11,29 +11,29 @@ Feature: Editing promotion coupon
@ui
Scenario: Changing coupon expires date
Given I want to modify the "SANTA2016" coupon for this promotion
When I change expires date to "21.05.2019"
When I want to modify the "SANTA2016" coupon for this promotion
And I change expires date to "21.05.2019"
And I save my changes
Then I should be notified that it has been successfully edited
And this coupon should be valid until "21.05.2019"
@ui
Scenario: Changing coupons usage limit
Given I want to modify the "SANTA2016" coupon for this promotion
When I change its usage limit to 50
When I want to modify the "SANTA2016" coupon for this promotion
And I change its usage limit to 50
And I save my changes
Then I should be notified that it has been successfully edited
And this coupon should have 50 usage limit
@ui
Scenario: Changing coupons per customer usage limit
Given I want to modify the "SANTA2016" coupon for this promotion
When I change its per customer usage limit to 20
When I want to modify the "SANTA2016" coupon for this promotion
And I change its per customer usage limit to 20
And I save my changes
Then I should be notified that it has been successfully edited
And this coupon should have 20 per customer usage limit
@ui
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

View file

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

View file

@ -11,8 +11,8 @@ Feature: Adding a new promotion with rule
@ui @javascript
Scenario: Adding a new promotion with taxon rule
Given I want to create a new promotion
When I specify its code as "HOLIDAY_SALE"
When I want to create a new promotion
And I specify its code as "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 it
@ -21,8 +21,8 @@ Feature: Adding a new promotion with rule
@ui @javascript
Scenario: Adding a new promotion with total price of items from taxon rule
Given I want to create a new promotion
When I specify its code as "100_MUGS_PROMOTION"
When I want to create a new promotion
And I specify its code as "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 it
@ -32,8 +32,8 @@ Feature: Adding a new promotion with rule
@ui @javascript
Scenario: Adding a new promotion with contains product rule
Given the store has a product "PHP T-Shirt" priced at "$100.00"
And I want to create a new promotion
When I specify its code as "PHP_TSHIRT_PROMOTION"
When I want to create a new promotion
And I specify its code as "PHP_TSHIRT_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 it

View file

@ -11,8 +11,8 @@ Feature: Adding a new promotion with rule configured in different channels
@ui @javascript
Scenario: Adding a new promotion with total price of items from taxon rule
Given I want to create a new promotion
When I specify its code as "100_IN_EVERY_CURRENCY"
When I want to create a new promotion
And I specify its code as "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 it

View file

@ -11,13 +11,13 @@ Feature: Browsing promotions
@ui @api
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
And the "Basic promotion" promotion should exist in the registry
@ui @api
Scenario: Browsing manage button for coupon based promotion
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
And I should be able to manage coupons for this promotion

View file

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

View file

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

View file

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

View file

@ -10,8 +10,8 @@ Feature: Promotion filters validation
@ui @javascript
Scenario: Adding a promotion with wrong minimum price on price range filter
Given I want to create a new promotion
When I specify its code as "10_for_all_products_over_10"
When I want to create a new promotion
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 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"
@ -21,8 +21,8 @@ Feature: Promotion filters validation
@ui @javascript
Scenario: Adding a promotion with wrong maximum price on price range filter
Given I want to create a new promotion
When I specify its code as "10_for_all_products_over_10"
When I want to create a new promotion
And I specify its code as "10_for_all_products_over_10"
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 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
Scenario: Adding a new shipping category with detailed information
Given I want to create a new shipping category
When I specify its code as "OVER_SIZED"
When I want to create a new shipping category
And I specify its code as "OVER_SIZED"
And I name it "Over sized"
And I specify its description as "Shipping method with huge dimension"
And I add it

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -12,8 +12,8 @@ Feature: Editing tax rate
@todo
Scenario: Trying to change tax rate code
Given I want to modify a tax rate "United States Sales Tax"
When I change its code to "us_vat"
When I want to modify a tax rate "United States Sales Tax"
And I change its code to "us_vat"
And I save my changes
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"
@ -25,16 +25,16 @@ Feature: Editing tax rate
@ui
Scenario: Renaming the tax rate
Given I want to modify a tax rate "United States Sales Tax"
When I rename it to "US VAT"
When I want to modify a tax rate "United States Sales Tax"
And I rename it to "US VAT"
And I save my changes
Then I should be notified that it has been successfully edited
And this tax rate name should be "US VAT"
@ui
Scenario: Changing the tax rate amount
Given I want to modify a tax rate "United States Sales Tax"
When I specify its amount as 16%
When I want to modify a tax rate "United States Sales Tax"
And I specify its amount as 16%
And I save my changes
Then I should be notified that it has been successfully edited
And this tax rate amount should be 16%
@ -42,8 +42,8 @@ Feature: Editing tax rate
@ui
Scenario: Changing related tax category
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 change it to be applicable for the "Food and Beverage" tax category
When I want to modify a tax rate "United States Sales Tax"
And I change it to be applicable for the "Food and Beverage" tax category
And I save my changes
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
@ -51,8 +51,8 @@ Feature: Editing tax rate
@ui
Scenario: Changing related zone
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 change its zone to "The Rest of the World"
When I want to modify a tax rate "United States Sales Tax"
And I change its zone to "The Rest of the World"
And I save my changes
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

View file

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

View file

@ -11,8 +11,8 @@ Feature: Tax rate validation
@ui
Scenario: Trying to add a new tax rate without specifying its code
Given I want to create a new tax rate
When I name it "Food and Beverage Tax Rates"
When I want to create a new tax rate
And I name it "Food and Beverage Tax Rates"
But I do not specify its code
And I try to add it
Then I should be notified that code is required
@ -20,8 +20,8 @@ Feature: Tax rate validation
@ui
Scenario: Trying to add a new tax rate without specifying its amount
Given I want to create a new tax rate
When I name it "Food and Beverage Tax Rates"
When I want to create a new tax rate
And I name it "Food and Beverage Tax Rates"
But I do not specify its amount
And I try to add it
Then I should be notified that amount is required
@ -29,8 +29,8 @@ Feature: Tax rate validation
@ui
Scenario: Trying to add a new tax rate without specifying its name
Given I want to create a new tax rate
When I specify its code as "UNITED_STATES_SALES_TAX"
When I want to create a new tax rate
And I specify its code as "UNITED_STATES_SALES_TAX"
But I do not name it
And I try to add it
Then I should be notified that name is required
@ -39,8 +39,8 @@ Feature: Tax rate validation
@ui
Scenario: Trying to add a new tax rate without specifying its zone
Given the store does not have any zones defined
And I want to create a new tax rate
When I name it "Food and Beverage Tax Rates"
When I want to create a new tax rate
And I name it "Food and Beverage Tax Rates"
But I do not specify its zone
And I try to add it
Then I should be notified that zone has to be selected
@ -49,8 +49,8 @@ Feature: Tax rate validation
@ui
Scenario: Trying to add a new tax rate without specifying its category
Given the store does not have any categories defined
And I want to create a new tax rate
When I name it "Food and Beverage Tax Rates"
When I want to create a new tax rate
And I name it "Food and Beverage Tax Rates"
But I do not specify related tax category
And I try to add it
Then I should be notified that category has to be selected
@ -59,8 +59,8 @@ Feature: Tax rate validation
@ui
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
And I want to modify this tax rate
When I remove its amount
When I want to modify this tax rate
And I remove its amount
And I try to save my changes
Then I should be notified that amount is required
And this tax rate amount should still be 20%
@ -68,8 +68,8 @@ Feature: Tax rate validation
@ui
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
And I want to modify this tax rate
When I remove its name
When I want to modify this tax rate
And I remove its name
And I try to save my changes
Then I should be notified that name is required
And this tax rate should still be named "United States Sales Tax"
@ -77,8 +77,8 @@ Feature: Tax rate validation
@ui
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
And I want to modify this tax rate
When I remove its zone
When I want to modify this tax rate
And I remove its zone
And I try to save my changes
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
Scenario: Adding a single image to an existing taxon
Given I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image with "banner" type
And I save my changes
Then I should be notified that it has been successfully edited
And this taxon should have an image with "banner" type
@ui @javascript
Scenario: Adding a single image to an existing taxon without specifying the type
Given I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image
And I save my changes
Then I should be notified that it has been successfully edited
And this taxon should have only one image
@ui @javascript
Scenario: Adding multiple images to an existing taxon
Given I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "thumbnail" type
And I save my changes
Then I should be notified that it has been successfully edited
@ -37,8 +37,8 @@ Feature: Adding images to an existing taxon
@ui @javascript
Scenario: Adding multiple images of the same type to an existing taxon
Given I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type
When I want to modify the "T-Shirts" taxon
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
Then I should be notified that it has been successfully edited

View file

@ -10,8 +10,8 @@ Feature: Adding a new taxon
@ui
Scenario: Adding a new taxon
Given I want to create a new taxon
When I specify its code as "t-shirts"
When I want to create a new taxon
And I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)"
And I set its slug to "t-shirts" in "English (United States)"
And I add it
@ -20,8 +20,8 @@ Feature: Adding a new taxon
@ui
Scenario: Adding a new taxon with slug and description
Given I want to create a new taxon
When I specify its code as "category"
When I want to create a new taxon
And I specify its code as "category"
And I name it "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)"

View file

@ -11,7 +11,7 @@ Feature: Adding a new taxon for parent
@ui
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 name it "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
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 specify its code as "guns"
And I name it "Guns" in "English (United States)"

View file

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

View file

@ -10,6 +10,6 @@ Feature: Browsing taxons
@ui
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
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
Scenario: Changing a single image of a taxon
Given the "T-Shirts" taxon has an image "ford.jpg" with "banner" type
And I want to modify the "T-Shirts" taxon
When I change the image with the "banner" type to "t-shirts.jpg"
When I want to modify the "T-Shirts" taxon
And I change the image with the "banner" type to "t-shirts.jpg"
And I save my changes
Then I should be notified that it has been successfully edited
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
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 I want to modify the "T-Shirts" taxon
When I change the first image type to "banner"
When I want to modify the "T-Shirts" taxon
And I change the first image type to "banner"
And I save my changes
Then I should be notified that it has been successfully edited
And this taxon should still have 2 images

View file

@ -11,16 +11,16 @@ Feature: Editing a taxon
@ui
Scenario: Renaming a taxon
Given I want to modify the "T-Shirts" taxon
When I rename it to "Stickers" in "English (United States)"
When I want to modify the "T-Shirts" taxon
And I rename it to "Stickers" in "English (United States)"
And I save my changes
Then I should be notified that it has been successfully edited
And this taxon name should be "Stickers"
@ui
Scenario: Changing description
Given I want to modify the "T-Shirts" taxon
When I rename it to "Stickers" in "English (United States)"
When I want to modify the "T-Shirts" taxon
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 save my changes
Then I should be notified that it has been successfully edited
@ -28,8 +28,8 @@ Feature: Editing a taxon
@ui @javascript
Scenario: Changing parent taxon
Given I want to modify the "T-Shirts" taxon
When I rename it to "Stickers" in "English (United States)"
When I want to modify the "T-Shirts" taxon
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 set its slug to "stickers" in "English (United States)"
And I change its parent taxon to "Accessories"
@ -39,5 +39,5 @@ Feature: Editing a taxon
@ui
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

View file

@ -3,23 +3,23 @@ Feature: Editing taxon's slug
In order to manage access path to taxon page
As an Administrator
I want to be able to edit taxon's slug
Background:
Given the store is available in "English (United States)"
And I am logged in as an administrator
@ui @javascript
Scenario: Creating a root taxon with an autogenerated slug
Given I want to create a new taxon
When I specify its code as "MEDIEVAL_WEAPONS"
When I want to create a new taxon
And I specify its code as "MEDIEVAL_WEAPONS"
And I name it "Medieval weapons" in "English (United States)"
And I add it
Then this taxon slug should be "medieval-weapons"
@ui
Scenario: Creating a root taxon with a custom slug
Given I want to create a new taxon
When I specify its code as "MEDIEVAL_WEAPONS"
When I want to create a new taxon
And I specify its code as "MEDIEVAL_WEAPONS"
And I name it "Medieval weapons" in "English (United States)"
And I set its slug to "mw" in "English (United States)"
And I add it
@ -28,8 +28,8 @@ Feature: Editing taxon's slug
@ui @javascript
Scenario: Creating a taxon with an autogenerated slug for parent
Given the store has "Medieval weapons" taxonomy
And I want to create a new taxon for "Medieval weapons"
When I specify its code as "SIEGE_ENGINES"
When I want to create a new taxon for "Medieval weapons"
And I specify its code as "SIEGE_ENGINES"
And I name it "Siege engines" in "English (United States)"
And I add it
Then this taxon slug should be "medieval-weapons/siege-engines"
@ -37,8 +37,8 @@ Feature: Editing taxon's slug
@ui
Scenario: Creating a taxon with a custom slug for parent
Given the store has "Medieval weapons" taxonomy
And I want to create a new taxon for "Medieval weapons"
When I specify its code as "SIEGE_ENGINES"
When I want to create a new taxon for "Medieval weapons"
And I specify its code as "SIEGE_ENGINES"
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 add it

View file

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

View file

@ -12,8 +12,8 @@ Feature: Removing images of an existing taxon
@ui @javascript
Scenario: Removing a single image of a taxon
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 remove an image with "banner" type
When I want to modify the "T-Shirts" taxon
And I remove an image with "banner" type
And I save my changes
Then I should be notified that it has been successfully edited
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
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 I want to modify the "T-Shirts" taxon
When I remove an image with "banner" type
When I also remove an image with "thumbnail" type
When I want to modify the "T-Shirts" taxon
And I remove an image with "banner" type
And I also remove an image with "thumbnail" type
And I save my changes
Then I should be notified that it has been successfully edited
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
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 I want to modify the "T-Shirts" taxon
When I remove an image with "banner" type
When I want to modify the "T-Shirts" taxon
And I remove an image with "banner" type
And I save my changes
Then I should be notified that it has been successfully edited
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
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 I want to modify the "T-Shirts" taxon
When I remove the first image
When I want to modify the "T-Shirts" taxon
And I remove the first image
And I save my changes
Then I should be notified that it has been successfully edited
And this taxon should have only one image
@ui @javascript
Scenario: Adding multiple images and removing a single image of a taxon
Given I want to modify the "T-Shirts" taxon
When I attach the "t-shirts.jpg" image with "banner" type
When I want to modify the "T-Shirts" taxon
And I attach the "t-shirts.jpg" image with "banner" type
And I attach the "t-shirts.jpg" image with "thumbnail" type
And I remove the first image
And I save my changes

View file

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

View file

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

View file

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

View file

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

View file

@ -9,8 +9,8 @@ Feature: Adding a new customer account
@ui @javascript
Scenario: Adding a new customer with an account
Given I want to create a new customer account
When I specify their email as "l.skywalker@gmail.com"
When I want to create a new customer account
And I specify their email as "l.skywalker@gmail.com"
And I choose create account option
And I specify their password as "psw123"
And I add them
@ -21,8 +21,8 @@ Feature: Adding a new customer account
@ui @javascript
Scenario: Creating an account for existing customer
Given the store has customer "Frodo Baggins" with email "f.baggins@example.com"
And I want to edit this customer
When I choose create account option
When I want to edit this customer
And I choose create account option
And I specify their password as "killSauron"
And I save my changes
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
Scenario: Trying to add new customer with an account without required information
Given I want to create a new customer account
When I choose create account option
When I want to create a new customer account
And I choose create account option
And I do not specify any information
And I try to add them
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
Scenario: Trying to add new customer with an account without email
Given I want to create a new customer account
When I choose create account option
When I want to create a new customer account
And I choose create account option
And I specify their password as "Banana"
But I do not specify their email
And I try to add them
@ -33,8 +33,8 @@ Feature: Adding a new customer account after failed creation action
@ui @javascript
Scenario: Trying to add new customer without an account without email
Given I want to create a new customer account
When I do not choose create account option
When I want to create a new customer account
And I do not choose create account option
And I do not specify their email
And I try to add them
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
Scenario: Trying to add new customer with an account without required information
Given I want to create a new customer account
When I choose create account option
When I want to create a new customer account
And I choose create account option
And I specify their password as "Na"
And I try to add them
Then I should still be on the customer creation page

View file

@ -9,7 +9,7 @@ Feature: Create account option availability
@ui
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 specify their email as "bananaPotato@example.com"
And I add them
@ -19,7 +19,7 @@ Feature: Create account option availability
@ui @javascript
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 specify their password as "Banana"
And I specify their email as "bananaPotato@example.com"

View file

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

View file

@ -9,8 +9,8 @@ Feature: Customer validation
@ui
Scenario: Trying to add a new customer without an email
Given I want to create a new customer
When I specify their first name as "Luke"
When I want to create a new customer
And I specify their first name as "Luke"
And I specify their last name as "Skywalker"
And I try to add them
Then I should be notified that email is required
@ -18,8 +18,8 @@ Feature: Customer validation
@ui
Scenario: Trying to specify too short first name for an existing customer
Given the store has customer "l.skywalker@gmail.com"
And I want to edit this customer
When I specify their first name as "L"
When I want to edit this customer
And I specify their first name as "L"
And I try to save my changes
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
@ -27,8 +27,8 @@ Feature: Customer validation
@ui
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"
And I want to edit this customer
When I specify their last name as "S"
When I want to edit this customer
And I specify their last name as "S"
And I try to save my changes
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
@ -36,24 +36,24 @@ Feature: Customer validation
@ui
Scenario: Trying to remove email from an existing customer
Given the store has customer "l.skywalker@gmail.com"
And I want to edit this customer
When I remove its email
When I want to edit this customer
And I remove its email
And I try to save my changes
Then I should be notified that email is required
And the customer "l.skywalker@gmail.com" should still have this email
@ui
Scenario: Trying to create customer with wrong email format
Given I want to create a new customer
When I specify their email as "wrongemail"
When I want to create a new customer
And I specify their email as "wrongemail"
And I try to add them
Then I should be notified that email is not valid
And the customer with email "wrongemail" should not appear in the store
@ui
Scenario: Trying to create customer with wrong email format in strict mode
Given I want to create a new customer
When I specify their email as "wrongemail@example..com"
When I want to create a new customer
And I specify their email as "wrongemail@example..com"
And I try to add them
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
Scenario: Changing first and last name of an existing customer
Given the store has customer "Frodo Baggins" with email "f.baggins@example.com"
And I want to edit this customer
When I specify his first name as "Jon"
When I want to edit this customer
And I specify his first name as "Jon"
And I specify his last name as "Snow"
And I save my changes
Then I should be notified that it has been successfully edited
@ -20,8 +20,8 @@ Feature: Editing a customer
@ui
Scenario: Removing first and last name from an existing customer
Given the store has customer "Luke Skywalker" with email "l.skywalker@gmail.com"
And I want to edit this customer
When I remove its first name
When I want to edit this customer
And I remove its first name
And I remove its last name
And I save my changes
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