|
40 | 40 | <actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddBundleProduct">
|
41 | 41 | <argument name="productType" value="bundle"/>
|
42 | 42 | </actionGroup>
|
43 |
| - <fillField selector="{{AdminProductFormSection.productName}}" userInput="{{_defaultProduct.name}}" stepKey="fillProductName"/> |
44 |
| - <fillField selector="{{AdminProductFormSection.productSku}}" userInput="{{_defaultProduct.sku}}" stepKey="fillProductSku"/> |
45 |
| - <fillField selector="{{AdminProductFormSection.setProductAsNewFrom}}" userInput="01/1/2000" stepKey="fillProductNewFrom"/> |
46 |
| - <fillField selector="{{AdminProductFormSection.setProductAsNewTo}}" userInput="01/1/2099" stepKey="fillProductNewTo"/> |
47 |
| - |
| 43 | + <actionGroup ref="FillProductNameAndSkuInProductFormActionGroup" stepKey="fillProductName"> |
| 44 | + <argument name="product" value="_defaultProduct"/> |
| 45 | + </actionGroup> |
| 46 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductSku"/> |
| 47 | + <actionGroup ref="AdminSetProductAsNewDateActionGroup" stepKey="fillProductNewFrom"> |
| 48 | + <argument name="fromDate" value="01/1/2000"/> |
| 49 | + <argument name="toDate" value="01/1/2099"/> |
| 50 | + </actionGroup> |
| 51 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductNewTo"/> |
48 | 52 | <!-- and then configure bundled items for this product -->
|
49 | 53 |
|
50 | 54 | <scrollTo selector="{{AdminProductFormBundleSection.addOption}}" stepKey="scrollToAddOptionButton"/>
|
|
69 | 73 | <!-- If PageCache is enabled, Cache clearing happens here, via merge -->
|
70 | 74 |
|
71 | 75 | <!-- Check for product on the CMS page with the New Products widget -->
|
72 |
| - |
73 |
| - <amOnPage url="{{_newDefaultCmsPage.identifier}}" stepKey="amOnCmsPage"/> |
74 |
| - <waitForPageLoad stepKey="waitForCmsPage"/> |
75 |
| - <see selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" userInput="{{_defaultProduct.name}}" stepKey="seeProductName"/> |
| 76 | + <actionGroup ref="StorefrontGoToCMSPageActionGroup" stepKey="amOnCmsPage"> |
| 77 | + <argument name="identifier" value="{{_newDefaultCmsPage.identifier}}"/> |
| 78 | + </actionGroup> |
| 79 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCmsPage"/> |
| 80 | + <actionGroup ref="AssertStorefrontProductIsShownOnCmsPageActionGroup" stepKey="seeProductName"> |
| 81 | + <argument name="cmsTitle" value="{{_newDefaultCmsPage.title}}"/> |
| 82 | + </actionGroup> |
76 | 83 | </test>
|
77 | 84 | </tests>
|
0 commit comments