Skip to content

Commit 6ace9a1

Browse files
committed
Added missing data test ids to content header
1 parent d49adb0 commit 6ace9a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/express/public/javascripts/countly/vue/templates/content/content-header.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<div class="cly-vue-content-builder-header__left">
66
<div
77
class="cly-vue-content-builder-header__close-button"
8+
data-test-id="close-icon"
89
@click="onCloseIconClick"
910
>
1011
<i
@@ -14,6 +15,7 @@
1415
</div>
1516
<el-switch
1617
v-if="toggle"
18+
test-id=""
1719
v-tooltip.right="toggleTooltip"
1820
v-model="toggleLocalValue"
1921
class="cly-vue-content-builder-header__toggle"
@@ -44,7 +46,7 @@
4446
>
4547
{{ version }}
4648
</div>
47-
<div class="cly-vue-content-builder-header__created-by">
49+
<div class="cly-vue-content-builder-header__created-by" data-test-id="created-by-label">
4850
{{ createdBy }}
4951
</div>
5052
</div>
@@ -62,6 +64,7 @@
6264
<cly-status-badge
6365
v-if="status.show"
6466
class="cly-vue-content-builder-header__badge"
67+
data-test-id="content-header-status-badge"
6568
:label="status.label"
6669
:mode="status.mode"
6770
/>
@@ -79,13 +82,15 @@
7982
<cly-more-options
8083
v-if="isOptionsButtonVisible"
8184
class="cly-vue-content-builder-header__options-button"
85+
test-id="content-header"
8286
size="small"
8387
@command="onCommand"
8488
>
8589
<el-dropdown-item
8690
v-for="(option, idx) in options"
8791
:key="`cly-vue-content-builder-header-option-${idx}`"
8892
class="cly-vue-content-builder-header__option"
93+
:data-test-id="'more-button-option-' + option.value"
8994
:command="option.value"
9095
:disabled="option.disabled"
9196
>

0 commit comments

Comments
 (0)