Skip to content

Commit c05e4c7

Browse files
committed
Use AdminAssertProductInfoOnEditPageActionGroup to verify updated simple product
1 parent 95116a9 commit c05e4c7

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,25 @@
107107
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitUntilSimpleProductPageIsOpened"/>
108108

109109
<!-- Verify customer see updated simple product in the product form page -->
110-
<seeInField selector="{{AdminProductFormSection.productName}}" userInput="{{simpleProductRegularPrice32501InStock.name}}" stepKey="seeSimpleProductName"/>
111-
<seeInField selector="{{AdminProductFormSection.productSku}}" userInput="{{simpleProductRegularPrice32501InStock.sku}}" stepKey="seeSimpleProductSku"/>
112-
<seeInField selector="{{AdminProductFormSection.productPrice}}" userInput="{{simpleProductRegularPrice32501InStock.price}}" stepKey="seeSimpleProductPrice"/>
113-
<seeInField selector="{{AdminProductFormSection.productQuantity}}" userInput="{{simpleProductRegularPrice32501InStock.quantity}}" stepKey="seeSimpleProductQuantity"/>
114-
<seeInField selector="{{AdminProductFormSection.productStockStatus}}" userInput="{{simpleProductRegularPrice32501InStock.status}}" stepKey="seeSimpleProductStockStatus"/>
115-
<seeInField selector="{{AdminProductFormSection.productWeight}}" userInput="{{simpleProductRegularPrice32501InStock.weight}}" stepKey="seeSimpleProductWeight"/>
116-
<actionGroup ref="AssertAdminProductIsAssignedToCategoryActionGroup" stepKey="selectedCategories">
110+
<actionGroup ref="AdminAssertProductInfoOnEditPageActionGroup" stepKey="seeSimpleProductName">
111+
<argument name="productName" value="{{simpleProductRegularPrice32501InStock.name}}"/>
112+
<argument name="productSku" value="{{simpleProductRegularPrice32501InStock.sku}}"/>
113+
<argument name="productPrice" value="{{simpleProductRegularPrice32501InStock.price}}"/>
114+
<argument name="productQuantity" value="{{simpleProductRegularPrice32501InStock.quantity}}"/>
115+
<argument name="productWeight" value="{{simpleProductRegularPrice32501InStock.weight}}"/>
116+
<argument name="productVisibility" value="{{simpleProductRegularPrice32501InStock.visibility}}"/>
117117
<argument name="categoryName" value="$$categoryEntity.name$$"/>
118118
</actionGroup>
119-
<seeInField selector="{{AdminProductFormSection.visibility}}" userInput="{{simpleProductRegularPrice32501InStock.visibility}}" stepKey="seeVisibility"/>
119+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSimpleProductSku"/>
120+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSimpleProductPrice"/>
121+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSimpleProductQuantity"/>
122+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSimpleProductStockStatus"/>
123+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSimpleProductWeight"/>
124+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectedCategories"/>
125+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeVisibility"/>
120126
<scrollTo selector="{{AdminProductSEOSection.sectionHeader}}" x="0" y="-80" stepKey="scrollToAdminProductSEOSection1"/>
121127
<click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="clickAdminProductSEOSection1"/>
122128
<seeInField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{simpleProductRegularPrice32501InStock.urlKey}}" stepKey="seeUrlKey"/>
123-
124129
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
125130

126131
<!--Verify customer see updated simple product link on category page -->

0 commit comments

Comments
 (0)