fix: refs #8581 add data-cy attribute to QCheckbox for better testability
This commit is contained in:
parent
e29f82ba8c
commit
02fe39668d
|
@ -717,6 +717,7 @@ function cardClick(_, row) {
|
|||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
"
|
||||
:data-cy="`vnTableCell_${col.name}`"
|
||||
>
|
||||
<slot
|
||||
:name="`column-${col.name}`"
|
||||
|
@ -751,7 +752,6 @@ function cardClick(_, row) {
|
|||
: col?.style
|
||||
"
|
||||
style="bottom: 0"
|
||||
:data-cy="`vnTableCell_${col.name}`"
|
||||
>
|
||||
{{ formatColumnValue(col, row, dashIfEmpty) }}
|
||||
</span>
|
||||
|
|
|
@ -27,7 +27,12 @@ const checkboxModel = computed({
|
|||
</script>
|
||||
<template>
|
||||
<div>
|
||||
<QCheckbox v-bind="$attrs" v-on="$attrs" v-model="checkboxModel" />
|
||||
<QCheckbox
|
||||
v-bind="$attrs"
|
||||
v-on="$attrs"
|
||||
v-model="checkboxModel"
|
||||
:data-cy="$attrs['data-cy'] ?? `vnCheckbox${$attrs['label'] ?? ''}`"
|
||||
/>
|
||||
<QIcon
|
||||
v-if="info"
|
||||
v-bind="$attrs"
|
||||
|
|
Loading…
Reference in New Issue