|
59 | 59 | </actionGroup>
|
60 | 60 | <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
|
61 | 61 | <click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
|
| 62 | + <!-- Check that Bundle Options initialized with default quantity --> |
| 63 | + <grabValueFrom selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" stepKey="grabbedFirstBundleOptionQuantity"/> |
| 64 | + <assertEquals stepKey="assertFirstBundleOptionDefaultQuantity"> |
| 65 | + <expectedResult type="string">1</expectedResult> |
| 66 | + <actualResult type="string">$grabbedFirstBundleOptionQuantity</actualResult> |
| 67 | + </assertEquals> |
| 68 | + <grabValueFrom selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" stepKey="grabbedSecondBundleOptionQuantity"/> |
| 69 | + <assertEquals stepKey="assertSecondBundleOptionDefaultQuantity"> |
| 70 | + <expectedResult type="string">1</expectedResult> |
| 71 | + <actualResult type="string">$grabbedSecondBundleOptionQuantity</actualResult> |
| 72 | + </assertEquals> |
| 73 | + |
62 | 74 | <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
|
63 | 75 | <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
|
64 | 76 |
|
|
108 | 120 | </actionGroup>
|
109 | 121 | <checkOption selector="{{AdminProductFormBundleSection.firstProductOption}}" stepKey="selectNewFirstGridRow2"/>
|
110 | 122 | <click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddNewSelectedBundleProducts"/>
|
| 123 | + <!-- Check that existing Bundle Options do not loose user input quantity values --> |
| 124 | + <grabValueFrom selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" stepKey="grabbedFirstBundleOptionQuantityAfterUserInput"/> |
| 125 | + <assertEquals stepKey="assertFirstBundleOptionDefaultQuantityAfterUserInput"> |
| 126 | + <expectedResult type="string">{{BundleProduct.defaultQuantity}}</expectedResult> |
| 127 | + <actualResult type="string">$grabbedFirstBundleOptionQuantityAfterUserInput</actualResult> |
| 128 | + </assertEquals> |
| 129 | + <grabValueFrom selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" stepKey="grabbedSecondBundleOptionQuantityAfterUserInput"/> |
| 130 | + <assertEquals stepKey="assertSecondBundleOptionDefaultQuantityAfterUserInput"> |
| 131 | + <expectedResult type="string">{{BundleProduct.defaultQuantity}}</expectedResult> |
| 132 | + <actualResult type="string">$grabbedSecondBundleOptionQuantityAfterUserInput</actualResult> |
| 133 | + </assertEquals> |
111 | 134 | <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '2')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillNewProductDefaultQty1"/>
|
112 | 135 | <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '3')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillNewProductDefaultQty2"/>
|
113 | 136 |
|
|
0 commit comments