summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/Global/TableToolbar.vue1
-rw-r--r--src/views/Health/EventLogs/EventLogs.vue13
2 files changed, 9 insertions, 5 deletions
diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue
index b49b3154..05b96699 100644
--- a/src/components/Global/TableToolbar.vue
+++ b/src/components/Global/TableToolbar.vue
@@ -9,6 +9,7 @@
<b-button
v-for="(action, index) in actions"
:key="index"
+ :data-test-id="`table-button-${action.value}Selected`"
variant="primary"
class="d-block"
@click="$emit('batchAction', action.value)"
diff --git a/src/views/Health/EventLogs/EventLogs.vue b/src/views/Health/EventLogs/EventLogs.vue
index 4b1a8f7e..21a0e288 100644
--- a/src/views/Health/EventLogs/EventLogs.vue
+++ b/src/views/Health/EventLogs/EventLogs.vue
@@ -49,6 +49,7 @@
<template v-slot:head(checkbox)>
<b-form-checkbox
v-model="tableHeaderCheckboxModel"
+ data-test-id="eventLogs-checkbox-selectAll"
:indeterminate="tableHeaderCheckboxIndeterminate"
@change="onChangeHeaderCheckbox($refs.table)"
/>
@@ -56,6 +57,7 @@
<template v-slot:cell(checkbox)="row">
<b-form-checkbox
v-model="row.rowSelected"
+ :data-test-id="`eventLogs-checkbox-selectRow-${row.index}`"
@change="toggleSelectRow($refs.table, row.index)"
/>
</template>
@@ -72,15 +74,16 @@
</template>
<!-- Actions column -->
- <template v-slot:cell(actions)="{ item }">
+ <template v-slot:cell(actions)="row">
<table-row-action
- v-for="(action, index) in item.actions"
+ v-for="(action, index) in row.item.actions"
:key="index"
:value="action.value"
:title="action.title"
- :row-data="item"
- :export-name="item.id"
- @click:tableAction="onTableRowAction($event, item)"
+ :row-data="row.item"
+ :export-name="row.item.id"
+ :data-test-id="`eventLogs-button-deleteRow-${row.index}`"
+ @click:tableAction="onTableRowAction($event, row.item)"
>
<template v-slot:icon>
<icon-export v-if="action.value === 'export'" />