Skip to content

Commit 9bd85bc

Browse files
authored
Merge pull request #6141 from Countly/QT-281
[QT-281] Added data-test-id in parameter-drawer and parameter html files
2 parents cdae8f8 + a0a2d3f commit 9bd85bc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/remote-config/frontend/public/templates/parameters-drawer.html

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<div class="cly-vue-drawer-step__section">
1212
<cly-form-field name="parameter-key" v-slot="validation" :label="i18n('remote-config.parameter-key')" rules="required|regex:^[a-zA-Z_][a-zA-Z0-9_]*$">
1313
<el-input
14+
test-id="parameter-key-input"
1415
v-model="drawerScope.editedObject.parameter_key"
1516
maxlength="256"
1617
:placeholder="i18n('remote-config.parameter-key.placeholder')">
@@ -47,6 +48,7 @@
4748
v-model="defaultValue"
4849
:fetch-suggestions="querySearch"
4950
:placeholder="i18n('remote-config.default-value.placeholder')"
51+
test-id="default-value-input"
5052
>
5153
<el-button type="text" slot="suffix" @click="openJsonEditor" class="cly-vue-remote-config-parameters-drawer__autocomplete-button">{ }</el-button>
5254
</el-autocomplete>

plugins/remote-config/frontend/public/templates/parameters.html

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div class="cly-vue-remote-config-conditions-drawer__margin-bottom"
3333
:data-test-id="'datatable-remote-config-parameter-' + rowScope.$index"> {{rowScope.row.parameter_key}}
3434
</div>
35-
<div v-if="isDrillEnabled" class="color-cool-gray-40 text-small"><span>
35+
<div v-if="isDrillEnabled" class="color-cool-gray-40 text-small"><span :data-test-id="'datatable-remote-config-number-of-condition-' + rowScope.$index">
3636
{{getNumberOfConditionsText(rowScope.row.conditions)}} </span></div>
3737
</div>
3838
</template>

0 commit comments

Comments
 (0)