Skip to content

Commit 25c11ef

Browse files
committed
Replace actions with proper ActionGroups
1 parent a73d9a1 commit 25c11ef

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminCreateConfigurableProductWithDisabledChildrenProductsTest.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,20 @@
113113
</actionGroup>
114114

115115
<!-- Assert configurable product is not present in category -->
116-
<!--<amOnPage url="$$createCategory.name$$.html" stepKey="amOnCategoryPage"/>-->
117-
<!--<waitForPageLoad stepKey="waitForCategoryPageLoad"/>-->
118-
<!--<see selector="{{StorefrontCategoryMainSection.emptyProductMessage}}" userInput="We can't find products matching the selection." stepKey="seeEmptyProductMessage"/>-->
119-
120116
<actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="amOnCategoryPage">
121117
<argument name="category" value="$createCategory$"/>
122118
</actionGroup>
119+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategoryPageLoad"/>
123120
<actionGroup ref="AssertStorefrontNoProductsFoundActionGroup" stepKey="seeEmptyProductMessage"/>
124121

125122

126123
<!-- Assert configurable product is out of stock-->
127-
<amOnPage url="{{ApiConfigurableProduct.urlKey}}.html" stepKey="amOnProductPage"/>
128-
<waitForPageLoad stepKey="waitForPageLoad"/>
129-
<see stepKey="checkForOutOfStock" selector="{{StorefrontProductInfoMainSection.stockIndication}}" userInput="OUT OF STOCK"/>
124+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="amOnProductPage"/>
125+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad"/>
126+
<actionGroup ref="StorefrontCheckProductStockStatus" stepKey="checkForOutOfStock">
127+
<argument name="productUrlKey" value="{{ApiConfigurableProduct.urlKey}}"/>
128+
<argument name="productName" value="{{ApiConfigurableProduct.name}}"/>
129+
<argument name="stockStatus" value="Out of stock"/>
130+
</actionGroup>
130131
</test>
131132
</tests>

0 commit comments

Comments
 (0)