|
9 | 9 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
|
11 | 11 | <actionGroup name="AdminCreateApiDynamicBundleProductActionGroup">
|
| 12 | + <arguments> |
| 13 | + <argument name="productName" defaultValue="Api Dynamic Bundle Product" type="string"/> |
| 14 | + </arguments> |
12 | 15 | <!--Create 4 simple products-->
|
13 | 16 | <createData entity="SimpleProduct2" stepKey="simpleProduct1">
|
14 | 17 | <field key="price">4.99</field>
|
|
23 | 26 | <field key="price">18.25</field>
|
24 | 27 | </createData>
|
25 | 28 | <!-- Create the bundle product based -->
|
26 |
| - <createData entity="ApiBundleProduct" stepKey="createBundleProduct"/> |
| 29 | + <createData entity="ApiBundleProduct" stepKey="createBundleProduct"> |
| 30 | + <field key="name">{{productName}}</field> |
| 31 | + </createData> |
27 | 32 | <createData entity="MultipleSelectOption" stepKey="createBundleOption1_1">
|
28 | 33 | <requiredEntity createDataKey="createBundleProduct"/>
|
29 | 34 | <field key="required">false</field>
|
|
53 | 58 | </createData>
|
54 | 59 | </actionGroup>
|
55 | 60 | <actionGroup name="AdminCreateApiFixedBundleProductActionGroup">
|
| 61 | + <arguments> |
| 62 | + <argument name="productName" defaultValue="Api Fixed Bundle Product" type="string"/> |
| 63 | + </arguments> |
56 | 64 | <!--Create 4 simple products-->
|
57 | 65 | <createData entity="SimpleProduct2" stepKey="simpleProduct1">
|
58 | 66 | <field key="price">4.99</field>
|
|
67 | 75 | <field key="price">18.25</field>
|
68 | 76 | </createData>
|
69 | 77 | <!-- Create the bundle product based -->
|
70 |
| - <createData entity="ApiFixedBundleProduct" stepKey="createBundleProduct"/> |
| 78 | + <createData entity="ApiFixedBundleProduct" stepKey="createBundleProduct"> |
| 79 | + <field key="name">{{productName}}</field> |
| 80 | + </createData> |
71 | 81 | <createData entity="MultipleSelectOption" stepKey="createBundleOption1_1">
|
72 | 82 | <requiredEntity createDataKey="createBundleProduct"/>
|
73 | 83 | <field key="required">false</field>
|
|
0 commit comments