@@ -212,14 +212,14 @@ defineExpose({
212212 <Title
213213 :config =" {
214214 title: {
215- cy: 'thermo -div-title',
215+ cy: 'thermometer -div-title',
216216 text: thermoConfig.style.title.text,
217217 color: thermoConfig.style.title.color,
218218 fontSize: thermoConfig.style.title.fontSize,
219219 bold: thermoConfig.style.title.bold
220220 },
221221 subtitle: {
222- cy: 'thermo -div-subtitle',
222+ cy: 'thermometer -div-subtitle',
223223 text: thermoConfig.style.title.subtitle.text,
224224 color: thermoConfig.style.title.subtitle.color,
225225 fontSize: thermoConfig.style.title.subtitle.fontSize,
@@ -231,15 +231,15 @@ defineExpose({
231231
232232 <!-- OPTIONS -->
233233 <details class =" vue-ui-thermometer-user-options" :style =" `background:${thermoConfig.style.chart.backgroundColor};color:${thermoConfig.style.chart.color}`" data-html2canvas-ignore v-if =" thermoConfig.userOptions.show" ref =" details" >
234- <summary :style =" `background:${thermoConfig.style.chart.backgroundColor};color:${thermoConfig.style.chart.color}`" >{{ thermoConfig.userOptions.title }}</summary >
234+ <summary data-cy = " thermometer-summary " :style =" `background:${thermoConfig.style.chart.backgroundColor};color:${thermoConfig.style.chart.color}`" >{{ thermoConfig.userOptions.title }}</summary >
235235 <div class =" vue-ui-thermometer-user-options-items" :style =" `background:${thermoConfig.style.chart.backgroundColor};color:${thermoConfig.style.chart.color}`" >
236236 <div class =" vue-ui-thermometer-user-option-item" >
237- <input type =" checkbox" :id =" `vue-ui-thermometer-option-title_${uid}`" :name =" `vue-ui-thermometer-option-title_${uid}`"
237+ <input data-cy = " thermometer-checkbox-title " type =" checkbox" :id =" `vue-ui-thermometer-option-title_${uid}`" :name =" `vue-ui-thermometer-option-title_${uid}`"
238238 v-model =" mutableConfig.inside" @change =" setPaddingTop
239239 " >
240240 <label :for =" `vue-ui-thermometer-option-title_${uid}`" >{{ thermoConfig.userOptions.labels.useDiv }}</label >
241241 </div >
242- <button class =" vue-ui-thermometer-button" @click =" generatePdf" :disabled =" isPrinting" style =" margin-top :12px " :style =" `background:${thermoConfig.style.chart.backgroundColor};color:${thermoConfig.style.chart.color}`" >
242+ <button data-cy = " thermometer-pdf " class =" vue-ui-thermometer-button" @click =" generatePdf" :disabled =" isPrinting" style =" margin-top :12px " :style =" `background:${thermoConfig.style.chart.backgroundColor};color:${thermoConfig.style.chart.color}`" >
243243 <svg class =" vue-ui-thermometer-print-icon" xmlns =" http://www.w3.org/2000/svg" v-if =" isPrinting" width =" 20" height =" 20" viewBox =" 0 0 24 24" stroke-width =" 1.5" :stroke =" thermoConfig.style.chart.color" fill =" none" stroke-linecap =" round" stroke-linejoin =" round" >
244244 <path stroke =" none" d =" M0 0h24v24H0z" fill =" none" />
245245 <path d =" M18 16v.01" />
@@ -279,6 +279,7 @@ defineExpose({
279279 <!-- TITLE AS G -->
280280 <g v-if =" thermoConfig.style.title.text && mutableConfig.inside && !isPrinting" >
281281 <text
282+ data-cy =" thermometer-text-title"
282283 :font-size =" thermoConfig.style.title.fontSize"
283284 :fill =" thermoConfig.style.title.color"
284285 :x =" drawingArea.width / 2"
@@ -289,6 +290,7 @@ defineExpose({
289290 {{ thermoConfig.style.title.text }}
290291 </text >
291292 <text
293+ data-cy =" thermometer-text-subtitle"
292294 v-if =" thermoConfig.style.title.subtitle.text"
293295 :font-size =" thermoConfig.style.title.subtitle.fontSize"
294296 :fill =" thermoConfig.style.title.subtitle.color"
@@ -417,6 +419,7 @@ defineExpose({
417419 />
418420 </g >
419421 <text
422+ data-cy =" thermometer-datalabel"
420423 :class =" {'vue-ui-thermometer-temperature-value': thermoConfig.style.chart.animation.use }"
421424 :y =" temperature + drawingArea.top + (thermoConfig.style.chart.label.fontSize / 3)"
422425 :x =" drawingArea.left - 10"
0 commit comments