|
61 | 61 | <fillField selector="{{AdminUpdateAttributesSection.description}}" userInput="MFTF automation!" stepKey="fillDescription"/>
|
62 | 62 | <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/>
|
63 | 63 | <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> |
65 | 67 |
|
66 | 68 | <!-- Apply changes -->
|
67 | 69 | <actionGroup ref="CliConsumerStartActionGroup" stepKey="startMessageQueue">
|
|
70 | 72 | </actionGroup>
|
71 | 73 |
|
72 | 74 | <!-- 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> |
82 | 96 | </test>
|
83 | 97 | </tests>
|
0 commit comments