Skip to content

Commit 8124c10

Browse files
committed
Merge branch 'pr-35099' into 2.4-develop-prs
2 parents ee7a4bb + d4030f4 commit 8124c10

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@
9191
</actionGroup>
9292

9393
<!-- Go to created product page -->
94-
<amOnPage url="{{StorefrontProductPage.url($$createConfigProduct.custom_attributes[url_key]$$)}}" stepKey="goToProductPage"/>
95-
<waitForPageLoad stepKey="waitForProductPageLoad"/>
94+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="goToProductPage">
95+
<argument name="productUrl" value="$$createConfigProduct.custom_attributes[url_key]$$"/>
96+
</actionGroup>
97+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductPageLoad"/>
9698
<selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="$$getConfigAttributeOption.value$$" stepKey="selectOption"/>
9799

98100
<!-- Search and open customer -->
@@ -103,13 +105,15 @@
103105
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickEditButton"/>
104106

105107
<!-- Click create order -->
106-
<click selector="{{AdminCustomerMainActionsSection.createOrderBtn}}" stepKey="clickCreateOrder"/>
107-
<waitForPageLoad stepKey="waitForPageLoad"/>
108+
<actionGroup ref="AdminClickCreateOrderButtonOnEditCustomerPageActionGroup" stepKey="clickCreateOrder"/>
109+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad"/>
108110
<conditionalClick selector="{{AdminOrderStoreScopeTreeSection.storeOption(_defaultStore.name)}}" dependentSelector="{{AdminOrderStoreScopeTreeSection.storeOption(_defaultStore.name)}}" visible="true" stepKey="selectStoreViewIfAppears"/>
109111
<waitForPageLoad stepKey="waitForPageLoad2"/>
110112

111113
<!-- Add configure to product -->
112-
<click selector="{{AdminCustomerActivitiesRecentlyViewedSection.addToOrderConfigure($$createConfigProduct.name$$)}}" stepKey="configureProduct"/>
114+
<actionGroup ref="AdminClickConfigureForRecentlyViewedProductActionGroup" stepKey="configureProduct">
115+
<argument name="productName" value="$$createConfigProduct.name$$"/>
116+
</actionGroup>
113117
<selectOption selector="{{AdminCustomerActivitiesConfigureSection.addAttribute}}" userInput="$$getConfigAttributeOption.value$$" stepKey="selectProductOption"/>
114118
<click selector="{{AdminCustomerActivitiesConfigureSection.okButton}}" stepKey="clickOkBtn"/>
115119
<waitForPageLoad stepKey="waitForProductConfigureLoad"/>
@@ -118,7 +122,15 @@
118122
<actionGroup ref="AdminClickUpdateChangesOnCreateOrderPageActionGroup" stepKey="clickUpdateChangesBtn"/>
119123

120124
<!-- Assert products in items ordered grid -->
121-
<see selector="{{AdminCustomerCreateNewOrderSection.gridCell('1', 'Product')}}" userInput="$$createConfigProduct.name$$" stepKey="seeProductName"/>
122-
<see selector="{{AdminCustomerCreateNewOrderSection.gridCell('1', 'Price')}}" userInput="$123.00" stepKey="seeProductPrice"/>
125+
<actionGroup ref="AdminAssertProductInItemsOrderedGridOnCreateOrderPageActionGroup" stepKey="seeProductName">
126+
<argument name="index" value="1"/>
127+
<argument name="attribute" value="Product"/>
128+
<argument name="value" value="$$createConfigProduct.name$$"/>
129+
</actionGroup>
130+
<actionGroup ref="AdminAssertProductInItemsOrderedGridOnCreateOrderPageActionGroup" stepKey="seeProductPrice">
131+
<argument name="index" value="1"/>
132+
<argument name="attribute" value="Price"/>
133+
<argument name="value" value="$123.00"/>
134+
</actionGroup>
123135
</test>
124136
</tests>

0 commit comments

Comments
 (0)