Skip to content

Commit 332ef5d

Browse files
#31251: [MFTF] Refactoring of Search actions on Storefront.
1 parent 680312b commit 332ef5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateSimpleProductWithRegularPriceInStockVisibleInCatalogOnlyTest.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
</after>
3737

3838
<!-- Search default simple product in the grid -->
39-
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="openProductCatalogPage"/>
39+
<actionGroup ref="FilterAndSelectProductActionGroup" stepKey="openProductCatalogPage">
40+
<argument name="productSku" value="$initialSimpleProduct.sku$"/>
41+
</actionGroup>
4042
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterProductGrid"/>
41-
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickFirstRowToOpenDefaultSimpleProduct"/>
43+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickFirstRowToOpenDefaultSimpleProduct"/>
4244
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitUntilProductIsOpened"/>
4345

4446
<!-- Update simple product with regular price(in stock) -->
@@ -74,8 +76,6 @@
7476
<click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFiltersButton"/>
7577
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickFirstRowToVerifyUpdatedSimpleProductVisibleInGrid"/>
7678
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitUntilSimpleProductPageIsOpened"/>
77-
<!-- <click selector="{{AdminProductGridFilterSection.nthRow('1')}}" stepKey="clickFirstRowToVerifyUpdatedSimpleProductVisibleInGrid"/>
78-
<waitForPageLoad stepKey="waitUntilSimpleProductPageIsOpened"/> -->
7979

8080
<!-- Verify customer see updated simple product in the product form page -->
8181
<seeInField selector="{{AdminProductFormSection.productName}}" userInput="{{simpleProductRegularPrice32501InStock.name}}" stepKey="seeSimpleProductName"/>

0 commit comments

Comments
 (0)