Skip to content

Commit 8dd1774

Browse files
Merge branch 'ACQE-8963' into ACQE-functional-deployment-version20
2 parents 861df10 + 9867b11 commit 8dd1774

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminVerifyCustomerGroupNotLoggedInForGuestOrderTest">
12+
<annotations>
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"/>
17+
<severity value="AVERAGE"/>
18+
<testCaseId value="AC-6430"/>
19+
<group value="checkout"/>
20+
</annotations>
21+
<before>
22+
<!-- Precondition Step 1:Create Simple Product and Customer -->
23+
<createData entity="SimpleProduct_100" stepKey="simpleProductOne"/>
24+
</before>
25+
<after>
26+
<!-- Admin log out -->
27+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
28+
<!-- Delete created product -->
29+
<deleteData createDataKey="simpleProductOne" stepKey="deleteSimpleProduct"/>
30+
</after>
31+
<!-- Step 1: Navigate to Frontend > place an order through check money with guest checkout. -->
32+
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStorefrontPage"/>
33+
<!-- Add Simple Product to cart -->
34+
<actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="openProductFromCategory">
35+
<argument name="productUrlKey" value="$simpleProductOne.custom_attributes[url_key]$"/>
36+
</actionGroup>
37+
<actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="addProductToCart">
38+
<argument name="product" value="$$simpleProductOne$$"/>
39+
<argument name="productCount" value="1"/>
40+
</actionGroup>
41+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
42+
<!-- Guest Checkout Process-->
43+
<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShippingSection">
44+
<argument name="customerVar" value="CustomerEntityOne"/>
45+
<argument name="customerAddressVar" value="CustomerAddressSimple"/>
46+
</actionGroup>
47+
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="guestSelectCheckMoneyOrderPayment"/>
48+
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/>
49+
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
50+
<!-- Step 2: Navigate to admin panel > sales > orders > check customer group -->
51+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
52+
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderById">
53+
<argument name="orderId" value="$grabOrderNumber"/>
54+
</actionGroup>
55+
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickOrderRow"/>
56+
<waitForElementVisible selector="{{AdminOrderDetailsInformationSection.customerGroup}}" stepKey="waitForCustomerGroupFieldOnOrderView"/>
57+
<waitForText selector="{{AdminOrderDetailsInformationSection.customerGroup}}" userInput="{{SimpleCatalogPriceRule.customerGroups}}" stepKey="assertCustomerGroupIsNotLoggedIn"/>
58+
</test>
59+
</tests>

0 commit comments

Comments
 (0)