Skip to content

Commit 4600758

Browse files
committed
Update the test
1 parent 49ecc2a commit 4600758

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductUpdateTest/AdminConfigurableProductRemoveAnOptionTest.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,14 @@
9292
<argument name="productId" value="$$createConfigProduct.id$$"/>
9393
</actionGroup>
9494
<waitForPageLoad stepKey="wait2"/>
95-
<see selector="{{AdminProductFormConfigurationsSection.currentVariationsNameCells}}" userInput="$$createConfigChildProduct1.name$$" stepKey="seeOption1Admin"/>
96-
<see selector="{{AdminProductFormConfigurationsSection.currentVariationsNameCells}}" userInput="$$createConfigChildProduct2.name$$" stepKey="seeOption2Admin"/>
95+
<actionGroup ref="AssertAdminChildProductDataOnParentProductEditPageActionGroup" stepKey="seeOption1Admin">
96+
<argument name="attribute" value="name_container"/>
97+
<argument name="value" value="$$createConfigChildProduct1.name$$"/>
98+
</actionGroup>
99+
<actionGroup ref="AssertAdminChildProductDataOnParentProductEditPageActionGroup" stepKey="seeOption2Admin">
100+
<argument name="attribute" value="name_container"/>
101+
<argument name="value" value="$$createConfigChildProduct2.name$$"/>
102+
</actionGroup>
97103

98104
<!--remove an option-->
99105
<click selector="{{AdminProductFormConfigurationsSection.actionsBtn('1')}}" stepKey="clickToExpandActions"/>
@@ -109,6 +115,8 @@
109115
</actionGroup>
110116
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="wait4"/>
111117
<dontSee selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="option1" stepKey="dontSeeOption1InStorefront"/>
112-
<see selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="option2" stepKey="seeOption2Again"/>
118+
<actionGroup ref="AssertStorefrontProductAttributeOptionVisibleActionGroup" stepKey="seeOption2Again">
119+
<argument name="productAttributeOption" value="option2"/>
120+
</actionGroup>
113121
</test>
114122
</tests>

0 commit comments

Comments
 (0)