Skip to content

Commit ccf4a06

Browse files
authored
Merge pull request #6676 from Countly/QT-333
[QT-333] Added data-test-id in helpers.js file
2 parents 81d0b8e + 67f1ac0 commit ccf4a06

File tree

1 file changed

+2
-2
lines changed
  • frontend/express/public/javascripts/countly/vue/components

1 file changed

+2
-2
lines changed

frontend/express/public/javascripts/countly/vue/components/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,10 +991,10 @@
991991
},
992992
template: '<div class="bu-is-flex bu-is-flex-wrap-wrap bu-is-align-items-center">\
993993
<div class="cly-vue-color-tag__color-tag-wrapper" v-for="(tag,idx) in tags">\
994-
<div v-if="tag.value == selectedTag.value" @click="click(tag)" class="cly-vue-color-tag__color-tag cly-vue-color-tag__color-tag__selected bu-is-flex bu-is-align-items-center bu-is-justify-content-center" :style="{backgroundColor: tag.label}">\
994+
<div v-if="tag.value == selectedTag.value" @click="click(tag)" :data-test-id="`color-tag-${idx}`" class="cly-vue-color-tag__color-tag cly-vue-color-tag__color-tag__selected bu-is-flex bu-is-align-items-center bu-is-justify-content-center" :style="{backgroundColor: tag.label}">\
995995
<i class="ion-checkmark cly-vue-color-tag__checkmark"></i>\
996996
</div>\
997-
<div v-else @click="click(tag)" class="cly-vue-color-tag__color-tag bu-is-flex bu-is-align-items-center bu-is-justify-content-center" :style="{backgroundColor: tag.label}"></div>\
997+
<div v-else @click="click(tag)" :data-test-id="`color-tag-${idx}`" class="cly-vue-color-tag__color-tag bu-is-flex bu-is-align-items-center bu-is-justify-content-center" :style="{backgroundColor: tag.label}"></div>\
998998
</div>\
999999
</div>'
10001000
}));

0 commit comments

Comments
 (0)