File tree 5 files changed +15
-10
lines changed
Catalog/Test/Mftf/Section
Ui/view/base/web/templates/form
design/adminhtml/Magento/backend/web/css/source/forms
dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product 5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 14
14
<element name =" useDefaultOptionTitle" type =" text" selector =" [data-index='options'] tr.data-row [data-index='title'] [name^='options_use_default']" />
15
15
<element name =" useDefaultOptionValueTitleByIndex" type =" text" selector =" [data-index='options'] [data-index='values'] tr[data-repeat-index='{{var1}}'] [name^='options_use_default']" parameterized =" true" />
16
16
<element name =" addOptionBtn" type =" button" selector =" button[data-index='button_add']" />
17
- <element name =" fillOptionTitle" type =" input" selector =" //span[text()='{{var1}}']/parent::div/parent::div/parent::div//span [text()='Option Title']/parent::label /parent::div//input[@class='admin__control-text']" parameterized =" true" />
17
+ <element name =" fillOptionTitle" type =" input" selector =" //span[text()='{{var1}}']/parent::div/parent::div/parent::div//label [text()='Option Title']/parent::span /parent::div//input[@class='admin__control-text']" parameterized =" true" />
18
18
<element name =" checkSelect" type =" select" selector =" //span[text()='{{var1}}']/parent::div/parent::div/parent::div//span[text()='Option Type']/parent::label/parent::div//div[@data-role='selected-option']" parameterized =" true" />
19
19
<element name =" checkDropDown" type =" select" selector =" //span[text()='{{var1}}']/parent::div/parent::div/parent::div//parent::label/parent::div//li[@class='admin__action-multiselect-menu-inner-item']//label[text()='Drop-down']" parameterized =" true" />
20
20
<element name =" clickAddValue" type =" button" selector =" //span[text()='{{var1}}']/parent::div/parent::div/parent::div//tfoot//button" parameterized =" true" />
Original file line number Diff line number Diff line change 15
15
<element name =" productName" type =" input" selector =" .admin__field[data-index=name] input" />
16
16
<element name =" productNameUseDefault" type =" checkbox" selector =" input[name='use_default[name]']" />
17
17
<element name =" productSku" type =" input" selector =" .admin__field[data-index=sku] input" />
18
+ <element name =" enableProductAttributeLabel" type =" text" selector =" //label[text()='Enable Product']" />
19
+ <element name =" enableProductAttributeLabelWrapper" type =" text" selector =" //label[text()='Enable Product']/parent::span" />
18
20
<element name =" productStatus" type =" checkbox" selector =" input[name='product[status]']" />
19
21
<element name =" productStatusUseDefault" type =" checkbox" selector =" input[name='use_default[status]']" />
20
22
<element name =" productPrice" type =" input" selector =" .admin__field[data-index=price] input" />
31
33
<element name =" visibilityUseDefault" type =" checkbox" selector =" //input[@name='use_default[visibility]']" />
32
34
<element name =" divByDataIndex" type =" input" selector =" div[data-index='{{var}}']" parameterized =" true" />
33
35
<element name =" attributeSetSearchCount" type =" text" selector =" div[data-index='attribute_set_id'] .admin__action-multiselect-search-count" />
34
- <element name =" attributeLabelByText" type =" text" selector =" //*[@class='admin__field']//span [text()='{{attributeLabel}}']" parameterized =" true" />
36
+ <element name =" attributeLabelByText" type =" text" selector =" //*[@class='admin__field']//label [text()='{{attributeLabel}}']" parameterized =" true" />
35
37
<element name =" addAttributeBtn" type =" button" selector =" #addAttribute" />
36
38
</section >
37
39
<section name =" ProductInWebsitesSection" >
Original file line number Diff line number Diff line change 8
8
visible ="visible "
9
9
css ="$data.additionalClasses "
10
10
attr ="'data-index': index ">
11
- < label class ="admin__field-label " if ="$data.label " visible ="$data.labelVisible " attr =" for: uid ">
12
- < span translate ="label " attr ="'data-config-scope': $data.scopeLabel "/>
13
- </ label >
11
+ < span class ="admin__field-label " if ="$data.label " visible ="$data.labelVisible ">
12
+ < label translate ="label " attr ="'data-config-scope': $data.scopeLabel, for: uid "/>
13
+ </ span >
14
14
< div class ="admin__field-control "
15
15
css ="'_with-tooltip': $data.tooltip, '_with-reset': $data.showFallbackReset && $data.isDifferedFromDefault ">
16
16
< render args ="elementTmpl " ifnot ="hasAddons() "/>
Original file line number Diff line number Diff line change 183
183
184
184
.admin__field-label {
185
185
color : @field-label__color ;
186
- cursor : pointer ;
187
186
margin : 0 ;
188
187
text-align : right ;
189
188
189
+ label {
190
+ cursor : pointer ;
191
+ }
192
+
190
193
+ br {
191
194
display : none ;
192
195
}
207
210
overflow : hidden ;
208
211
}
209
212
210
- span {
213
+ label {
211
214
display : inline-block ;
212
215
line-height : @field-label__line-height ;
213
216
vertical-align : middle ;
512
515
position : absolute ;
513
516
top : 0 ;
514
517
515
- span {
518
+ label {
516
519
& :before {
517
520
display : block ;
518
521
}
527
530
}
528
531
529
532
& > .admin__field-label {
530
- span {
533
+ label {
531
534
& :before {
532
535
display : none ;
533
536
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ProductForm extends FormSections
28
28
*
29
29
* @var string
30
30
*/
31
- protected $ attribute = './/*[contains(@class,"label")]/span [text()="%s"] ' ;
31
+ protected $ attribute = './/*[contains(@class,"label")]/label [text()="%s"] ' ;
32
32
33
33
/**
34
34
* Product new from date field on the product form
You can’t perform that action at this time.
0 commit comments