File tree 3 files changed +4
-0
lines changed
app/code/Magento/Swatches/Test/Mftf
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 21
21
<element name =" chooserBlock" type =" block" selector =" #swatch-visual-options-panel table tbody tr:nth-of-type({{var}}) .swatches-visual-col .swatch_sub-menu_container" parameterized =" true" />
22
22
<!-- Selector for Admin Description input where the index is zero-based -->
23
23
<element name =" swatchAdminDescriptionByIndex" type =" input" selector =" input[name='optiontext[value][option_{{index}}][0]']" parameterized =" true" />
24
+ <element name =" swatchWindow" type =" button" selector =" #swatch_window_option_option_{{var}}" parameterized =" true" />
24
25
<element name =" nthChooseColor" type =" button" selector =" #swatch-visual-options-panel table tbody tr:nth-of-type({{var}}) .swatch_row_name.colorpicker_handler" parameterized =" true" />
25
26
<element name =" nthUploadFile" type =" button" selector =" #swatch-visual-options-panel table tbody tr:nth-of-type({{var}}) .swatch_row_name.btn_choose_file_upload" parameterized =" true" />
26
27
<element name =" nthDelete" type =" button" selector =" #swatch-visual-options-panel table tbody tr:nth-of-type({{var}}) button.delete-option" parameterized =" true" />
Original file line number Diff line number Diff line change 53
53
<click selector =" {{AdminManageSwatchSection.nthUploadFile('1')}}" stepKey =" clickUploadFile1" />
54
54
<attachFile selector =" input[name='datafile']" userInput =" adobe-thumb.jpg" stepKey =" attachFile1" />
55
55
<fillField selector =" {{AdminManageSwatchSection.adminInputByIndex('0')}}" userInput =" adobe-thumb" stepKey =" fillAdmin1" />
56
+ <click selector =" {{AdminManageSwatchSection.swatchWindow('0')}}" stepKey =" clicksWatchWindow1" />
56
57
57
58
<!-- Set swatch image #2 -->
58
59
<click selector =" {{AdminManageSwatchSection.addSwatch}}" stepKey =" clickAddSwatch2" />
62
63
<click selector =" {{AdminManageSwatchSection.nthUploadFile('2')}}" stepKey =" clickUploadFile2" />
63
64
<attachFile selector =" input[name='datafile']" userInput =" adobe-small.jpg" stepKey =" attachFile2" />
64
65
<fillField selector =" {{AdminManageSwatchSection.adminInputByIndex('1')}}" userInput =" adobe-small" stepKey =" fillAdmin2" />
66
+ <click selector =" {{AdminManageSwatchSection.swatchWindow('1')}}" stepKey =" clicksWatchWindow2" />
65
67
66
68
<!-- Set swatch image #3 -->
67
69
<click selector =" {{AdminManageSwatchSection.addSwatch}}" stepKey =" clickAddSwatch3" />
Original file line number Diff line number Diff line change 55
55
<click selector =" {{AdminManageSwatchSection.nthUploadFile('1')}}" stepKey =" clickUploadFile1" />
56
56
<attachFile selector =" input[name='datafile']" userInput =" adobe-thumb.jpg" stepKey =" attachFile1" />
57
57
<fillField selector =" {{AdminManageSwatchSection.adminInputByIndex('0')}}" userInput =" adobe-thumb" stepKey =" fillAdmin1" />
58
+ <click selector =" {{AdminManageSwatchSection.swatchWindow('0')}}" stepKey =" clicksWatchWindow1" />
58
59
59
60
<!-- Set swatch #2 image using the file upload -->
60
61
<click selector =" {{AdminManageSwatchSection.addSwatch}}" stepKey =" clickAddSwatch2" />
You can’t perform that action at this time.
0 commit comments