From 984488d94b7ccc90d337c9018730498410dd3a4a Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Fri, 11 Mar 2022 09:03:08 +0100 Subject: [PATCH] [Behat] Use "When" for user actions where possible --- features/admin/sign_in.feature | 12 +++--- .../channel_unique_code_validation.feature | 4 +- .../channel_validation.feature | 20 +++++----- .../managing_channels/editing_channel.feature | 8 ++-- ...sabled_channel_when_no_other_exist.feature | 4 +- ..._to_disable_last_available_channel.feature | 4 +- ...g_currencies_available_for_channel.feature | 8 ++-- ...cting_default_tax_zone_for_channel.feature | 8 ++-- ...ting_locales_available_for_channel.feature | 8 ++-- ...x_calculation_strategy_for_channel.feature | 12 +++--- .../toggling_channel.feature | 8 ++-- .../adding_currency.feature | 4 +- .../currency_unique_code_validation.feature | 4 +- .../adding_exchange_rate.feature | 4 +- .../exchange_rate_validation.feature | 12 +++--- ...hange_rate_with_same_currency_pair.feature | 8 ++-- ..._invetory_below_on_hold_validation.feature | 12 +++--- .../managing_locales/adding_locale.feature | 4 +- .../locale_unique_code_validation.feature | 2 +- .../locale_validation.feature | 4 +- .../adding_payment_method.feature | 20 +++++----- .../editing_payment_method.feature | 12 +++--- ...ment_method_unique_code_validation.feature | 4 +- .../payment_method_validation.feature | 16 ++++---- .../adding_checkbox_product_attribute.feature | 4 +- .../adding_integer_product_attribute.feature | 4 +- .../adding_percent_product_attribute.feature | 4 +- .../adding_text_product_attribute.feature | 4 +- .../adding_textarea_product_attribute.feature | 4 +- ...t_attribute_unique_code_validation.feature | 4 +- .../adding_product_option.feature | 12 +++--- .../editing_product_option.feature | 4 +- .../managing_values_of_product_option.feature | 10 ++--- ...duct_option_unique_code_validation.feature | 4 +- .../product_option_validation.feature | 12 +++--- .../adding_product_variant.feature | 24 +++++------ ...ile_editing_their_product_variants.feature | 4 +- ...nable_inventory_on_product_variant.feature | 8 ++-- .../disable_or_enable_product_variant.feature | 8 ++-- .../generating_product_variant.feature | 16 ++++---- .../product_variant_validation.feature | 28 ++++++------- .../adding_images_to_existing_product.feature | 28 ++++++------- .../managing_products/adding_product.feature | 24 +++++------ .../adding_product_with_images.feature | 12 +++--- ...ing_product_with_percent_attribute.feature | 4 +- ...adding_product_with_text_attribute.feature | 4 +- ...ble_or_enable_inventory_on_product.feature | 8 ++-- .../disable_or_enable_product.feature | 8 ++-- .../managing_products/editing_product.feature | 28 ++++++------- .../editing_product_slug.feature | 4 +- ...g_product_slug_in_multiple_locales.feature | 8 ++-- .../product_validation.feature | 40 +++++++++---------- .../managing_coupons/adding_coupon.feature | 4 +- .../managing_coupons/browsing_coupon.feature | 4 +- .../coupon_unique_code_validation.feature | 4 +- .../coupon_validation.feature | 8 ++-- .../managing_coupons/editing_coupon.feature | 14 +++---- .../adding_promotion.feature | 24 +++++------ .../adding_promotion_with_rule.feature | 12 +++--- ...on_with_rule_in_different_channels.feature | 4 +- .../browsing_promotions.feature | 4 +- .../editing_promotion.feature | 24 +++++------ .../promotion_unique_code_validation.feature | 4 +- .../promotion_validation.feature | 30 +++++++------- .../promotions_filter_validation.feature | 8 ++-- .../adding_shipping_category.feature | 4 +- .../editing_shipping_category.feature | 4 +- ...ng_category_unique_code_validation.feature | 4 +- .../editing_shipping_method.feature | 8 ++-- .../shipping_method_code_validation.feature | 12 +++--- ...ping_method_unique_code_validation.feature | 4 +- .../shipping_method_validation.feature | 12 +++--- .../toggling_shipping_method.feature | 8 ++-- .../editing_tax_category.feature | 4 +- .../tax_category_validation.feature | 4 +- .../adding_tax_rate.feature | 8 ++-- .../editing_tax_rate.feature | 20 +++++----- .../tax_rate_unique_code_validation.feature | 4 +- .../tax_rate_validation.feature | 32 +++++++-------- .../adding_images_to_existing_taxon.feature | 16 ++++---- .../managing_taxons/adding_taxon.feature | 8 ++-- .../adding_taxon_for_parent.feature | 2 +- .../adding_taxon_for_with_parent.feature | 2 +- .../adding_taxon_with_images.feature | 8 ++-- .../managing_taxons/browsing_taxon.feature | 2 +- .../changing_images_of_taxon.feature | 8 ++-- .../managing_taxons/editing_taxon.feature | 14 +++---- .../editing_taxon_slug.feature | 18 ++++----- ...ing_taxon_slug_in_multiple_locales.feature | 12 +++--- .../removing_images_of_taxon.feature | 22 +++++----- .../taxon_unique_code_validation.feature | 4 +- .../managing_taxons/taxon_validation.feature | 12 +++--- .../managing_taxons/toggling_taxon.feature | 12 +++--- .../adding_customer.feature | 10 ++--- .../adding_customer_account.feature | 8 ++-- ...count_after_failed_creation_action.feature | 16 ++++---- ...eate_account_for_existing_customer.feature | 4 +- .../customer_unique_email_validation.feature | 4 +- .../customer_validation.feature | 26 ++++++------ .../editing_customer.feature | 8 ++-- .../toggling_customer_account.feature | 8 ++-- .../Api/Admin/ManagingPromotionsContext.php | 2 +- .../Behat/Context/Ui/Admin/LoginContext.php | 2 +- .../Admin/ManagingAdministratorsContext.php | 2 +- .../Ui/Admin/ManagingCurrenciesContext.php | 6 +-- .../Admin/ManagingCustomerGroupsContext.php | 2 +- .../Ui/Admin/ManagingCustomersContext.php | 10 ++--- .../Ui/Admin/ManagingExchangeRatesContext.php | 4 +- .../Ui/Admin/ManagingLocalesContext.php | 4 +- .../Admin/ManagingPaymentMethodsContext.php | 2 +- .../Admin/ManagingProductOptionsContext.php | 4 +- .../Admin/ManagingProductVariantsContext.php | 2 +- .../Admin/ManagingPromotionCouponsContext.php | 6 +-- .../Ui/Admin/ManagingPromotionsContext.php | 6 +-- .../ManagingShippingCategoriesContext.php | 4 +- .../Admin/ManagingShippingMethodsContext.php | 4 +- .../Ui/Admin/ManagingTaxCategoriesContext.php | 6 +-- .../Ui/Admin/ManagingTaxRateContext.php | 6 +-- .../Ui/Admin/ManagingTaxonsContext.php | 8 ++-- .../Behat/Context/Ui/Shop/AccountContext.php | 2 +- 120 files changed, 551 insertions(+), 551 deletions(-) diff --git a/features/admin/sign_in.feature b/features/admin/sign_in.feature index 61df8a0f19..0318fa4002 100644 --- a/features/admin/sign_in.feature +++ b/features/admin/sign_in.feature @@ -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 diff --git a/features/channel/managing_channels/channel_unique_code_validation.feature b/features/channel/managing_channels/channel_unique_code_validation.feature index ac4e5e3a8f..f8b6e62cff 100644 --- a/features/channel/managing_channels/channel_unique_code_validation.feature +++ b/features/channel/managing_channels/channel_unique_code_validation.feature @@ -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 diff --git a/features/channel/managing_channels/channel_validation.feature b/features/channel/managing_channels/channel_validation.feature index 0971f2159d..fe45e18b4b 100644 --- a/features/channel/managing_channels/channel_validation.feature +++ b/features/channel/managing_channels/channel_validation.feature @@ -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" diff --git a/features/channel/managing_channels/editing_channel.feature b/features/channel/managing_channels/editing_channel.feature index 825342a205..4a011b1f75 100644 --- a/features/channel/managing_channels/editing_channel.feature +++ b/features/channel/managing_channels/editing_channel.feature @@ -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" diff --git a/features/channel/managing_channels/not_being_able_to_add_disabled_channel_when_no_other_exist.feature b/features/channel/managing_channels/not_being_able_to_add_disabled_channel_when_no_other_exist.feature index 15e323cf68..c9d19fd580 100644 --- a/features/channel/managing_channels/not_being_able_to_add_disabled_channel_when_no_other_exist.feature +++ b/features/channel/managing_channels/not_being_able_to_add_disabled_channel_when_no_other_exist.feature @@ -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 diff --git a/features/channel/managing_channels/not_being_able_to_disable_last_available_channel.feature b/features/channel/managing_channels/not_being_able_to_disable_last_available_channel.feature index 0d726370ed..bb95ad1290 100644 --- a/features/channel/managing_channels/not_being_able_to_disable_last_available_channel.feature +++ b/features/channel/managing_channels/not_being_able_to_disable_last_available_channel.feature @@ -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 diff --git a/features/channel/managing_channels/selecting_currencies_available_for_channel.feature b/features/channel/managing_channels/selecting_currencies_available_for_channel.feature index 6a418810ed..b478e47268 100644 --- a/features/channel/managing_channels/selecting_currencies_available_for_channel.feature +++ b/features/channel/managing_channels/selecting_currencies_available_for_channel.feature @@ -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 diff --git a/features/channel/managing_channels/selecting_default_tax_zone_for_channel.feature b/features/channel/managing_channels/selecting_default_tax_zone_for_channel.feature index 15894e7031..891dcd70ae 100644 --- a/features/channel/managing_channels/selecting_default_tax_zone_for_channel.feature +++ b/features/channel/managing_channels/selecting_default_tax_zone_for_channel.feature @@ -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" diff --git a/features/channel/managing_channels/selecting_locales_available_for_channel.feature b/features/channel/managing_channels/selecting_locales_available_for_channel.feature index fa73bafba8..651acaac76 100644 --- a/features/channel/managing_channels/selecting_locales_available_for_channel.feature +++ b/features/channel/managing_channels/selecting_locales_available_for_channel.feature @@ -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)" diff --git a/features/channel/managing_channels/selecting_tax_calculation_strategy_for_channel.feature b/features/channel/managing_channels/selecting_tax_calculation_strategy_for_channel.feature index 0309571c55..ff8f6bac6f 100644 --- a/features/channel/managing_channels/selecting_tax_calculation_strategy_for_channel.feature +++ b/features/channel/managing_channels/selecting_tax_calculation_strategy_for_channel.feature @@ -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" diff --git a/features/channel/managing_channels/toggling_channel.feature b/features/channel/managing_channels/toggling_channel.feature index 3a7f3972d5..41875817f1 100644 --- a/features/channel/managing_channels/toggling_channel.feature +++ b/features/channel/managing_channels/toggling_channel.feature @@ -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 diff --git a/features/currency/managing_currencies/adding_currency.feature b/features/currency/managing_currencies/adding_currency.feature index ecaa4094c6..02c1d63e7c 100644 --- a/features/currency/managing_currencies/adding_currency.feature +++ b/features/currency/managing_currencies/adding_currency.feature @@ -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 diff --git a/features/currency/managing_currencies/currency_unique_code_validation.feature b/features/currency/managing_currencies/currency_unique_code_validation.feature index d775b78d13..f9049e36a3 100644 --- a/features/currency/managing_currencies/currency_unique_code_validation.feature +++ b/features/currency/managing_currencies/currency_unique_code_validation.feature @@ -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" diff --git a/features/currency/managing_exchange_rates/adding_exchange_rate.feature b/features/currency/managing_exchange_rates/adding_exchange_rate.feature index db5790e759..415cb6a198 100644 --- a/features/currency/managing_exchange_rates/adding_exchange_rate.feature +++ b/features/currency/managing_exchange_rates/adding_exchange_rate.feature @@ -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 diff --git a/features/currency/managing_exchange_rates/exchange_rate_validation.feature b/features/currency/managing_exchange_rates/exchange_rate_validation.feature index 395bafa193..bc963a76bb 100644 --- a/features/currency/managing_exchange_rates/exchange_rate_validation.feature +++ b/features/currency/managing_exchange_rates/exchange_rate_validation.feature @@ -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 diff --git a/features/currency/managing_exchange_rates/inability_of_adding_exchange_rate_with_same_currency_pair.feature b/features/currency/managing_exchange_rates/inability_of_adding_exchange_rate_with_same_currency_pair.feature index dfd5d2c1d7..886f43f450 100644 --- a/features/currency/managing_exchange_rates/inability_of_adding_exchange_rate_with_same_currency_pair.feature +++ b/features/currency/managing_exchange_rates/inability_of_adding_exchange_rate_with_same_currency_pair.feature @@ -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 diff --git a/features/inventory/managing_inventory/decreasing_invetory_below_on_hold_validation.feature b/features/inventory/managing_inventory/decreasing_invetory_below_on_hold_validation.feature index b52d2d2967..8ca912e5ae 100644 --- a/features/inventory/managing_inventory/decreasing_invetory_below_on_hold_validation.feature +++ b/features/inventory/managing_inventory/decreasing_invetory_below_on_hold_validation.feature @@ -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 diff --git a/features/locale/managing_locales/adding_locale.feature b/features/locale/managing_locales/adding_locale.feature index bb4e1a24f4..f3921f5672 100644 --- a/features/locale/managing_locales/adding_locale.feature +++ b/features/locale/managing_locales/adding_locale.feature @@ -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 diff --git a/features/locale/managing_locales/locale_unique_code_validation.feature b/features/locale/managing_locales/locale_unique_code_validation.feature index 9eae46ea43..1d6ffe0ba0 100644 --- a/features/locale/managing_locales/locale_unique_code_validation.feature +++ b/features/locale/managing_locales/locale_unique_code_validation.feature @@ -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)" diff --git a/features/locale/managing_locales/locale_validation.feature b/features/locale/managing_locales/locale_validation.feature index 169ba5be37..09a7fc63a5 100644 --- a/features/locale/managing_locales/locale_validation.feature +++ b/features/locale/managing_locales/locale_validation.feature @@ -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 diff --git a/features/payment/managing_payment_methods/adding_payment_method.feature b/features/payment/managing_payment_methods/adding_payment_method.feature index 0c8abc53ed..5e24a6474b 100644 --- a/features/payment/managing_payment_methods/adding_payment_method.feature +++ b/features/payment/managing_payment_methods/adding_payment_method.feature @@ -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 diff --git a/features/payment/managing_payment_methods/editing_payment_method.feature b/features/payment/managing_payment_methods/editing_payment_method.feature index ca1f94e068..4953f9d68c 100644 --- a/features/payment/managing_payment_methods/editing_payment_method.feature +++ b/features/payment/managing_payment_methods/editing_payment_method.feature @@ -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 diff --git a/features/payment/managing_payment_methods/payment_method_unique_code_validation.feature b/features/payment/managing_payment_methods/payment_method_unique_code_validation.feature index acb3a9f0f3..71cdf581c5 100644 --- a/features/payment/managing_payment_methods/payment_method_unique_code_validation.feature +++ b/features/payment/managing_payment_methods/payment_method_unique_code_validation.feature @@ -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 diff --git a/features/payment/managing_payment_methods/payment_method_validation.feature b/features/payment/managing_payment_methods/payment_method_validation.feature index c365206364..dcd58e99ce 100644 --- a/features/payment/managing_payment_methods/payment_method_validation.feature +++ b/features/payment/managing_payment_methods/payment_method_validation.feature @@ -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" diff --git a/features/product/managing_product_attributes/adding_checkbox_product_attribute.feature b/features/product/managing_product_attributes/adding_checkbox_product_attribute.feature index 9330e8d9cf..649afb6900 100644 --- a/features/product/managing_product_attributes/adding_checkbox_product_attribute.feature +++ b/features/product/managing_product_attributes/adding_checkbox_product_attribute.feature @@ -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 diff --git a/features/product/managing_product_attributes/adding_integer_product_attribute.feature b/features/product/managing_product_attributes/adding_integer_product_attribute.feature index bec9098168..6b3bf3aadb 100644 --- a/features/product/managing_product_attributes/adding_integer_product_attribute.feature +++ b/features/product/managing_product_attributes/adding_integer_product_attribute.feature @@ -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 diff --git a/features/product/managing_product_attributes/adding_percent_product_attribute.feature b/features/product/managing_product_attributes/adding_percent_product_attribute.feature index 00d3261113..4bacddafe0 100644 --- a/features/product/managing_product_attributes/adding_percent_product_attribute.feature +++ b/features/product/managing_product_attributes/adding_percent_product_attribute.feature @@ -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 diff --git a/features/product/managing_product_attributes/adding_text_product_attribute.feature b/features/product/managing_product_attributes/adding_text_product_attribute.feature index e542b9fe7d..e9836674fb 100644 --- a/features/product/managing_product_attributes/adding_text_product_attribute.feature +++ b/features/product/managing_product_attributes/adding_text_product_attribute.feature @@ -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 diff --git a/features/product/managing_product_attributes/adding_textarea_product_attribute.feature b/features/product/managing_product_attributes/adding_textarea_product_attribute.feature index 4caaddd513..9e1ace50f8 100644 --- a/features/product/managing_product_attributes/adding_textarea_product_attribute.feature +++ b/features/product/managing_product_attributes/adding_textarea_product_attribute.feature @@ -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 diff --git a/features/product/managing_product_attributes/product_attribute_unique_code_validation.feature b/features/product/managing_product_attributes/product_attribute_unique_code_validation.feature index 733bedd79a..b00b15a2b0 100644 --- a/features/product/managing_product_attributes/product_attribute_unique_code_validation.feature +++ b/features/product/managing_product_attributes/product_attribute_unique_code_validation.feature @@ -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 diff --git a/features/product/managing_product_options/adding_product_option.feature b/features/product/managing_product_options/adding_product_option.feature index c637d6189e..54ccd75e1d 100644 --- a/features/product/managing_product_options/adding_product_option.feature +++ b/features/product/managing_product_options/adding_product_option.feature @@ -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 diff --git a/features/product/managing_product_options/editing_product_option.feature b/features/product/managing_product_options/editing_product_option.feature index b6d2779c00..b80356f7f8 100644 --- a/features/product/managing_product_options/editing_product_option.feature +++ b/features/product/managing_product_options/editing_product_option.feature @@ -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" diff --git a/features/product/managing_product_options/managing_values_of_product_option.feature b/features/product/managing_product_options/managing_values_of_product_option.feature index fbd2719a48..b33f695874 100644 --- a/features/product/managing_product_options/managing_values_of_product_option.feature +++ b/features/product/managing_product_options/managing_values_of_product_option.feature @@ -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 diff --git a/features/product/managing_product_options/product_option_unique_code_validation.feature b/features/product/managing_product_options/product_option_unique_code_validation.feature index 62dc62ec80..adca682c77 100644 --- a/features/product/managing_product_options/product_option_unique_code_validation.feature +++ b/features/product/managing_product_options/product_option_unique_code_validation.feature @@ -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 diff --git a/features/product/managing_product_options/product_option_validation.feature b/features/product/managing_product_options/product_option_validation.feature index c9f8966b26..6d71516127 100644 --- a/features/product/managing_product_options/product_option_validation.feature +++ b/features/product/managing_product_options/product_option_validation.feature @@ -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" diff --git a/features/product/managing_product_variants/adding_product_variant.feature b/features/product/managing_product_variants/adding_product_variant.feature index e35f0d1033..d347df2f21 100644 --- a/features/product/managing_product_variants/adding_product_variant.feature +++ b/features/product/managing_product_variants/adding_product_variant.feature @@ -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 diff --git a/features/product/managing_product_variants/checking_products_in_the_shop_while_editing_their_product_variants.feature b/features/product/managing_product_variants/checking_products_in_the_shop_while_editing_their_product_variants.feature index 5dce7f074c..28220f5d3c 100644 --- a/features/product/managing_product_variants/checking_products_in_the_shop_while_editing_their_product_variants.feature +++ b/features/product/managing_product_variants/checking_products_in_the_shop_while_editing_their_product_variants.feature @@ -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 diff --git a/features/product/managing_product_variants/disable_or_enable_inventory_on_product_variant.feature b/features/product/managing_product_variants/disable_or_enable_inventory_on_product_variant.feature index 445a7c2480..343c815323 100644 --- a/features/product/managing_product_variants/disable_or_enable_inventory_on_product_variant.feature +++ b/features/product/managing_product_variants/disable_or_enable_inventory_on_product_variant.feature @@ -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 diff --git a/features/product/managing_product_variants/disable_or_enable_product_variant.feature b/features/product/managing_product_variants/disable_or_enable_product_variant.feature index d9f43b6577..a54e2f15a3 100644 --- a/features/product/managing_product_variants/disable_or_enable_product_variant.feature +++ b/features/product/managing_product_variants/disable_or_enable_product_variant.feature @@ -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 diff --git a/features/product/managing_product_variants/generating_product_variant.feature b/features/product/managing_product_variants/generating_product_variant.feature index 06336ad31f..deafaabfd1 100644 --- a/features/product/managing_product_variants/generating_product_variant.feature +++ b/features/product/managing_product_variants/generating_product_variant.feature @@ -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 diff --git a/features/product/managing_product_variants/product_variant_validation.feature b/features/product/managing_product_variants/product_variant_validation.feature index 4c850d142f..224abad4d7 100644 --- a/features/product/managing_product_variants/product_variant_validation.feature +++ b/features/product/managing_product_variants/product_variant_validation.feature @@ -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 diff --git a/features/product/managing_products/adding_images_to_existing_product.feature b/features/product/managing_products/adding_images_to_existing_product.feature index c826abeb69..be4c926797 100644 --- a/features/product/managing_products/adding_images_to_existing_product.feature +++ b/features/product/managing_products/adding_images_to_existing_product.feature @@ -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 diff --git a/features/product/managing_products/adding_product.feature b/features/product/managing_products/adding_product.feature index 7b8459931b..532952d50f 100644 --- a/features/product/managing_products/adding_product.feature +++ b/features/product/managing_products/adding_product.feature @@ -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 diff --git a/features/product/managing_products/adding_product_with_images.feature b/features/product/managing_products/adding_product_with_images.feature index bfe909f692..de5b9ef79f 100644 --- a/features/product/managing_products/adding_product_with_images.feature +++ b/features/product/managing_products/adding_product_with_images.feature @@ -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 diff --git a/features/product/managing_products/adding_product_with_percent_attribute.feature b/features/product/managing_products/adding_product_with_percent_attribute.feature index 637d2ca16a..26bce3b0c9 100644 --- a/features/product/managing_products/adding_product_with_percent_attribute.feature +++ b/features/product/managing_products/adding_product_with_percent_attribute.feature @@ -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)" diff --git a/features/product/managing_products/adding_product_with_text_attribute.feature b/features/product/managing_products/adding_product_with_text_attribute.feature index 37df48bd7f..4ad8e5f8bd 100644 --- a/features/product/managing_products/adding_product_with_text_attribute.feature +++ b/features/product/managing_products/adding_product_with_text_attribute.feature @@ -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)" diff --git a/features/product/managing_products/disable_or_enable_inventory_on_product.feature b/features/product/managing_products/disable_or_enable_inventory_on_product.feature index e1b1a0801d..89838d671c 100644 --- a/features/product/managing_products/disable_or_enable_inventory_on_product.feature +++ b/features/product/managing_products/disable_or_enable_inventory_on_product.feature @@ -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 diff --git a/features/product/managing_products/disable_or_enable_product.feature b/features/product/managing_products/disable_or_enable_product.feature index 268760755b..aabe530d14 100644 --- a/features/product/managing_products/disable_or_enable_product.feature +++ b/features/product/managing_products/disable_or_enable_product.feature @@ -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 diff --git a/features/product/managing_products/editing_product.feature b/features/product/managing_products/editing_product.feature index 8ca18f0c5a..34341733fb 100644 --- a/features/product/managing_products/editing_product.feature +++ b/features/product/managing_products/editing_product.feature @@ -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 diff --git a/features/product/managing_products/editing_product_slug.feature b/features/product/managing_products/editing_product_slug.feature index 7bff2a08a6..13593c16e3 100644 --- a/features/product/managing_products/editing_product_slug.feature +++ b/features/product/managing_products/editing_product_slug.feature @@ -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)" diff --git a/features/product/managing_products/editing_product_slug_in_multiple_locales.feature b/features/product/managing_products/editing_product_slug_in_multiple_locales.feature index 051fce8152..3b4f34483a 100644 --- a/features/product/managing_products/editing_product_slug_in_multiple_locales.feature +++ b/features/product/managing_products/editing_product_slug_in_multiple_locales.feature @@ -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)" diff --git a/features/product/managing_products/product_validation.feature b/features/product/managing_products/product_validation.feature index e3b2686fa8..f7de622cbf 100644 --- a/features/product/managing_products/product_validation.feature +++ b/features/product/managing_products/product_validation.feature @@ -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 diff --git a/features/promotion/managing_coupons/adding_coupon.feature b/features/promotion/managing_coupons/adding_coupon.feature index d180a8bcf0..8acc91cfb0 100644 --- a/features/promotion/managing_coupons/adding_coupon.feature +++ b/features/promotion/managing_coupons/adding_coupon.feature @@ -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" diff --git a/features/promotion/managing_coupons/browsing_coupon.feature b/features/promotion/managing_coupons/browsing_coupon.feature index ce854d59c8..c94595a8f7 100644 --- a/features/promotion/managing_coupons/browsing_coupon.feature +++ b/features/promotion/managing_coupons/browsing_coupon.feature @@ -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" diff --git a/features/promotion/managing_coupons/coupon_unique_code_validation.feature b/features/promotion/managing_coupons/coupon_unique_code_validation.feature index b9a342bed8..4f2a1d82bf 100644 --- a/features/promotion/managing_coupons/coupon_unique_code_validation.feature +++ b/features/promotion/managing_coupons/coupon_unique_code_validation.feature @@ -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" diff --git a/features/promotion/managing_coupons/coupon_validation.feature b/features/promotion/managing_coupons/coupon_validation.feature index cedbd27d7f..32568c7f92 100644 --- a/features/promotion/managing_coupons/coupon_validation.feature +++ b/features/promotion/managing_coupons/coupon_validation.feature @@ -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" diff --git a/features/promotion/managing_coupons/editing_coupon.feature b/features/promotion/managing_coupons/editing_coupon.feature index 1ec103d550..0bbe347fdd 100644 --- a/features/promotion/managing_coupons/editing_coupon.feature +++ b/features/promotion/managing_coupons/editing_coupon.feature @@ -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 diff --git a/features/promotion/managing_promotions/adding_promotion.feature b/features/promotion/managing_promotions/adding_promotion.feature index be973d0152..e165220974 100644 --- a/features/promotion/managing_promotions/adding_promotion.feature +++ b/features/promotion/managing_promotions/adding_promotion.feature @@ -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 diff --git a/features/promotion/managing_promotions/adding_promotion_with_rule.feature b/features/promotion/managing_promotions/adding_promotion_with_rule.feature index ad93aa803f..f73bdd5962 100644 --- a/features/promotion/managing_promotions/adding_promotion_with_rule.feature +++ b/features/promotion/managing_promotions/adding_promotion_with_rule.feature @@ -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 diff --git a/features/promotion/managing_promotions/adding_promotion_with_rule_in_different_channels.feature b/features/promotion/managing_promotions/adding_promotion_with_rule_in_different_channels.feature index dce0258b16..423b4e3765 100644 --- a/features/promotion/managing_promotions/adding_promotion_with_rule_in_different_channels.feature +++ b/features/promotion/managing_promotions/adding_promotion_with_rule_in_different_channels.feature @@ -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 diff --git a/features/promotion/managing_promotions/browsing_promotions.feature b/features/promotion/managing_promotions/browsing_promotions.feature index 94035dbbd3..d96e582a35 100644 --- a/features/promotion/managing_promotions/browsing_promotions.feature +++ b/features/promotion/managing_promotions/browsing_promotions.feature @@ -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 diff --git a/features/promotion/managing_promotions/editing_promotion.feature b/features/promotion/managing_promotions/editing_promotion.feature index 6ca86484ed..6b4b3955ab 100644 --- a/features/promotion/managing_promotions/editing_promotion.feature +++ b/features/promotion/managing_promotions/editing_promotion.feature @@ -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 diff --git a/features/promotion/managing_promotions/promotion_unique_code_validation.feature b/features/promotion/managing_promotions/promotion_unique_code_validation.feature index bbd463ce33..e76fc88510 100644 --- a/features/promotion/managing_promotions/promotion_unique_code_validation.feature +++ b/features/promotion/managing_promotions/promotion_unique_code_validation.feature @@ -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 diff --git a/features/promotion/managing_promotions/promotion_validation.feature b/features/promotion/managing_promotions/promotion_validation.feature index 16af3aaf09..bb61019357 100644 --- a/features/promotion/managing_promotions/promotion_validation.feature +++ b/features/promotion/managing_promotions/promotion_validation.feature @@ -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 diff --git a/features/promotion/managing_promotions/promotions_filter_validation.feature b/features/promotion/managing_promotions/promotions_filter_validation.feature index df1622a711..e2168a7209 100644 --- a/features/promotion/managing_promotions/promotions_filter_validation.feature +++ b/features/promotion/managing_promotions/promotions_filter_validation.feature @@ -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" diff --git a/features/shipping/managing_shipping_categories/adding_shipping_category.feature b/features/shipping/managing_shipping_categories/adding_shipping_category.feature index 33611f3092..cae33de4e5 100644 --- a/features/shipping/managing_shipping_categories/adding_shipping_category.feature +++ b/features/shipping/managing_shipping_categories/adding_shipping_category.feature @@ -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 diff --git a/features/shipping/managing_shipping_categories/editing_shipping_category.feature b/features/shipping/managing_shipping_categories/editing_shipping_category.feature index 15e556fbe3..c888921c5e 100644 --- a/features/shipping/managing_shipping_categories/editing_shipping_category.feature +++ b/features/shipping/managing_shipping_categories/editing_shipping_category.feature @@ -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" diff --git a/features/shipping/managing_shipping_categories/shipping_category_unique_code_validation.feature b/features/shipping/managing_shipping_categories/shipping_category_unique_code_validation.feature index 30b7d51b2f..cbaccc74b1 100644 --- a/features/shipping/managing_shipping_categories/shipping_category_unique_code_validation.feature +++ b/features/shipping/managing_shipping_categories/shipping_category_unique_code_validation.feature @@ -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 diff --git a/features/shipping/managing_shipping_methods/editing_shipping_method.feature b/features/shipping/managing_shipping_methods/editing_shipping_method.feature index 75351c4292..63b9c64f7c 100644 --- a/features/shipping/managing_shipping_methods/editing_shipping_method.feature +++ b/features/shipping/managing_shipping_methods/editing_shipping_method.feature @@ -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" diff --git a/features/shipping/managing_shipping_methods/shipping_method_code_validation.feature b/features/shipping/managing_shipping_methods/shipping_method_code_validation.feature index 90084159bb..543a3c8cf6 100644 --- a/features/shipping/managing_shipping_methods/shipping_method_code_validation.feature +++ b/features/shipping/managing_shipping_methods/shipping_method_code_validation.feature @@ -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 diff --git a/features/shipping/managing_shipping_methods/shipping_method_unique_code_validation.feature b/features/shipping/managing_shipping_methods/shipping_method_unique_code_validation.feature index 786493113f..43ef82d7cb 100644 --- a/features/shipping/managing_shipping_methods/shipping_method_unique_code_validation.feature +++ b/features/shipping/managing_shipping_methods/shipping_method_unique_code_validation.feature @@ -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 diff --git a/features/shipping/managing_shipping_methods/shipping_method_validation.feature b/features/shipping/managing_shipping_methods/shipping_method_validation.feature index f642d9be57..af8f37c9c1 100644 --- a/features/shipping/managing_shipping_methods/shipping_method_validation.feature +++ b/features/shipping/managing_shipping_methods/shipping_method_validation.feature @@ -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 diff --git a/features/shipping/managing_shipping_methods/toggling_shipping_method.feature b/features/shipping/managing_shipping_methods/toggling_shipping_method.feature index 2b13a116e6..349e103a38 100644 --- a/features/shipping/managing_shipping_methods/toggling_shipping_method.feature +++ b/features/shipping/managing_shipping_methods/toggling_shipping_method.feature @@ -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 diff --git a/features/taxation/managing_tax_categories/editing_tax_category.feature b/features/taxation/managing_tax_categories/editing_tax_category.feature index f6c09b78ff..8d1172834d 100644 --- a/features/taxation/managing_tax_categories/editing_tax_category.feature +++ b/features/taxation/managing_tax_categories/editing_tax_category.feature @@ -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" diff --git a/features/taxation/managing_tax_categories/tax_category_validation.feature b/features/taxation/managing_tax_categories/tax_category_validation.feature index c3c7d4cad0..a76d634650 100644 --- a/features/taxation/managing_tax_categories/tax_category_validation.feature +++ b/features/taxation/managing_tax_categories/tax_category_validation.feature @@ -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 diff --git a/features/taxation/managing_tax_rates/adding_tax_rate.feature b/features/taxation/managing_tax_rates/adding_tax_rate.feature index 44e718232f..3b7443ddbf 100644 --- a/features/taxation/managing_tax_rates/adding_tax_rate.feature +++ b/features/taxation/managing_tax_rates/adding_tax_rate.feature @@ -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 diff --git a/features/taxation/managing_tax_rates/editing_tax_rate.feature b/features/taxation/managing_tax_rates/editing_tax_rate.feature index 3f192a6734..a8476feaef 100644 --- a/features/taxation/managing_tax_rates/editing_tax_rate.feature +++ b/features/taxation/managing_tax_rates/editing_tax_rate.feature @@ -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 diff --git a/features/taxation/managing_tax_rates/tax_rate_unique_code_validation.feature b/features/taxation/managing_tax_rates/tax_rate_unique_code_validation.feature index 3899604c36..36430b125b 100644 --- a/features/taxation/managing_tax_rates/tax_rate_unique_code_validation.feature +++ b/features/taxation/managing_tax_rates/tax_rate_unique_code_validation.feature @@ -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 diff --git a/features/taxation/managing_tax_rates/tax_rate_validation.feature b/features/taxation/managing_tax_rates/tax_rate_validation.feature index b3568990aa..606770cabd 100644 --- a/features/taxation/managing_tax_rates/tax_rate_validation.feature +++ b/features/taxation/managing_tax_rates/tax_rate_validation.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/adding_images_to_existing_taxon.feature b/features/taxonomy/managing_taxons/adding_images_to_existing_taxon.feature index cdd240dc28..7eefd85371 100644 --- a/features/taxonomy/managing_taxons/adding_images_to_existing_taxon.feature +++ b/features/taxonomy/managing_taxons/adding_images_to_existing_taxon.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/adding_taxon.feature b/features/taxonomy/managing_taxons/adding_taxon.feature index 00f55a77ea..c1d3f01015 100644 --- a/features/taxonomy/managing_taxons/adding_taxon.feature +++ b/features/taxonomy/managing_taxons/adding_taxon.feature @@ -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)" diff --git a/features/taxonomy/managing_taxons/adding_taxon_for_parent.feature b/features/taxonomy/managing_taxons/adding_taxon_for_parent.feature index f6dd80f245..5e70fcc6c8 100644 --- a/features/taxonomy/managing_taxons/adding_taxon_for_parent.feature +++ b/features/taxonomy/managing_taxons/adding_taxon_for_parent.feature @@ -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)" diff --git a/features/taxonomy/managing_taxons/adding_taxon_for_with_parent.feature b/features/taxonomy/managing_taxons/adding_taxon_for_with_parent.feature index 4770cf31f0..209c142566 100644 --- a/features/taxonomy/managing_taxons/adding_taxon_for_with_parent.feature +++ b/features/taxonomy/managing_taxons/adding_taxon_for_with_parent.feature @@ -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)" diff --git a/features/taxonomy/managing_taxons/adding_taxon_with_images.feature b/features/taxonomy/managing_taxons/adding_taxon_with_images.feature index e8cb7968bd..8c07dece3e 100644 --- a/features/taxonomy/managing_taxons/adding_taxon_with_images.feature +++ b/features/taxonomy/managing_taxons/adding_taxon_with_images.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/browsing_taxon.feature b/features/taxonomy/managing_taxons/browsing_taxon.feature index 84104fbfd6..46f461c7ac 100644 --- a/features/taxonomy/managing_taxons/browsing_taxon.feature +++ b/features/taxonomy/managing_taxons/browsing_taxon.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/changing_images_of_taxon.feature b/features/taxonomy/managing_taxons/changing_images_of_taxon.feature index 5d3c284b33..04e65ecfb6 100644 --- a/features/taxonomy/managing_taxons/changing_images_of_taxon.feature +++ b/features/taxonomy/managing_taxons/changing_images_of_taxon.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/editing_taxon.feature b/features/taxonomy/managing_taxons/editing_taxon.feature index 052e8a32b5..91125a2b6e 100644 --- a/features/taxonomy/managing_taxons/editing_taxon.feature +++ b/features/taxonomy/managing_taxons/editing_taxon.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/editing_taxon_slug.feature b/features/taxonomy/managing_taxons/editing_taxon_slug.feature index 5f36c7291d..460006ac68 100644 --- a/features/taxonomy/managing_taxons/editing_taxon_slug.feature +++ b/features/taxonomy/managing_taxons/editing_taxon_slug.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/editing_taxon_slug_in_multiple_locales.feature b/features/taxonomy/managing_taxons/editing_taxon_slug_in_multiple_locales.feature index e3d3a3ca39..1b35de0842 100644 --- a/features/taxonomy/managing_taxons/editing_taxon_slug_in_multiple_locales.feature +++ b/features/taxonomy/managing_taxons/editing_taxon_slug_in_multiple_locales.feature @@ -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)" diff --git a/features/taxonomy/managing_taxons/removing_images_of_taxon.feature b/features/taxonomy/managing_taxons/removing_images_of_taxon.feature index 90e2e0060d..ec54e58dbf 100644 --- a/features/taxonomy/managing_taxons/removing_images_of_taxon.feature +++ b/features/taxonomy/managing_taxons/removing_images_of_taxon.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/taxon_unique_code_validation.feature b/features/taxonomy/managing_taxons/taxon_unique_code_validation.feature index e3505f6585..7607525e28 100644 --- a/features/taxonomy/managing_taxons/taxon_unique_code_validation.feature +++ b/features/taxonomy/managing_taxons/taxon_unique_code_validation.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/taxon_validation.feature b/features/taxonomy/managing_taxons/taxon_validation.feature index a415d50c83..2899f4173b 100644 --- a/features/taxonomy/managing_taxons/taxon_validation.feature +++ b/features/taxonomy/managing_taxons/taxon_validation.feature @@ -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 diff --git a/features/taxonomy/managing_taxons/toggling_taxon.feature b/features/taxonomy/managing_taxons/toggling_taxon.feature index 5a988506cf..ccbe176309 100644 --- a/features/taxonomy/managing_taxons/toggling_taxon.feature +++ b/features/taxonomy/managing_taxons/toggling_taxon.feature @@ -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 diff --git a/features/user/managing_customers/adding_customer.feature b/features/user/managing_customers/adding_customer.feature index 7b75da0f2b..5a7408c08a 100644 --- a/features/user/managing_customers/adding_customer.feature +++ b/features/user/managing_customers/adding_customer.feature @@ -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" diff --git a/features/user/managing_customers/adding_customer_account.feature b/features/user/managing_customers/adding_customer_account.feature index 931b533375..1756707d3a 100644 --- a/features/user/managing_customers/adding_customer_account.feature +++ b/features/user/managing_customers/adding_customer_account.feature @@ -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 diff --git a/features/user/managing_customers/adding_customer_account_after_failed_creation_action.feature b/features/user/managing_customers/adding_customer_account_after_failed_creation_action.feature index 249fde2b77..d372b2e94c 100644 --- a/features/user/managing_customers/adding_customer_account_after_failed_creation_action.feature +++ b/features/user/managing_customers/adding_customer_account_after_failed_creation_action.feature @@ -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 diff --git a/features/user/managing_customers/being_able_to_create_account_for_existing_customer.feature b/features/user/managing_customers/being_able_to_create_account_for_existing_customer.feature index 9e5df736d3..06a5bb101a 100644 --- a/features/user/managing_customers/being_able_to_create_account_for_existing_customer.feature +++ b/features/user/managing_customers/being_able_to_create_account_for_existing_customer.feature @@ -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" diff --git a/features/user/managing_customers/customer_unique_email_validation.feature b/features/user/managing_customers/customer_unique_email_validation.feature index f7ede022d0..155344dd5b 100644 --- a/features/user/managing_customers/customer_unique_email_validation.feature +++ b/features/user/managing_customers/customer_unique_email_validation.feature @@ -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" diff --git a/features/user/managing_customers/customer_validation.feature b/features/user/managing_customers/customer_validation.feature index 5f721ab42c..bb0b8e8325 100644 --- a/features/user/managing_customers/customer_validation.feature +++ b/features/user/managing_customers/customer_validation.feature @@ -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 \ No newline at end of file + And the customer with email "wrongemail@example..com" should not appear in the store diff --git a/features/user/managing_customers/editing_customer.feature b/features/user/managing_customers/editing_customer.feature index 38b03737c9..4aa0b73146 100644 --- a/features/user/managing_customers/editing_customer.feature +++ b/features/user/managing_customers/editing_customer.feature @@ -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 diff --git a/features/user/managing_customers/toggling_customer_account.feature b/features/user/managing_customers/toggling_customer_account.feature index 5812d82e7c..9c7a45f7ce 100644 --- a/features/user/managing_customers/toggling_customer_account.feature +++ b/features/user/managing_customers/toggling_customer_account.feature @@ -10,8 +10,8 @@ Feature: Toggling a customer account @ui Scenario: Enabling a customer account Given there is disabled customer account "f.baggins@example.com" with password "psw" - And I want to enable "f.baggins@example.com" - When I enable their account + When I want to enable "f.baggins@example.com" + And I enable their account And I save my changes Then I should be notified that it has been successfully edited And this customer should be enabled @@ -19,8 +19,8 @@ Feature: Toggling a customer account @ui Scenario: Disabling a customer account Given there is enabled customer account "f.baggins@example.com" with password "psw" - And I want to disable "f.baggins@example.com" - When I disable their account + When I want to disable "f.baggins@example.com" + And I disable their account And I save my changes Then I should be notified that it has been successfully edited And this customer should be disabled diff --git a/src/Sylius/Behat/Context/Api/Admin/ManagingPromotionsContext.php b/src/Sylius/Behat/Context/Api/Admin/ManagingPromotionsContext.php index 4f2ec4b522..6a50d57a91 100644 --- a/src/Sylius/Behat/Context/Api/Admin/ManagingPromotionsContext.php +++ b/src/Sylius/Behat/Context/Api/Admin/ManagingPromotionsContext.php @@ -34,7 +34,7 @@ final class ManagingPromotionsContext implements Context } /** - * @Given I want to browse promotions + * @When I want to browse promotions * @When I browse promotions */ public function iWantToBrowsePromotions(): void diff --git a/src/Sylius/Behat/Context/Ui/Admin/LoginContext.php b/src/Sylius/Behat/Context/Ui/Admin/LoginContext.php index 337a4c801f..ee56af9de5 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/LoginContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/LoginContext.php @@ -32,7 +32,7 @@ final class LoginContext implements Context } /** - * @Given I want to log in + * @When I want to log in */ public function iWantToLogIn() { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingAdministratorsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingAdministratorsContext.php index bcbbcf8a75..3a0744d224 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingAdministratorsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingAdministratorsContext.php @@ -60,7 +60,7 @@ final class ManagingAdministratorsContext implements Context } /** - * @Given I want to create a new administrator + * @When I want to create a new administrator */ public function iWantToCreateANewAdministrator() { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingCurrenciesContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingCurrenciesContext.php index 962721cac8..e170396668 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingCurrenciesContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingCurrenciesContext.php @@ -39,7 +39,7 @@ final class ManagingCurrenciesContext implements Context } /** - * @Given I want to add a new currency + * @When I want to add a new currency */ public function iWantToAddNewCurrency() { @@ -75,7 +75,7 @@ final class ManagingCurrenciesContext implements Context } /** - * @Given /^I want to edit (this currency)$/ + * @When /^I want to edit (this currency)$/ */ public function iWantToEditThisCurrency(CurrencyInterface $currency) { @@ -134,7 +134,7 @@ final class ManagingCurrenciesContext implements Context } /** - * @Given I want to browse currencies of the store + * @When I want to browse currencies of the store */ public function iWantToSeeAllCurrenciesInStore() { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomerGroupsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomerGroupsContext.php index 78dd0be601..5a2d13488a 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomerGroupsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomerGroupsContext.php @@ -44,7 +44,7 @@ final class ManagingCustomerGroupsContext implements Context } /** - * @Given I want to create a new customer group + * @When I want to create a new customer group */ public function iWantToCreateANewCustomerGroup() { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomersContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomersContext.php index 687cc68d7e..9cad6570e9 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomersContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingCustomersContext.php @@ -58,8 +58,8 @@ final class ManagingCustomersContext implements Context } /** - * @Given I want to create a new customer - * @Given I want to create a new customer account + * @When I want to create a new customer + * @When I want to create a new customer account */ public function iWantToCreateANewCustomer() { @@ -310,9 +310,9 @@ final class ManagingCustomersContext implements Context } /** - * @Given I want to enable :customer - * @Given I want to disable :customer - * @Given I want to verify :customer + * @When I want to enable :customer + * @When I want to disable :customer + * @When I want to verify :customer */ public function iWantToChangeStatusOf(CustomerInterface $customer): void { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingExchangeRatesContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingExchangeRatesContext.php index 88954edf3a..e7b442a8b2 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingExchangeRatesContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingExchangeRatesContext.php @@ -40,7 +40,7 @@ final class ManagingExchangeRatesContext implements Context } /** - * @Given I want to add a new exchange rate + * @When I want to add a new exchange rate */ public function iWantToAddNewExchangeRate() { @@ -48,7 +48,7 @@ final class ManagingExchangeRatesContext implements Context } /** - * @Given /^I want to edit (this exchange rate)$/ + * @When /^I want to edit (this exchange rate)$/ * @When /^I am editing (this exchange rate)$/ */ public function iWantToEditThisExchangeRate(ExchangeRateInterface $exchangeRate) diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingLocalesContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingLocalesContext.php index 816ba5df4d..48a57339fd 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingLocalesContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingLocalesContext.php @@ -31,8 +31,8 @@ final class ManagingLocalesContext implements Context } /** - * @Given I want to create a new locale - * @Given I want to add a new locale + * @When I want to create a new locale + * @When I want to add a new locale */ public function iWantToCreateNewLocale() { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingPaymentMethodsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingPaymentMethodsContext.php index 0f0f68c193..57d92927c1 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingPaymentMethodsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingPaymentMethodsContext.php @@ -54,7 +54,7 @@ final class ManagingPaymentMethodsContext implements Context } /** - * @Given I want to modify the :paymentMethod payment method + * @When I want to modify the :paymentMethod payment method */ public function iWantToModifyAPaymentMethod(PaymentMethodInterface $paymentMethod) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingProductOptionsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingProductOptionsContext.php index d6747797d0..9e2db8525f 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingProductOptionsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingProductOptionsContext.php @@ -44,7 +44,7 @@ final class ManagingProductOptionsContext implements Context } /** - * @Given I want to create a new product option + * @When I want to create a new product option */ public function iWantToCreateANewProductOption() { @@ -52,7 +52,7 @@ final class ManagingProductOptionsContext implements Context } /** - * @Given I want to modify the :productOption product option + * @When I want to modify the :productOption product option */ public function iWantToModifyAProductOption(ProductOptionInterface $productOption) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php index 6d58fe141b..ccced0f465 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php @@ -62,7 +62,7 @@ final class ManagingProductVariantsContext implements Context } /** - * @Given /^I want to create a new variant of (this product)$/ + * @When /^I want to create a new variant of (this product)$/ */ public function iWantToCreateANewProduct(ProductInterface $product) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionCouponsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionCouponsContext.php index f6eb6db8fc..eecede09f2 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionCouponsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionCouponsContext.php @@ -57,7 +57,7 @@ final class ManagingPromotionCouponsContext implements Context /** * @Given /^I browse coupons of (this promotion)$/ - * @Given /^I want to view all coupons of (this promotion)$/ + * @When /^I want to view all coupons of (this promotion)$/ * @When /^I browse all coupons of ("[^"]+" promotion)$/ */ public function iWantToViewAllCouponsOfThisPromotion(PromotionInterface $promotion) @@ -66,7 +66,7 @@ final class ManagingPromotionCouponsContext implements Context } /** - * @Given /^I want to create a new coupon for (this promotion)$/ + * @When /^I want to create a new coupon for (this promotion)$/ */ public function iWantToCreateANewCouponForThisPromotion(PromotionInterface $promotion) { @@ -74,7 +74,7 @@ final class ManagingPromotionCouponsContext implements Context } /** - * @Given /^I want to modify the ("[^"]+" coupon) for (this promotion)$/ + * @When /^I want to modify the ("[^"]+" coupon) for (this promotion)$/ */ public function iWantToModifyTheCoupon(PromotionCouponInterface $coupon, PromotionInterface $promotion) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionsContext.php index 774936a1ac..68a1b7f0cd 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionsContext.php @@ -69,7 +69,7 @@ final class ManagingPromotionsContext implements Context } /** - * @Given I want to browse promotions + * @When I want to browse promotions * @When I browse promotions */ public function iWantToBrowsePromotions() @@ -409,8 +409,8 @@ final class ManagingPromotionsContext implements Context } /** - * @Given I want to modify a :promotion promotion - * @Given /^I want to modify (this promotion)$/ + * @When I want to modify a :promotion promotion + * @When /^I want to modify (this promotion)$/ * @When I modify a :promotion promotion */ public function iWantToModifyAPromotion(PromotionInterface $promotion): void diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingCategoriesContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingCategoriesContext.php index fcfd7208fa..bbe0fc6445 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingCategoriesContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingCategoriesContext.php @@ -39,7 +39,7 @@ class ManagingShippingCategoriesContext implements Context } /** - * @Given I want to create a new shipping category + * @When I want to create a new shipping category */ public function iWantToCreateANewShippingCategory() { @@ -155,7 +155,7 @@ class ManagingShippingCategoriesContext implements Context /** * @When /^I modify a (shipping category "([^"]+)")$/ - * @Given /^I want to modify a (shipping category "([^"]+)")$/ + * @When /^I want to modify a (shipping category "([^"]+)")$/ */ public function iWantToModifyAShippingCategory(ShippingCategoryInterface $shippingCategory) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingMethodsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingMethodsContext.php index fef5a1d2be..a88117ee04 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingMethodsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingShippingMethodsContext.php @@ -201,8 +201,8 @@ final class ManagingShippingMethodsContext implements Context } /** - * @Given I want to modify a shipping method :shippingMethod - * @Given /^I want to modify (this shipping method)$/ + * @When I want to modify a shipping method :shippingMethod + * @When /^I want to modify (this shipping method)$/ */ public function iWantToModifyAShippingMethod(ShippingMethodInterface $shippingMethod) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxCategoriesContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxCategoriesContext.php index 1b431e2a3e..26b72a50ba 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxCategoriesContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxCategoriesContext.php @@ -61,7 +61,7 @@ final class ManagingTaxCategoriesContext implements Context } /** - * @Given I want to create a new tax category + * @When I want to create a new tax category */ public function iWantToCreateNewTaxCategory() { @@ -116,8 +116,8 @@ final class ManagingTaxCategoriesContext implements Context } /** - * @Given I want to modify a tax category :taxCategory - * @Given /^I want to modify (this tax category)$/ + * @When I want to modify a tax category :taxCategory + * @When /^I want to modify (this tax category)$/ */ public function iWantToModifyTaxCategory(TaxCategoryInterface $taxCategory) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxRateContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxRateContext.php index 4d61e0bb7c..a435a76af6 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxRateContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxRateContext.php @@ -44,7 +44,7 @@ final class ManagingTaxRateContext implements Context } /** - * @Given I want to create a new tax rate + * @When I want to create a new tax rate */ public function iWantToCreateNewTaxRate() { @@ -145,8 +145,8 @@ final class ManagingTaxRateContext implements Context } /** - * @Given I want to modify a tax rate :taxRate - * @Given /^I want to modify (this tax rate)$/ + * @When I want to modify a tax rate :taxRate + * @When /^I want to modify (this tax rate)$/ */ public function iWantToModifyTaxRate(TaxRateInterface $taxRate) { diff --git a/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxonsContext.php b/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxonsContext.php index e1d7d73eee..3032afd727 100644 --- a/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxonsContext.php +++ b/src/Sylius/Behat/Context/Ui/Admin/ManagingTaxonsContext.php @@ -60,8 +60,8 @@ final class ManagingTaxonsContext implements Context } /** - * @Given I want to create a new taxon - * @Given I want to see all taxons in store + * @When I want to create a new taxon + * @When I want to see all taxons in store */ public function iWantToCreateANewTaxon() { @@ -69,7 +69,7 @@ final class ManagingTaxonsContext implements Context } /** - * @Given I want to create a new taxon for :taxon + * @When I want to create a new taxon for :taxon */ public function iWantToCreateANewTaxonForParent(TaxonInterface $taxon) { @@ -77,7 +77,7 @@ final class ManagingTaxonsContext implements Context } /** - * @Given /^I want to modify the ("[^"]+" taxon)$/ + * @When /^I want to modify the ("[^"]+" taxon)$/ */ public function iWantToModifyATaxon(TaxonInterface $taxon) { diff --git a/src/Sylius/Behat/Context/Ui/Shop/AccountContext.php b/src/Sylius/Behat/Context/Ui/Shop/AccountContext.php index d6430fe52e..cf6ef7f377 100644 --- a/src/Sylius/Behat/Context/Ui/Shop/AccountContext.php +++ b/src/Sylius/Behat/Context/Ui/Shop/AccountContext.php @@ -172,7 +172,7 @@ final class AccountContext implements Context } /** - * @Given /^I want to change my password$/ + * @When /^I want to change my password$/ */ public function iWantToChangeMyPassword() {