Skip to content

Commit feee64e

Browse files
committed
ACQE-8963: To verify customer group for guest users
- Additional space has been removed from test file
1 parent 9f090db commit feee64e

File tree

2 files changed

+16
-111
lines changed

2 files changed

+16
-111
lines changed

app/code/Magento/Checkout/Test/Mftf/Test/AdminVerifyCustomerGroupNotLoggedInForGuestOrderTest.xml

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,78 +8,60 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<test name="SATest">
11+
<test name="AdminVerifyCustomerGroupNotLoggedInForGuestOrderTest">
1212
<annotations>
13-
<features value="OnePageCheckout"/>
14-
<stories value="OnePageCheckout within Offline Payment Methods"/>
15-
<title value="OnePageCheckout as a customer with non-existent customer group assigned to the quote"/>
16-
<description value="Checkout as a customer with non-existent customer group assigned to the quote"/>
13+
<features value="Checkout"/>
14+
<stories value="Order view shows customer group for guest orders"/>
15+
<title value="Admin sees 'NOT LOGGED IN' customer group on guest order view"/>
16+
<description value="Place a guest order on storefront and verify the customer group is NOT LOGGED IN"/>
1717
<severity value="AVERAGE"/>
18-
<testCaseId value="MC-36385"/>
18+
<testCaseId value="AC-6430"/>
1919
<group value="checkout"/>
2020
</annotations>
2121
<before>
22-
<!-- Create Simple Product -->
23-
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/>
22+
<!-- Precondition Step 1:Create Simple Product and Customer -->
23+
<createData entity="SimpleProduct" stepKey="createSimpleProduct"/>
2424
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
25-
26-
27-
2825
</before>
2926
<after>
3027
<!-- Admin log out -->
3128
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
32-
3329
<!-- Customer log out -->
3430
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/>
35-
3631
<!-- Delete created product -->
3732
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
38-
3933
<!-- Delete customer -->
4034
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
4135
</after>
42-
43-
<!-- Login as customer -->
44-
45-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex">
36+
<!-- Step 1: Navigate to Frontend > place an order through check money with guest checkout. -->
37+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
4638
<argument name="indices" value=""/>
4739
</actionGroup>
4840
<!-- Add Simple Product to cart -->
49-
<amOnPage url="{{StorefrontProductPage.url($$createSimpleProduct.custom_attributes[url_key]$$)}}" stepKey="navigateToSimpleProductPage"/>
41+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage">
42+
<argument name="productUrl" value="$$createSimpleProduct.sku$$"/>
43+
</actionGroup>
5044
<waitForPageLoad stepKey="waitForSimpleProductPageLoad"/>
51-
52-
53-
<!-- Delete customer group -->
54-
5545
<actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="addProductToCart">
5646
<argument name="product" value="$$createSimpleProduct$$"/>
5747
<argument name="productCount" value="1"/>
5848
</actionGroup>
5949
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
50+
<!-- Guest Checkout Process-->
6051
<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShippingSection">
6152
<argument name="customerVar" value="CustomerEntityOne"/>
6253
<argument name="customerAddressVar" value="CustomerAddressSimple"/>
6354
</actionGroup>
6455
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="guestSelectCheckMoneyOrderPayment"/>
65-
66-
6756
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/>
6857
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
69-
70-
<!--Check subtotal in created order-->
58+
<!-- Step 2: Navigate to admin panel > sales > orders > check customer group -->
7159
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
7260
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderById">
7361
<argument name="orderId" value="$grabOrderNumber"/>
7462
</actionGroup>
75-
7663
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickOrderRow"/>
77-
<!-- <actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickOrderRow"/>-->
78-
7964
<waitForElementVisible selector="{{AdminOrderDetailsInformationSection.customerGroup}}" stepKey="waitForCustomerGroupFieldOnOrderView"/>
80-
<waitForText selector="{{AdminOrderDetailsInformationSection.customerGroup}}" userInput="NOT LOGGED IN" stepKey="assertCustomerGroupIsNotLoggedIn"/>
81-
82-
83-
65+
<waitForText selector="{{AdminOrderDetailsInformationSection.customerGroup}}" userInput="{{SimpleCatalogPriceRule.customerGroups}}" stepKey="assertCustomerGroupIsNotLoggedIn"/>
8466
</test>
8567
</tests>

app/code/Magento/Sales/Test/Mftf/Test/AdminVerifyCustomerGroupNotLoggedInForGuestOrderTest.xml

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)