|
45 | 45 | <actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddGroupedProduct">
|
46 | 46 | <argument name="productType" value="grouped"/>
|
47 | 47 | </actionGroup>
|
48 |
| - <fillField selector="{{AdminProductFormSection.productName}}" userInput="{{_defaultProduct.name}}" stepKey="fillProductName"/> |
49 |
| - <fillField selector="{{AdminProductFormSection.productSku}}" userInput="{{_defaultProduct.sku}}" stepKey="fillProductSku"/> |
50 |
| - <fillField selector="{{AdminProductFormSection.setProductAsNewFrom}}" userInput="01/1/2000" stepKey="fillProductNewFrom"/> |
51 |
| - <fillField selector="{{AdminProductFormSection.setProductAsNewTo}}" userInput="01/1/2099" stepKey="fillProductNewTo"/> |
| 48 | + <actionGroup ref="FillProductNameAndSkuInProductFormActionGroup" stepKey="fillProductName"> |
| 49 | + <argument name="product" value="_defaultProduct"/> |
| 50 | + </actionGroup> |
| 51 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductSku"/> |
| 52 | + <actionGroup ref="AdminSetProductAsNewDateActionGroup" stepKey="fillProductNewFrom"> |
| 53 | + <argument name="fromDate" value="01/1/2000"/> |
| 54 | + <argument name="toDate" value="01/1/2099"/> |
| 55 | + </actionGroup> |
| 56 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductNewTo"/> |
| 57 | + |
52 | 58 | <conditionalClick selector="{{AdminProductFormGroupedProductsSection.toggleGroupedProduct}}" dependentSelector="{{AdminProductFormGroupedProductsSection.addProductsToGroup}}" visible="false" stepKey="openGroupedProductsSection"/>
|
53 | 59 | <scrollTo selector="{{AdminProductFormGroupedProductsSection.addProductsToGroup}}" stepKey="scrollToAddProductsToGroup"/>
|
54 | 60 | <click selector="{{AdminProductFormGroupedProductsSection.addProductsToGroup}}" stepKey="clickAddProductsToGroup"/>
|
|
64 | 70 | <!-- If PageCache is enabled, Cache clearing happens here, via merge -->
|
65 | 71 |
|
66 | 72 | <!-- Check for product on the CMS page with the New Products widget -->
|
67 |
| - |
68 |
| - <amOnPage url="{{_newDefaultCmsPage.identifier}}" stepKey="amOnCmsPage"/> |
69 |
| - <waitForPageLoad stepKey="waitForCmsPage"/> |
70 |
| - <see selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" userInput="{{_defaultProduct.name}}" stepKey="seeProductName"/> |
| 73 | + <actionGroup ref="StorefrontGoToCMSPageActionGroup" stepKey="amOnCmsPage"> |
| 74 | + <argument name="identifier" value="{{_newDefaultCmsPage.identifier}}"/> |
| 75 | + </actionGroup> |
| 76 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCmsPage"/> |
| 77 | + <actionGroup ref="AssertStorefrontProductIsShownOnCmsPageActionGroup" stepKey="seeProductName"> |
| 78 | + <argument name="cmsTitle" value="{{_newDefaultCmsPage.title}}"/> |
| 79 | + </actionGroup> |
71 | 80 | </test>
|
72 | 81 | </tests>
|
0 commit comments