From 5f68148f5f07500e68e1981b669d95415a674d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pysiak?= Date: Wed, 2 Oct 2024 12:45:25 +0200 Subject: [PATCH] [Behat] Move scenario to admin context --- ...ustomer_ip_address_to_placed_order.feature | 22 +++++++++++++++++++ ...ustomer_ip_address_to_placed_order.feature | 22 ------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 features/admin/order/managing_orders/assigning_customer_ip_address_to_placed_order.feature delete mode 100644 features/hybrid/checkout/assigning_customer_ip_address_to_placed_order.feature diff --git a/features/admin/order/managing_orders/assigning_customer_ip_address_to_placed_order.feature b/features/admin/order/managing_orders/assigning_customer_ip_address_to_placed_order.feature new file mode 100644 index 0000000000..02d32b6b44 --- /dev/null +++ b/features/admin/order/managing_orders/assigning_customer_ip_address_to_placed_order.feature @@ -0,0 +1,22 @@ +@checkout +Feature: Assigning customer's IP address to a placed order + In order to know from which IP address a new order has been places + As an Administrator + I want to have customer's IP address assigned to their orders + + Background: + Given the store operates on a single channel in "United States" + And the store has a product "PHP T-Shirt" priced at "$19.99" + And the store ships everywhere for Free + And the store allows paying Offline + And there is a customer account "customer@example.com" + And there is a customer "customer@example.com" that placed order with "PHP T-Shirt" product to "United States" based billing address with "Free" shipping method and "Offline" payment method without completing it + And I am logged in as "customer@example.com" + And I confirm my order + Then I should see the thank you page + + @api @ui + Scenario: Verifying the customer's IP address for a newly placed order + Given I am logged in as an administrator + When I view the summary of the order placed by "customer@example.com" + Then I should see that customer's IP address is "127.0.0.1" diff --git a/features/hybrid/checkout/assigning_customer_ip_address_to_placed_order.feature b/features/hybrid/checkout/assigning_customer_ip_address_to_placed_order.feature deleted file mode 100644 index 0387928dd8..0000000000 --- a/features/hybrid/checkout/assigning_customer_ip_address_to_placed_order.feature +++ /dev/null @@ -1,22 +0,0 @@ -@checkout -Feature: Assigning customer's IP address to a placed order - In order to know from which IP address a new order has been places - As an Administrator - I want to have customer's IP address assigned to their orders - - Background: - Given the store operates on a single channel in "United States" - And the store has a product "PHP T-Shirt" priced at "$19.99" - And the store ships everywhere for Free - And the store allows paying Offline - And there is an administrator "sylius@example.com" identified by "sylius" - And there is a customer account "customer@example.com" identified by "sylius" - And I am logged in as "customer@example.com" - - @todo @ui - Scenario: Assigning customer's IP address to a newly placed order - Given I have product "PHP T-Shirt" in the cart - And I specified the billing address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow" - And I proceed with "Free" shipping method and "Offline" payment - And I confirm my order - Then the administrator should know about IP address of this order made by "customer@example.com"