File tree Expand file tree Collapse file tree 17 files changed +39
-54
lines changed
app/code/Magento/Bundle/Test/Mftf Expand file tree Collapse file tree 17 files changed +39
-54
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminClickAddProductToOptionActionGroup" >
12
+ <annotations >
13
+ <description >Click AddProductToOption button for bundle product.</description >
14
+ </annotations >
15
+
16
+ <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
17
+ <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
18
+ <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
19
+ </actionGroup >
20
+ </actionGroups >
Original file line number Diff line number Diff line change 49
49
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
50
50
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
51
51
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
52
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
53
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
54
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
52
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
55
53
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
56
54
<argument name =" product" value =" $$simpleProduct0$$" />
57
55
</actionGroup >
101
99
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('1')}}" stepKey =" waitForBundleOptionsToAppear" />
102
100
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('1')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillNewestOptionTitle" />
103
101
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('1')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectNewInputType" />
104
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToNewBundle" />
105
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToNewOption" />
106
- <waitForPageLoad stepKey =" waitForPageLoadAfterNewBundleProducts" />
102
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToNewOption" />
107
103
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterNewBundleProductOptions" >
108
104
<argument name =" product" value =" $$simpleProduct2$$" />
109
105
</actionGroup >
Original file line number Diff line number Diff line change 48
48
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
49
49
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
50
50
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
51
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
52
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
53
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
51
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
54
52
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
55
53
<argument name =" product" value =" $$simpleProduct1$$" />
56
54
</actionGroup >
Original file line number Diff line number Diff line change 38
38
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
39
39
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
40
40
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
41
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
42
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
43
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
41
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
44
42
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
45
43
<argument name =" product" value =" $$simpleProduct1$$" />
46
44
</actionGroup >
Original file line number Diff line number Diff line change 38
38
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
39
39
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
40
40
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
41
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
42
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
43
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
41
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
44
42
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
45
43
<argument name =" product" value =" $$simpleProduct1$$" />
46
44
</actionGroup >
Original file line number Diff line number Diff line change 46
46
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
47
47
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
48
48
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
49
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
50
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
51
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
49
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
52
50
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
53
51
<argument name =" product" value =" $$simpleProduct1$$" />
54
52
</actionGroup >
81
79
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions2" />
82
80
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle2" />
83
81
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType2" />
84
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle2" />
85
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption2" />
86
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts2" />
82
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption2" />
87
83
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptionsx2" >
88
84
<argument name =" product" value =" $$simpleProduct3$$" />
89
85
</actionGroup >
Original file line number Diff line number Diff line change 45
45
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
46
46
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
47
47
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
48
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
49
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
50
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
48
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
51
49
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
52
50
<argument name =" product" value =" $$simpleProduct1$$" />
53
51
</actionGroup >
Original file line number Diff line number Diff line change 52
52
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
53
53
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
54
54
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
55
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
56
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
57
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
55
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
58
56
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
59
57
<argument name =" product" value =" $$simpleProduct1$$" />
60
58
</actionGroup >
Original file line number Diff line number Diff line change 47
47
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
48
48
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
49
49
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
50
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
51
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
52
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
50
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
53
51
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
54
52
<argument name =" product" value =" $$simpleProduct1$$" />
55
53
</actionGroup >
Original file line number Diff line number Diff line change 44
44
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
45
45
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
46
46
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
47
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
48
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
49
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
47
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
50
48
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
51
49
<argument name =" product" value =" $$simpleProduct1$$" />
52
50
</actionGroup >
Original file line number Diff line number Diff line change 46
46
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
47
47
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
48
48
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
49
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
50
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
51
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
49
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
52
50
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
53
51
<argument name =" product" value =" $$simpleProduct1$$" />
54
52
</actionGroup >
78
76
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions2" />
79
77
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle2" />
80
78
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType2" />
81
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle2" />
82
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption2" />
83
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts2" />
79
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption2" />
84
80
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptionsx2" >
85
81
<argument name =" product" value =" $$simpleProduct3$$" />
86
82
</actionGroup >
Original file line number Diff line number Diff line change 50
50
<waitForPageLoad stepKey =" waitForOptions" />
51
51
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" MFTF Test Bundle 1" stepKey =" fillOptionTitle" />
52
52
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" checkbox" stepKey =" selectInputType" />
53
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
54
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
53
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
55
54
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
56
55
<argument name =" product" value =" $$simpleProduct1$$" />
57
56
</actionGroup >
Original file line number Diff line number Diff line change 47
47
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
48
48
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
49
49
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
50
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
51
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
52
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
50
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
53
51
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
54
52
<argument name =" product" value =" $$simpleProduct1$$" />
55
53
</actionGroup >
Original file line number Diff line number Diff line change 52
52
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
53
53
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
54
54
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
55
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
56
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
57
- <waitForPageLoad stepKey =" waitForPageLoadAfterBundleProducts" />
55
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
58
56
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
59
57
<argument name =" product" value =" $$simpleProduct1$$" />
60
58
</actionGroup >
Original file line number Diff line number Diff line change 57
57
<waitForElementVisible selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey =" waitForBundleOptions" />
58
58
<fillField selector =" {{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput =" {{BundleProduct.optionTitle1}}" stepKey =" fillOptionTitle" />
59
59
<selectOption selector =" {{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput =" {{BundleProduct.optionInputType1}}" stepKey =" selectInputType" />
60
- <waitForElementVisible selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" waitForAddProductsToBundle" />
61
- <click selector =" {{AdminProductFormBundleSection.addProductsToOption}}" stepKey =" clickAddProductsToOption" />
60
+ <actionGroup ref =" AdminClickAddProductToOptionActionGroup" stepKey =" clickAddProductsToOption" />
62
61
<actionGroup ref =" FilterProductGridBySkuActionGroup" stepKey =" filterBundleProductOptions" >
63
62
<argument name =" product" value =" $$simpleProduct1$$" />
64
63
</actionGroup >
You can’t perform that action at this time.
0 commit comments