Skip to content

Commit b41e3c5

Browse files
committed
updated with AdminFillBundleItemQtyActionGroup
1 parent 82a4440 commit b41e3c5

15 files changed

+192
-34
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/AdminAddDefaultImageBundleProductTest.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,18 @@
5858
</actionGroup>
5959
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
6060
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
61-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
62-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
61+
62+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
63+
<argument name="optionIndex" value="0"/>
64+
<argument name="productIndex" value="0"/>
65+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
66+
</actionGroup>
67+
68+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
69+
<argument name="optionIndex" value="0"/>
70+
<argument name="productIndex" value="1"/>
71+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
72+
</actionGroup>
6373

6474
<!-- Add image to product -->
6575
<actionGroup ref="AddProductImageActionGroup" stepKey="addImageForProduct">

app/code/Magento/Bundle/Test/Mftf/Test/AdminDeleteABundleProductTest.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,17 @@
4848
</actionGroup>
4949
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
5050
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
51-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
52-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
51+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
52+
<argument name="optionIndex" value="0"/>
53+
<argument name="productIndex" value="0"/>
54+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
55+
</actionGroup>
56+
57+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
58+
<argument name="optionIndex" value="0"/>
59+
<argument name="productIndex" value="1"/>
60+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
61+
</actionGroup>
5362

5463
<!--Fill out ancillary data on bundle product-->
5564
<actionGroup ref="AncillaryPrepBundleProductActionGroup" stepKey="createBundledProductForTwoSimpleProducts"/>

app/code/Magento/Bundle/Test/Mftf/Test/AdminFilterProductListByBundleProductTest.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,17 @@
4848
</actionGroup>
4949
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
5050
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
51-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
52-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
51+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
52+
<argument name="optionIndex" value="0"/>
53+
<argument name="productIndex" value="0"/>
54+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
55+
</actionGroup>
56+
57+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
58+
<argument name="optionIndex" value="0"/>
59+
<argument name="productIndex" value="1"/>
60+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
61+
</actionGroup>
5362

5463
<!--Fill out ancillary data on bundle product-->
5564
<actionGroup ref="AncillaryPrepBundleProductActionGroup" stepKey="createBundledProductForTwoSimpleProducts"/>

app/code/Magento/Bundle/Test/Mftf/Test/AdminMassDeleteBundleProductsTest.xml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,17 @@
5656
</actionGroup>
5757
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
5858
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
59-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
60-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
59+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
60+
<argument name="optionIndex" value="0"/>
61+
<argument name="productIndex" value="0"/>
62+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
63+
</actionGroup>
64+
65+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
66+
<argument name="optionIndex" value="0"/>
67+
<argument name="productIndex" value="1"/>
68+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
69+
</actionGroup>
6170

6271
<!--Fill out ancillary data on bundle product-->
6372
<actionGroup ref="AncillaryPrepBundleProductActionGroup" stepKey="createBundledProductForTwoSimpleProducts">
@@ -89,8 +98,17 @@
8998
</actionGroup>
9099
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow22"/>
91100
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts2"/>
92-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty12"/>
93-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty22"/>
101+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty12">
102+
<argument name="optionIndex" value="0"/>
103+
<argument name="productIndex" value="0"/>
104+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
105+
</actionGroup>
106+
107+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty22">
108+
<argument name="optionIndex" value="0"/>
109+
<argument name="productIndex" value="1"/>
110+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
111+
</actionGroup>
94112

95113
<fillField selector="{{AdminProductFormBundleSection.productName}}" userInput="{{BundleProduct.name2}}" stepKey="fillProductName2"/>
96114
<fillField selector="{{AdminProductFormBundleSection.productSku}}" userInput="{{BundleProduct.sku2}}" stepKey="fillProductSku2"/>

app/code/Magento/Bundle/Test/Mftf/Test/AdminProductBundleCreationTest.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,17 @@
5555
</actionGroup>
5656
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
5757
<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"/>
58+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
59+
<argument name="optionIndex" value="0"/>
60+
<argument name="productIndex" value="0"/>
61+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
62+
</actionGroup>
63+
64+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
65+
<argument name="optionIndex" value="0"/>
66+
<argument name="productIndex" value="1"/>
67+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
68+
</actionGroup>
6069

6170
<!--Create a bundle product with ancillary data-->
6271
<actionGroup ref="CreateBasicBundleProductActionGroup" stepKey="createBundledProduct">

app/code/Magento/Bundle/Test/Mftf/Test/AdminRemoveDefaultImageBundleProductTest.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,17 @@
6262
</actionGroup>
6363
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
6464
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
65-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
66-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
65+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
66+
<argument name="optionIndex" value="0"/>
67+
<argument name="productIndex" value="0"/>
68+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
69+
</actionGroup>
70+
71+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
72+
<argument name="optionIndex" value="0"/>
73+
<argument name="productIndex" value="1"/>
74+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
75+
</actionGroup>
6776

6877
<!-- Add image to product -->
6978
<actionGroup ref="AddProductImageActionGroup" stepKey="addImageForProduct">

app/code/Magento/Bundle/Test/Mftf/Test/BundleProductFixedPricingTest.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,17 @@
5757
</actionGroup>
5858
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
5959
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
60-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
61-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
60+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
61+
<argument name="optionIndex" value="0"/>
62+
<argument name="productIndex" value="0"/>
63+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
64+
</actionGroup>
65+
66+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
67+
<argument name="optionIndex" value="0"/>
68+
<argument name="productIndex" value="1"/>
69+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
70+
</actionGroup>
6271

6372
<!--Fill out ancillary data on bundle product-->
6473
<actionGroup ref="AncillaryPrepBundleProductActionGroup" stepKey="createBundledProductForTwoSimpleProducts">

app/code/Magento/Bundle/Test/Mftf/Test/EnableDisableBundleProductStatusTest.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,17 @@
5454
</actionGroup>
5555
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
5656
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
57-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
58-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
57+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
58+
<argument name="optionIndex" value="0"/>
59+
<argument name="productIndex" value="0"/>
60+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
61+
</actionGroup>
62+
63+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
64+
<argument name="optionIndex" value="0"/>
65+
<argument name="productIndex" value="1"/>
66+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
67+
</actionGroup>
5968

6069
<!--Fill out ancillary data on bundle product-->
6170
<actionGroup ref="AncillaryPrepBundleProductActionGroup" stepKey="createBundledProductForTwoSimpleProducts">

app/code/Magento/Bundle/Test/Mftf/Test/MassEnableDisableBundleProductsTest.xml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,17 @@
5656
</actionGroup>
5757
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
5858
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
59-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
60-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
59+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
60+
<argument name="optionIndex" value="0"/>
61+
<argument name="productIndex" value="0"/>
62+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
63+
</actionGroup>
64+
65+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
66+
<argument name="optionIndex" value="0"/>
67+
<argument name="productIndex" value="1"/>
68+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
69+
</actionGroup>
6170

6271
<actionGroup ref="AncillaryPrepBundleProductActionGroup" stepKey="createBundledProductForTwoSimpleProducts"/>
6372

@@ -86,8 +95,17 @@
8695
</actionGroup>
8796
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow22"/>
8897
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts2"/>
89-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty12"/>
90-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty22"/>
98+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="illProductDefaultQty12">
99+
<argument name="optionIndex" value="0"/>
100+
<argument name="productIndex" value="0"/>
101+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
102+
</actionGroup>
103+
104+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty22">
105+
<argument name="optionIndex" value="0"/>
106+
<argument name="productIndex" value="1"/>
107+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
108+
</actionGroup>
91109

92110
<fillField selector="{{AdminProductFormBundleSection.productName}}" userInput="{{BundleProduct.name2}}" stepKey="fillProductName2"/>
93111
<fillField selector="{{AdminProductFormBundleSection.productSku}}" userInput="{{BundleProduct.sku2}}" stepKey="fillProductSku2"/>

app/code/Magento/Bundle/Test/Mftf/Test/NewProductsListWidgetBundleProductTest.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,18 @@
6666
</actionGroup>
6767
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/>
6868
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/>
69-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="1" stepKey="fillProductDefaultQty1"/>
70-
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="1" stepKey="fillProductDefaultQty2"/>
69+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty1">
70+
<argument name="optionIndex" value="0"/>
71+
<argument name="productIndex" value="0"/>
72+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
73+
</actionGroup>
74+
75+
<actionGroup ref="AdminFillBundleItemQtyActionGroup" stepKey="fillProductDefaultQty2">
76+
<argument name="optionIndex" value="0"/>
77+
<argument name="productIndex" value="1"/>
78+
<argument name="qty" value="{{BundleProduct.defaultQuantity}}"/>
79+
</actionGroup>
80+
7181
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveProduct"/>
7282

7383
<!-- If PageCache is enabled, Cache clearing happens here, via merge -->

0 commit comments

Comments
 (0)