Skip to content

Commit f66d4ff

Browse files
authored
Merge pull request #6016 from Countly/QT-267
[QT-267] Added missing data test ids to content header
2 parents d49adb0 + fbda7a8 commit f66d4ff

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
@@ -17,6 +18,7 @@
1718
v-tooltip.right="toggleTooltip"
1819
v-model="toggleLocalValue"
1920
class="cly-vue-content-builder-header__toggle"
21+
test-id="journey-publish"
2022
:disabled="isToggleDisabled"
2123
/>
2224
<div class="cly-vue-content-builder-header__info">
@@ -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)