|
21 | 21 | <!-- creating category, simple products --> |
22 | 22 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
23 | 23 | <createData entity="_defaultCategory" stepKey="createCategory"/> |
24 | | - <createData entity="ApiSimpleProduct" stepKey="simpleProduct1"/> |
25 | | - <createData entity="ApiSimpleProduct" stepKey="simpleProduct2"/> |
| 24 | + <createData entity="ApiSimpleProductWithOptions" stepKey="simpleProduct1"/> |
| 25 | + <createData entity="ApiSimpleProductWithOptions" stepKey="simpleProduct2"/> |
26 | 26 | </before> |
27 | 27 | <after> |
28 | 28 | <!-- Delete bundle product --> |
29 | | - <actionGroup ref="DeleteAllProductsUsingProductGridActionGroup" stepKey="deleteProduct"> |
| 29 | + <actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteProduct"> |
30 | 30 | <argument name="product" value="BundleProduct"/> |
31 | 31 | </actionGroup> |
32 | 32 | <!-- deleting category, simple products --> |
|
74 | 74 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty1"/> |
75 | 75 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductDefaultQty2"/> |
76 | 76 |
|
| 77 | + <wait stepKey="k1" time="10"/> |
77 | 78 | <click selector="{{AdminProductFormBundleSection.isDefault('$$simpleProduct1.name$$')}}" stepKey="clickIsDefault"/> |
78 | 79 |
|
79 | 80 | <!--Save the product--> |
|
91 | 92 |
|
92 | 93 | <!-- Admin: Verify Bundle Product Information on Edit Product Page --> |
93 | 94 | <scrollTo selector="{{AdminProductFormBundleSection.allBundleOptions}}" stepKey="scrollToAllBundleOptions" /> |
94 | | - <actionGroup ref="AdminVerifyProductInBundleProductOptionActionGroup" stepKey="verifyAssociatedProduct1Admin"> |
95 | | - <argument name="name" value="$$simpleProduct1.name$$"/> |
96 | | - <argument name="attributeSet" value="$$simpleProduct1.attributeSetText$$"/> |
97 | | - <argument name="status" value="$$simpleProduct1.statusText$$"/> |
98 | | - <argument name="sku" value="$$simpleProduct1.sku$$"/> |
99 | | - <argument name="price" value="$$simpleProduct1.price$$"/> |
100 | | - <argument name="defaultQuantity" value="50"/> |
101 | | - <argument name="index" value="1"/> |
| 95 | + <actionGroup ref="AdminVerifyProductInBundleProductOptionActionGroup" stepKey="verifyBundleProductOption1Product1"> |
| 96 | + <argument name="name" value="{{ApiSimpleProductWithOptions.name}}"/> |
| 97 | + <argument name="sku" value="{{ApiSimpleProductWithOptions.sku}}"/> |
| 98 | + <argument name="defaultQuantity" value="{{ApiSimpleProductWithOptions.bundleDefaultQuantity}}"/> |
| 99 | + <argument name="isDefault" value="{{ApiSimpleProductWithOptions.bundleIsDefault}}"/> |
| 100 | + <argument name="userDefined" value="{{ApiSimpleProductWithOptions.bundleUserDefined}}"/> |
| 101 | + <argument name="optionIndex" value="1"/> |
| 102 | + <argument name="productIndex" value="1"/> |
102 | 103 | </actionGroup> |
103 | | - |
104 | | - <actionGroup ref="AdminVerifyProductInBundleProductOptionActionGroup" stepKey="verifyAssociatedProduct2Admin"> |
105 | | - <argument name="name" value="$$simpleProduct2.name$$"/> |
106 | | - <argument name="attributeSet" value="$$simpleProduct2.attributeSetText$$"/> |
107 | | - <argument name="status" value="$$simpleProduct2.statusText$$"/> |
108 | | - <argument name="sku" value="$$simpleProduct2.sku$$"/> |
109 | | - <argument name="price" value="$$simpleProduct2.price$$"/> |
110 | | - <argument name="defaultQuantity" value="50"/> |
111 | | - <argument name="index" value="2"/> |
| 104 | + <actionGroup ref="AdminVerifyProductInBundleProductOptionActionGroup" stepKey="verifyBundleProductOption1Product2"> |
| 105 | + <argument name="name" value="{{ApiSimpleProductWithOptions.name}}"/> |
| 106 | + <argument name="sku" value="{{ApiSimpleProductWithOptions.sku}}"/> |
| 107 | + <argument name="defaultQuantity" value="{{ApiSimpleProductWithOptions.bundleDefaultQuantity}}"/> |
| 108 | + <argument name="isDefault" value="false"/> |
| 109 | + <argument name="userDefined" value="false"/> |
| 110 | + <argument name="optionIndex" value="1"/> |
| 111 | + <argument name="productIndex" value="2"/> |
112 | 112 | </actionGroup> |
113 | 113 |
|
| 114 | + |
114 | 115 | <!-- Storefront: Verify Bundle Product In Category --> |
115 | 116 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="GoToProductPage"> |
116 | 117 | <argument name="productUrl" value="{{BundleProduct.urlKey}}"/> |
|
125 | 126 | <see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="{{BundleProduct.sku}}" stepKey="seeSku"/> |
126 | 127 | <see userInput="$6,150.00" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="seePrice"/> |
127 | 128 |
|
128 | | - <!-- Storefront: Verify Product 0ption details --> |
| 129 | + <!-- Storefront: Verify Product option details --> |
129 | 130 | <click selector="{{StorefrontBundledSection.addToCart}}" stepKey="clickCustomizeAndAddToCart"/> |
130 | 131 | <click selector="{{StorefrontBundleProductActionSection.dropdownSelectOption}}" stepKey="clickOnSelectOption"/> |
131 | | - <wait stepKey="k1" time="10"/> |
132 | | - <seeElement selector="{{StorefrontBundleProductActionSection.dropdownProductSelection('$$simpleProduct1.name$$ +$$$simpleProduct1.price$$')}}" stepKey="seeOption1Product1Name"/> |
133 | | - <seeElement selector="{{StorefrontBundleProductActionSection.dropdownProductSelection('$$simpleProduct2.name$$ +$$$simpleProduct2.price$$')}}" stepKey="seeOption1Product1Price"/> |
| 132 | + <wait stepKey="k2" time="10"/> |
| 133 | + <seeElement selector="{{StorefrontBundleProductActionSection.dropdownProductSelection('$$simpleProduct1.name$$ +$$$simpleProduct1.price$$')}}" stepKey="seeOption1Product1Details"/> |
| 134 | + <seeElement selector="{{StorefrontBundleProductActionSection.dropdownProductSelection('$$simpleProduct2.name$$ +$$$simpleProduct2.price$$')}}" stepKey="seeOption1Product2Details"/> |
134 | 135 |
|
135 | 136 |
|
136 | 137 | </test> |
|
0 commit comments