51
51
<requiredEntity createDataKey =" createConfigProductAttribute" />
52
52
</createData >
53
53
54
- <!-- Add the third attribute we just created to default attribute set -->
54
+ <!-- Add the second attribute we just created to default attribute set -->
55
55
<createData entity =" AddToDefaultSet" stepKey =" createConfigAddToAttributeSet2" >
56
56
<requiredEntity createDataKey =" createConfigProductAttributeMultiSelect" />
57
57
</createData >
98
98
<requiredEntity createDataKey =" createConfigChildProduct2" />
99
99
</createData >
100
100
101
+ <!-- Create an attribute with two options to be used in the first child product (in the UI) -->
102
+ <createData entity =" productAttributeWithTwoOptions" stepKey =" createConfigProductAttributeSelect" />
103
+ <createData entity =" productAttributeOption5" stepKey =" createConfigProductAttributeSelectOption1" >
104
+ <requiredEntity createDataKey =" createConfigProductAttributeSelect" />
105
+ </createData >
106
+ <createData entity =" productAttributeOption6" stepKey =" createConfigProductAttributeSelectOption2" >
107
+ <requiredEntity createDataKey =" createConfigProductAttributeSelect" />
108
+ </createData >
109
+
110
+ <!-- Add the attribute we just created to default attribute set -->
111
+ <createData entity =" AddToDefaultSet" stepKey =" createConfigAddToAttributeSet3" >
112
+ <requiredEntity createDataKey =" createConfigProductAttributeSelect" />
113
+ </createData >
114
+
101
115
<actionGroup ref =" LoginAsAdmin" stepKey =" login" />
102
116
</before >
103
117
123
137
<argument name =" description" value =" sampleShortDescription" />
124
138
</actionGroup >
125
139
126
- <pauseExecution stepKey =" pause" />
140
+ <!-- Edit the attribute for the first simple product -->
141
+ <selectOption stepKey =" editSelectAttribute" selector =" {{ModifyAttributes.nthExistingAttribute($$createConfigProductAttributeSelect.default_frontend_label$$)}}" userInput =" $$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$" />
142
+ <scrollToTopOfPage stepKey =" scrollToTop" />
143
+ <click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" saveProduct" />
144
+ <seeElement selector =" {{AdminProductMessagesSection.successMessage}}" stepKey =" assertSaveMessageSuccess" />
127
145
128
146
<!-- Quick search the storefront for the first attribute option -->
129
147
<amOnPage stepKey =" goToStoreFront" url =" {{StorefrontHomePage.url}}" />
130
148
<waitForPageLoad stepKey =" waitForStorefront" />
131
- <fillField stepKey =" searchStorefront1" selector =" {{StorefrontPanelHeaderSection.search}}" userInput =" $$createConfigProductAttributeOption1 .option[store_labels][0][label]$$" />
149
+ <fillField stepKey =" searchStorefront1" selector =" {{StorefrontPanelHeaderSection.search}}" userInput =" $$createConfigProductAttributeSelectOption1 .option[store_labels][0][label]$$" />
132
150
<click stepKey =" clickSearch1" selector =" {{StorefrontPanelHeaderSection.searchButton}}" />
133
151
<seeElement stepKey =" seeProduct1" selector =" {{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}" />
134
152
142
160
<click stepKey =" clickSearch3" selector =" {{StorefrontPanelHeaderSection.searchButton}}" />
143
161
<seeElement stepKey =" seeProduct3" selector =" {{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}" />
144
162
</test >
145
- </tests >
163
+ </tests >
0 commit comments