File tree Expand file tree Collapse file tree 3 files changed +47
-3
lines changed
Catalog/Test/Mftf/ActionGroup
ConfigurableProduct/Test/Mftf/Test/AdminProductTypeSwitchingOnEditingTest Expand file tree Collapse file tree 3 files changed +47
-3
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 =" AdminFillProductQtyOnProductFormActionGroup" >
12
+ <annotations >
13
+ <description >Fills in Quantity field on the Admin Products creation/edit page.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" productQty" type =" string" />
17
+ </arguments >
18
+ <fillField selector =" {{AdminProductFormSection.productQuantity}}" userInput =" {{productQty}}" stepKey =" fillProductQty" />
19
+ </actionGroup >
20
+ </actionGroups >
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 =" AdminSelectWeightTypeOnProductFormActionGroup" >
12
+ <annotations >
13
+ <description >Select Weight type on the Admin Products creation/edit page.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" weightOption" type =" string" defaultValue =" This item has no weight" />
17
+ </arguments >
18
+ <selectOption selector =" {{AdminProductFormSection.productWeightSelect}}" userInput =" {{weightOption}}" stepKey =" selectWeight" />
19
+ </actionGroup >
20
+ </actionGroups >
Original file line number Diff line number Diff line change 29
29
<click selector =" {{AdminProductFormConfigurationsSection.removeProductBtn}}" stepKey =" clickRemoveOption1" />
30
30
<click selector =" {{AdminProductFormConfigurationsSection.actionsBtn('1')}}" stepKey =" clickToExpandOption2Actions" />
31
31
<click selector =" {{AdminProductFormConfigurationsSection.removeProductBtn}}" stepKey =" clickRemoveOption2" />
32
- <fillField selector =" {{AdminProductFormSection.productPrice}}" userInput =" {{SimpleProduct2.price}}" stepKey =" fillProductPrice" />
33
- <fillField selector =" {{AdminProductFormSection.productQuantity}}" userInput =" {{SimpleProduct2.quantity}}" stepKey =" fillProductQty" />
32
+ <actionGroup ref =" AdminFillProductPriceFieldAndPressEnterOnProductEditPageActionGroup" stepKey =" fillProductPrice" >
33
+ <argument name =" price" value =" {{SimpleProduct2.price}}" />
34
+ </actionGroup >
35
+ <actionGroup ref =" AdminFillProductQtyOnProductFormActionGroup" stepKey =" fillProductQty" >
36
+ <argument name =" productQty" value =" {{SimpleProduct2.quantity}}" />
37
+ </actionGroup >
34
38
<clearField selector =" {{AdminProductFormSection.productWeight}}" stepKey =" clearWeightField" />
35
- <selectOption selector = " {{AdminProductFormSection.productWeightSelect}} " userInput = " This item has no weight " stepKey =" selectNoWeight" />
39
+ <actionGroup ref = " AdminSelectWeightTypeOnProductFormActionGroup " stepKey =" selectNoWeight" />
36
40
<actionGroup ref =" SaveProductFormActionGroup" stepKey =" saveVirtualProductForm" />
37
41
<!-- Assert virtual product on Admin product page grid-->
38
42
<comment userInput =" Assert virtual product on Admin product page grid" stepKey =" commentAssertVirtualProductOnAdmin" />
You can’t perform that action at this time.
0 commit comments