|
28 | 28 | <requiredEntity createDataKey="createCategory"/>
|
29 | 29 | </createData>
|
30 | 30 |
|
31 |
| - <!-- Create an attribute with two options --> |
| 31 | + <!-- Create an attribute with two options to be used in the first child product --> |
32 | 32 | <createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/>
|
33 | 33 | <createData entity="productAttributeOption1" stepKey="createConfigProductAttributeOption1">
|
34 | 34 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
|
37 | 37 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
38 | 38 | </createData>
|
39 | 39 |
|
| 40 | + <!-- Create an attribute with two options to be used in the second child product --> |
| 41 | + <createData entity="productAttributeMultiselectTwoOptions" stepKey="createConfigProductAttributeMultiSelect"/> |
| 42 | + <createData entity="productAttributeOption3" stepKey="createConfigProductAttributeOption1Multiselect"> |
| 43 | + <requiredEntity createDataKey="createConfigProductAttributeMultiSelect"/> |
| 44 | + </createData> |
| 45 | + <createData entity="productAttributeOption4" stepKey="createConfigProductAttributeOption2Multiselect"> |
| 46 | + <requiredEntity createDataKey="createConfigProductAttributeMultiSelect"/> |
| 47 | + </createData> |
| 48 | + |
40 | 49 | <!-- Add the attribute we just created to default attribute set -->
|
41 | 50 | <createData entity="AddToDefaultSet" stepKey="createConfigAddToAttributeSet">
|
42 | 51 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
43 | 52 | </createData>
|
44 | 53 |
|
| 54 | + <!-- Add the third attribute we just created to default attribute set --> |
| 55 | + <createData entity="AddToDefaultSet" stepKey="createConfigAddToAttributeSet2"> |
| 56 | + <requiredEntity createDataKey="createConfigProductAttributeMultiSelect"/> |
| 57 | + </createData> |
| 58 | + |
45 | 59 | <!-- Get the first option of the attribute we created -->
|
46 | 60 | <getData entity="ProductAttributeOptionGetter" index="1" stepKey="getConfigAttributeOption1">
|
47 | 61 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
48 | 62 | </getData>
|
49 | 63 |
|
50 |
| - <!-- Get the second option of the attribute we created --> |
51 |
| - <getData entity="ProductAttributeOptionGetter" index="2" stepKey="getConfigAttributeOption2"> |
52 |
| - <requiredEntity createDataKey="createConfigProductAttribute"/> |
| 64 | + <!-- Get the first option of the second attribute we created --> |
| 65 | + <getData entity="ProductAttributeOptionGetter" index="1" stepKey="getConfigAttributeOption2"> |
| 66 | + <requiredEntity createDataKey="createConfigProductAttributeMultiSelect"/> |
53 | 67 | </getData>
|
54 | 68 |
|
55 | 69 | <!-- Create a simple product and give it the attribute with the first option -->
|
|
60 | 74 |
|
61 | 75 | <!-- Create a simple product and give it the attribute with the second option -->
|
62 | 76 | <createData entity="ApiSimpleTwoHidden" stepKey="createConfigChildProduct2">
|
63 |
| - <requiredEntity createDataKey="createConfigProductAttribute"/> |
| 77 | + <requiredEntity createDataKey="createConfigProductAttributeMultiSelect"/> |
64 | 78 | <requiredEntity createDataKey="getConfigAttributeOption2"/>
|
65 | 79 | </createData>
|
66 | 80 |
|
|
93 | 107 | <deleteData createDataKey="createConfigChildProduct1" stepKey="deleteConfigChildProduct1"/>
|
94 | 108 | <deleteData createDataKey="createConfigChildProduct2" stepKey="deleteConfigChildProduct2"/>
|
95 | 109 | <deleteData createDataKey="createConfigProductAttribute" stepKey="deleteConfigProductAttribute"/>
|
| 110 | + <deleteData createDataKey="createConfigProductAttributeMultiSelect" stepKey="deleteConfigProductAttributeMultiSelect"/> |
| 111 | + <deleteData createDataKey="createConfigProductAttributeSelect" stepKey="deleteConfigProductAttributeSelect"/> |
96 | 112 | <deleteData createDataKey="createCategory" stepKey="deleteApiCategory"/>
|
97 | 113 | </after>
|
98 | 114 |
|
|
107 | 123 | <argument name="description" value="sampleShortDescription"/>
|
108 | 124 | </actionGroup>
|
109 | 125 |
|
| 126 | + <pauseExecution stepKey="pause"/> |
| 127 | + |
110 | 128 | <!-- Quick search the storefront for the first attribute option -->
|
111 | 129 | <amOnPage stepKey="goToStoreFront" url="{{StorefrontHomePage.url}}"/>
|
112 | 130 | <waitForPageLoad stepKey="waitForStorefront"/>
|
|
115 | 133 | <seeElement stepKey="seeProduct1" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>
|
116 | 134 |
|
117 | 135 | <!-- Quick search the storefront for the second attribute option -->
|
118 |
| - <fillField stepKey="searchStorefront2" selector="{{StorefrontPanelHeaderSection.search}}" userInput="$$createConfigProductAttributeOption2.option[store_labels][0][label]$$"/> |
| 136 | + <fillField stepKey="searchStorefront2" selector="{{StorefrontPanelHeaderSection.search}}" userInput="$$createConfigProductAttributeOption1Multiselect.option[store_labels][0][label]$$"/> |
119 | 137 | <click stepKey="clickSearch2" selector="{{StorefrontPanelHeaderSection.searchButton}}"/>
|
120 | 138 | <seeElement stepKey="seeProduct2" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>
|
121 | 139 |
|
|
0 commit comments