|
24 | 24 |
|
25 | 25 | <!-- Create a Simple Product to appear in the widget -->
|
26 | 26 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductList"/>
|
27 |
| - <click selector="{{AdminProductGridActionSection.addProductBtn}}" stepKey="clickAddProduct"/> |
28 |
| - <fillField selector="{{AdminProductFormSection.productName}}" userInput="{{_defaultProduct.name}}" stepKey="fillProductName"/> |
29 |
| - <fillField selector="{{AdminProductFormSection.productSku}}" userInput="{{_defaultProduct.sku}}" stepKey="fillProductSku"/> |
30 |
| - <fillField selector="{{AdminProductFormSection.productPrice}}" userInput="{{_defaultProduct.price}}" stepKey="fillProductPrice"/> |
31 |
| - <fillField selector="{{AdminProductFormSection.productQuantity}}" userInput="100" stepKey="fillProductQuantity"/> |
32 |
| - <fillField selector="{{AdminProductFormSection.setProductAsNewFrom}}" userInput="01/1/2000" stepKey="fillProductNewFrom"/> |
33 |
| - <fillField selector="{{AdminProductFormSection.setProductAsNewTo}}" userInput="01/1/2099" stepKey="fillProductNewTo"/> |
| 27 | + <actionGroup ref="GoToCreateProductPageActionGroup" stepKey="clickAddProduct"/> |
| 28 | + <actionGroup ref="FillMainProductFormActionGroup" stepKey="fillProductName"/> |
| 29 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductSku"/> |
| 30 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductPrice"/> |
| 31 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductQuantity"/> |
| 32 | + <actionGroup ref="AdminSetProductAsNewDateActionGroup" stepKey="fillProductNewFrom"> |
| 33 | + <argument name="fromDate" value="01/1/2000"/> |
| 34 | + <argument name="toDate" value="01/1/2099"/> |
| 35 | + </actionGroup> |
| 36 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductNewTo"/> |
34 | 37 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveProduct"/>
|
35 | 38 |
|
36 | 39 | <!-- If PageCache is enabled, Cache clearing happens here via merge -->
|
37 | 40 |
|
38 | 41 | <!-- Check for product on the CMS page with the New Products widget -->
|
39 |
| - <amOnPage url="{{_newDefaultCmsPage.identifier}}" stepKey="amOnCmsPage"/> |
40 |
| - <waitForPageLoad stepKey="waitForCmsPage"/> |
41 |
| - <see selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" userInput="{{_defaultProduct.name}}" stepKey="seeProductName"/> |
| 42 | + <actionGroup ref="StorefrontGoToCMSPageActionGroup" stepKey="amOnCmsPage"> |
| 43 | + <argument name="identifier" value="{{_newDefaultCmsPage.identifier}}"/> |
| 44 | + </actionGroup> |
| 45 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCmsPage"/> |
| 46 | + <actionGroup ref="AssertStorefrontProductIsShownOnCmsPageActionGroup" stepKey="seeProductName"> |
| 47 | + <argument name="cmsTitle" value="{{_newDefaultCmsPage.title}}"/> |
| 48 | + </actionGroup> |
42 | 49 | </test>
|
43 | 50 | </tests>
|
0 commit comments