Skip to content

Commit f550f19

Browse files
committed
Refactoring-AdminConfigurableProductBulkUpdateTest
1 parent 67c83d9 commit f550f19

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

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

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
<fillField selector="{{AdminUpdateAttributesSection.description}}" userInput="MFTF automation!" stepKey="fillDescription"/>
6262
<click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/>
6363
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/>
64-
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>
64+
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeAttributeUpdateSuccessMsg">
65+
<argument name="message" value="Message is added to queue"/>
66+
</actionGroup>
6567

6668
<!-- Apply changes -->
6769
<actionGroup ref="CliConsumerStartActionGroup" stepKey="startMessageQueue">
@@ -70,14 +72,26 @@
7072
</actionGroup>
7173

7274
<!-- Check storefront for description -->
73-
<amOnPage url="{{StorefrontProductPage.url($$createProduct1.custom_attributes[url_key]$$)}}" stepKey="goToFirstProductPageOnStorefront"/>
74-
<waitForPageLoad stepKey="waitForFirstProductPageLoad"/>
75-
<see selector="{{StorefrontProductInfoMainSection.productDescription}}" userInput="MFTF automation!" stepKey="seeFirstDescription"/>
76-
<amOnPage url="{{StorefrontProductPage.url($$createProduct2.custom_attributes[url_key]$$)}}" stepKey="goToSecondProductPageOnStorefront"/>
77-
<waitForPageLoad stepKey="waitForSecondProductPageLoad"/>
78-
<see selector="{{StorefrontProductInfoMainSection.productDescription}}" userInput="MFTF automation!" stepKey="seeSecondDescription"/>
79-
<amOnPage url="{{StorefrontProductPage.url($$createProduct3.custom_attributes[url_key]$$)}}" stepKey="goToThirdProductPageOnStorefront"/>
80-
<waitForPageLoad stepKey="waitForThirdProductPageLoad"/>
81-
<see selector="{{StorefrontProductInfoMainSection.productDescription}}" userInput="MFTF automation!" stepKey="seeThirdDescription"/>
75+
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="goToFirstProductPageOnStorefront">
76+
<argument name="product" value="$createProduct1$"/>
77+
</actionGroup>
78+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForFirstProductPageLoad"/>
79+
<actionGroup ref="AssertStorefrontProductDescriptionActionGroup" stepKey="seeFirstDescription">
80+
<argument name="productDescription" value="MFTF automation!"/>
81+
</actionGroup>
82+
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="goToSecondProductPageOnStorefront">
83+
<argument name="product" value="$createProduct2$"/>
84+
</actionGroup>
85+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSecondProductPageLoad"/>
86+
<actionGroup ref="AssertStorefrontProductDescriptionActionGroup" stepKey="seeSecondDescription">
87+
<argument name="productDescription" value="MFTF automation!"/>
88+
</actionGroup>
89+
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="goToThirdProductPageOnStorefront">
90+
<argument name="product" value="$createProduct3$"/>
91+
</actionGroup>
92+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForThirdProductPageLoad"/>
93+
<actionGroup ref="AssertStorefrontProductDescriptionActionGroup" stepKey="seeThirdDescription">
94+
<argument name="productDescription" value="MFTF automation!"/>
95+
</actionGroup>
8296
</test>
8397
</tests>

0 commit comments

Comments
 (0)