File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 183
183
<waitForPageLoad time =" 30" stepKey =" waitForPageLoad" />
184
184
<see selector =" {{element}}" userInput =" {{expectedText}}" stepKey =" AssertText" />
185
185
</actionGroup >
186
-
187
- <!-- actionGroup to edit the short and long description of a product -->
188
- <!-- Assumes you are already on the product edit page -->
189
- <actionGroup name =" EditProductDescription" >
190
- <arguments >
191
- <argument name =" description" defaultValue =" sampleShortDescription" />
192
- </arguments >
193
- <click stepKey =" clickContentDropdown" selector =" {{AdminProductContentSection.sectionHeader}}" />
194
- <waitForPageLoad stepKey =" dropdownWait" />
195
- <fillField stepKey =" fillShortDescription" selector =" {{AdminProductContentSection.shortDescriptionTextArea}}" userInput =" {{description}}" />
196
- <scrollToTopOfPage stepKey =" scrollToTop" />
197
- <click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" saveProduct" />
198
- <seeElement selector =" {{AdminProductMessagesSection.successMessage}}" stepKey =" assertSaveMessageSuccess" />
199
- </actionGroup >
200
186
</actionGroups >
Original file line number Diff line number Diff line change 71
71
<requiredEntity createDataKey =" createConfigProductAttribute" />
72
72
<requiredEntity createDataKey =" getConfigAttributeOption1" />
73
73
</createData >
74
+ <updateData entity =" ApiSimpleProductUpdateDescription" stepKey =" updateSimpleProduct1" createDataKey =" createConfigChildProduct1" />
74
75
75
76
<!-- Create a simple product and give it the attribute with the second option -->
76
77
<createData entity =" ApiSimpleTwoHidden" stepKey =" createConfigChildProduct2" >
133
134
<argument name =" sku" value =" $$createConfigChildProduct1.sku$$" />
134
135
</actionGroup >
135
136
<actionGroup stepKey =" openProductEditPage" ref =" openProducForEditByClickingRowXColumnYInProductGrid" />
136
- <actionGroup stepKey =" editProductDescription" ref =" EditProductDescription" >
137
- <argument name =" description" value =" sampleShortDescription" />
138
- </actionGroup >
139
137
140
138
<!-- Edit the attribute for the first simple product -->
141
139
<selectOption stepKey =" editSelectAttribute" selector =" {{ModifyAttributes.nthExistingAttribute($$createConfigProductAttributeSelect.default_frontend_label$$)}}" userInput =" $$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$" />
156
154
<seeElement stepKey =" seeProduct2" selector =" {{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}" />
157
155
158
156
<!-- Quick search the storefront for the first product description -->
159
- <fillField stepKey =" searchStorefront3" selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" sampleShortDescription " />
157
+ <fillField stepKey =" searchStorefront3" selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" '$$createConfigChildProduct1.custom_attributes[short_description]$$' " />
160
158
<click stepKey =" clickSearch3" selector =" {{StorefrontQuickSearchSection.searchButton}}" />
161
159
<seeElement stepKey =" seeProduct3" selector =" {{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}" />
162
160
</test >
You can’t perform that action at this time.
0 commit comments