Skip to content

Commit a8310f6

Browse files
authored
Merge pull request #6747 from Countly/QT-341
[QT-341] Added data-test-id for condition data table more, edit and delete butttons
2 parents f5c1148 + 0cfc3ac commit a8310f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
</el-table-column>
3737
<el-table-column type="options" v-if="hasUpdateRight || hasDeleteRight">
3838
<template v-slot="rowScope">
39-
<cly-more-options v-if="rowScope.row.hover" size="small" @command="handleCommand($event, scope, rowScope.row)">
40-
<el-dropdown-item v-if="hasUpdateRight" command="edit">{{i18n('common.edit')}}</el-dropdown-item>
41-
<el-dropdown-item v-if="hasDeleteRight" command="remove">{{i18n('common.delete')}}</el-dropdown-item>
39+
<cly-more-options :test-id="'more-option-button-' + rowScope.$index" v-if="rowScope.row.hover" size="small" @command="handleCommand($event, scope, rowScope.row)">
40+
<el-dropdown-item v-if="hasUpdateRight" command="edit" data-test-id="condition-data-table-more-option-edit-button">{{i18n('common.edit')}}</el-dropdown-item>
41+
<el-dropdown-item v-if="hasDeleteRight" command="remove" data-test-id="condition-data-table-more-option-delete-button">{{i18n('common.delete')}}</el-dropdown-item>
4242
</cly-more-options>
4343
</template>
4444
</el-table-column>

0 commit comments

Comments
 (0)