|
36 | 36 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
37 | 37 | </after>
|
38 | 38 | <!-- go to bundle product creation page-->
|
39 |
| - <amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage" /> |
40 |
| - <waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/> |
41 | 39 |
|
42 |
| - <!-- Add two bundle items --> |
43 |
| - <conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/> |
44 |
| - <click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption3"/> |
45 |
| - <waitForElementVisible selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey="waitForBundleOptions"/> |
46 |
| - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput="{{BundleProduct.optionTitle1}}" stepKey="fillOptionTitle"/> |
47 |
| - <selectOption selector="{{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput="{{BundleProduct.optionInputType1}}" stepKey="selectInputType"/> |
48 |
| - <actionGroup ref="AdminClickAddProductToOptionActionGroup" stepKey="clickAddProductsToOption"/> |
49 |
| - <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterBundleProductOptions"> |
50 |
| - <argument name="product" value="$$simpleProduct1$$"/> |
| 40 | + <actionGroup ref="AdminOpenNewProductFormPageActionGroup" stepKey="goToBundleProductCreationPage"> |
| 41 | + <argument name="attributeSetId" value="{{BundleProduct.set}}"/> |
| 42 | + <argument name="productType" value="{{BundleProduct.type}}"/> |
51 | 43 | </actionGroup>
|
52 |
| - <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow"/> |
53 |
| - <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterBundleProductOptions2"> |
54 |
| - <argument name="product" value="$$simpleProduct2$$"/> |
| 44 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleProductCreatePageToLoad"/> |
| 45 | + |
| 46 | + <!-- Add two bundle items --> |
| 47 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="conditionallyOpenSectionBundleItems"/> |
| 48 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAddOption3"/> |
| 49 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleOptions"/> |
| 50 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillOptionTitle"/> |
| 51 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectInputType"/> |
| 52 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAddProductsToOption"/> |
| 53 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterBundleProductOptions"/> |
| 54 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFirstGridRow"/> |
| 55 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterBundleProductOptions2"/> |
| 56 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFirstGridRow2"/> |
| 57 | + <actionGroup ref="AddBundleOptionWithTwoProductsActionGroup" stepKey="clickAddSelectedBundleProducts"> |
| 58 | + <argument name="x" value="0"/> |
| 59 | + <argument name="n" value="1"/> |
| 60 | + <argument name="prodOneSku" value="$$simpleProduct1.sku$$"/> |
| 61 | + <argument name="prodTwoSku" value="$$simpleProduct2.sku$$"/> |
| 62 | + <argument name="optionTitle" value="{{BundleProduct.optionTitle1}}"/> |
| 63 | + <argument name="inputType" value="{{BundleProduct.optionInputType1}}"/> |
55 | 64 | </actionGroup>
|
56 |
| - <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/> |
57 |
| - <click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/> |
58 |
| - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/> |
59 |
| - <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/> |
| 65 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty1"/> |
| 66 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty2"/> |
60 | 67 |
|
61 | 68 | <!--Create a bundle product with ancillary data-->
|
62 | 69 | <actionGroup ref="CreateBasicBundleProductActionGroup" stepKey="createBundledProduct">
|
|
65 | 72 |
|
66 | 73 | <!--save the product/published by default-->
|
67 | 74 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveButton"/>
|
68 |
| - <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="messageYouSavedTheProductIsShown"/> |
| 75 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="messageYouSavedTheProductIsShown"> |
| 76 | + <argument name="message" value="You saved the product."/> |
| 77 | + </actionGroup> |
69 | 78 |
|
70 | 79 | <!-- go to page-->
|
71 |
| - <amOnPage url="{{BundleProduct.urlKey}}.html" stepKey="GoToProductPage"/> |
72 |
| - |
73 | 80 | <!--Test Assertion - on correct page/page has been published-->
|
74 |
| - <waitForPageLoad stepKey="waitForBundleProductPageToLoad"/> |
75 |
| - <seeElement stepKey="LookingForNameOfProduct" selector="{{StorefrontBundledSection.bundleProductName}}"/> |
| 81 | + |
| 82 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="GoToProductPage"> |
| 83 | + <argument name="productUrl" value="{{BundleProduct.urlKey}}"/> |
| 84 | + </actionGroup> |
| 85 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForBundleProductPageToLoad"/> |
| 86 | + <actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="LookingForNameOfProduct"> |
| 87 | + <argument name="productName" value="{{BundleProduct.name}}"/> |
| 88 | + </actionGroup> |
76 | 89 | </test>
|
77 | 90 | </tests>
|
0 commit comments