File tree Expand file tree Collapse file tree
frontend/express/public/javascripts/countly/vue Expand file tree Collapse file tree Original file line number Diff line number Diff line change 378378 </el-collapse>
379379 </div>
380380 <div v-else>
381- <div class="cly-vue-content-builder__layout-steps__header text-medium font-weight-bold">{{ header }}</div>
381+ <div class="cly-vue-content-builder__layout-steps__header text-medium font-weight-bold" :data-test-id="'content-drawer-sidebar-step-' + header.toLowerCase().replaceAll(' ', '-')" >{{ header }}</div>
382382 <slot name="content-builder-layout-steps"></slot>
383383 </div>
384384 </div>
624624 value : {
625625 default : null ,
626626 type : [ String , Number ]
627+ } ,
628+ testId : {
629+ type : String ,
630+ default : 'cly-option-swapper-test-id' ,
631+ required : false
627632 }
628633 } ,
629634
Original file line number Diff line number Diff line change 77 < div
88 v-for ="(option, index) in options "
99 :key ="`cly-option-swapper-option-${index}` "
10+ :data-test-id ="`cly-option-swapper-option-${testId}-${option.value.toString().toLowerCase()}` "
1011 v-tooltip ="option.tooltip "
1112 class ="cly-option-swapper__option "
1213 :class ="{
2425 />
2526 < span v-else > {{ option.text }}</ span >
2627 </ div >
27- </ div >
28+ </ div >
Original file line number Diff line number Diff line change 22 < div
33 v-if ="subHeader "
44 class ="cly-vue-content-builder-sidebar-input__sub-header "
5+ :data-test-id ="'content-drawer-sidebar-step-' + subHeader.toLowerCase().replaceAll(' ', '-') + '-label' "
56 >
67 {{ subHeader }}
78 </ div >
1516 < label
1617 v-if ="label "
1718 class ="cly-vue-content-builder-sidebar-input__label "
19+ :data-test-id ="'content-drawer-sidebar-step-' + $attrs.id + '-' + label.toLowerCase().replaceAll(' ', '-') + '-label' "
1820 >
1921 {{ label }}
2022 < i
2123 v-if ="isLabelTooltipVisible "
2224 v-tooltip.left ="labelTooltip "
2325 :class ="labelIcon "
26+ :data-test-id ="'content-drawer-sidebar-step-' + $attrs.id + '-' + label.toLowerCase().replaceAll(' ', '-') + '-label-tooltip' "
2427 />
2528 </ label >
2629 < slot name ="content-builder-layout-step ">
3841 :controls ="controlsProp "
3942 :disabled ="disabled "
4043 :options ="options "
44+ :test-id ="'content-drawer-sidebar-step-' + $attrs.id "
4145 >
4246 < template
4347 v-if ="isSuffixVisible "
8892 </ div >
8993 </ slot >
9094 </ div >
91- </ div >
95+ </ div >
You can’t perform that action at this time.
0 commit comments