|
4 | 4 | > |
5 | 5 | <template v-slot:header-right> |
6 | 6 | <div class="bu-level-item" v-if="hasCreateRight"> |
7 | | - <el-button @click="create" type="success" size="small" icon="el-icon-circle-plus">Add Condition</el-button> |
| 7 | + <el-button data-test-id="add-condition-button" @click="create" type="success" size="small" icon="el-icon-circle-plus">Add Condition</el-button> |
8 | 8 | </div> |
9 | 9 | </template> |
10 | 10 | </cly-header> |
11 | 11 | <cly-main> |
12 | | - <cly-datatable-n :rows="tableRows" :force-loading="isTableLoading" class="cly-vue-remote-config-conditions-table" :row-class-name="tableRowClassName"> |
| 12 | + <cly-datatable-n test-id="condition" :rows="tableRows" :force-loading="isTableLoading" class="cly-vue-remote-config-conditions-table" :row-class-name="tableRowClassName"> |
13 | 13 | <template v-slot="scope"> |
14 | 14 | <el-table-column prop="condition_name" :label="i18n('remote-config.condition-name')" sortable="custom"> |
15 | 15 | <template v-slot="rowScope"> |
16 | 16 | <div> |
17 | | - <div class="cly-vue-remote-config-conditions-drawer__margin-bottom"> {{rowScope.row.condition_name}}</div> |
18 | | - <div class="color-cool-gray-40 text-small"> {{rowScope.row.used_in_parameters}} {{i18n('remote-config.conditions.parameter.affected')}}</div> |
| 17 | + <div :data-test-id="'datatable-condition-name-' + rowScope.$index" class="cly-vue-remote-config-conditions-drawer__margin-bottom"> {{rowScope.row.condition_name}}</div> |
| 18 | + <div :data-test-id="'datatable-condition-parameter-affect-' + rowScope.$index" class="color-cool-gray-40 text-small"> {{rowScope.row.used_in_parameters}} {{i18n('remote-config.conditions.parameter.affected')}}</div> |
19 | 19 | </div> |
20 | 20 | </template> |
21 | 21 | </el-table-column> |
22 | | - <el-table-column prop="condition_description" :label="i18n('remote-config.description')"> |
| 22 | + <el-table-column test-id="condition" prop="condition_description" :label="i18n('remote-config.description')"> |
23 | 23 | <template v-slot:default="rowScope"> |
24 | | - {{displayDescription(rowScope.row.condition_description)}} |
| 24 | + <div :data-test-id="'datatable-condition-description-' + rowScope.$index"> {{displayDescription(rowScope.row.condition_description)}}</div> |
25 | 25 | </template> |
26 | 26 | </el-table-column> |
27 | | - <el-table-column prop="condition_definition" :label="i18n('remote-config.definition')"> |
| 27 | + <el-table-column test-id="condition" prop="condition_definition" :label="i18n('remote-config.definition')"> |
28 | 28 | <template v-slot:default="rowScope"> |
29 | | - <div v-html="rowScope.row.condition_definition"></div> |
| 29 | + <div :data-test-id="'datatable-condition-description-' + rowScope.$index" v-html="rowScope.row.condition_definition"></div> |
30 | 30 | </template> |
31 | 31 | </el-table-column> |
32 | | - <el-table-column prop="seed_value" :label="i18n('remote-config.seed-value')"> |
| 32 | + <el-table-column test-id="condition" prop="seed_value" :label="i18n('remote-config.seed-value')"> |
33 | 33 | <template v-slot:default="rowScope"> |
34 | | - {{rowScope.row.seed_value || "Default"}} |
| 34 | + <div :data-test-id="'datatable-condition-seed-value-' + rowScope.$index"> {{rowScope.row.seed_value || "Default"}}</div> |
35 | 35 | </template> |
36 | 36 | </el-table-column> |
37 | 37 | <el-table-column type="options" v-if="hasUpdateRight || hasDeleteRight"> |
|
0 commit comments