File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
app/code/Magento/Swatches Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
<element name =" nthSwatchText" type =" input" selector =" #swatch-text-options-panel table tbody tr:nth-of-type({{var}}) td:nth-of-type(3) input" parameterized =" true" />
18
18
<element name =" nthIsDefault" type =" input" selector =" (//input[@name='defaultvisual[]'])[{{var}}]" parameterized =" true" />
19
19
<element name =" nthSwatchAdminDescription" type =" input" selector =" #swatch-text-options-panel table tbody tr:nth-of-type({{var}}) td:nth-of-type(4) input" parameterized =" true" />
20
+ <element name =" nthVisualSwatch" type =" button" selector =" #swatch-visual-options-panel table tbody tr:nth-of-type({{var}}) .swatches-visual-col" parameterized =" true" />
20
21
<!-- Selector for Admin Description input where the index is zero-based -->
21
22
<element name =" swatchAdminDescriptionByIndex" type =" input" selector =" input[name='optiontext[value][option_{{index}}][0]']" parameterized =" true" />
22
23
<element name =" nthChooseColor" type =" button" selector =" #swatch-visual-options-panel table tbody tr:nth-of-type({{var}}) .swatch_row_name.colorpicker_handler" parameterized =" true" />
Original file line number Diff line number Diff line change 26
26
<click selector =" {{AdminManageSwatchSection.addSwatch}}" stepKey =" clickAddSwatch1" />
27
27
<click selector =" {{AdminManageSwatchSection.addSwatch}}" stepKey =" clickAddSwatch2" />
28
28
<click selector =" {{AdminManageSwatchSection.addSwatch}}" stepKey =" clickAddSwatch3" />
29
- <click selector =" {{AdminManageSwatchSection.nthSwatch ('3')}}" stepKey =" clickSwatch3" />
30
- <click selector =" {{AdminManageSwatchSection.nthSwatch ('2')}}" stepKey =" clickSwatch2" />
31
- <click selector =" {{AdminManageSwatchSection.nthSwatch ('1')}}" stepKey =" clickSwatch1" />
29
+ <click selector =" {{AdminManageSwatchSection.nthVisualSwatch ('3')}}" stepKey =" clickSwatch3" />
30
+ <click selector =" {{AdminManageSwatchSection.nthVisualSwatch ('2')}}" stepKey =" clickSwatch2" />
31
+ <click selector =" {{AdminManageSwatchSection.nthVisualSwatch ('1')}}" stepKey =" clickSwatch1" />
32
32
</test >
33
33
</tests >
Original file line number Diff line number Diff line change @@ -403,8 +403,8 @@ define([
403
403
/**
404
404
* Toggle color upload chooser
405
405
*/
406
- $ ( document ) . on ( 'click' , '.swatch_window ' , function ( ) {
407
- var currentElement = $ ( this ) . next ( 'div ') ;
406
+ $ ( document ) . on ( 'click' , '.swatches-visual-col ' , function ( ) {
407
+ var currentElement = $ ( this ) . find ( '.swatch_sub-menu_container ') ;
408
408
409
409
jQuery ( '.swatch_sub-menu_container' ) . not ( currentElement ) . hide ( ) ;
410
410
currentElement . toggle ( ) ;
You can’t perform that action at this time.
0 commit comments