From df88f13a88fa05cfea190ff20220226a38e371ec Mon Sep 17 00:00:00 2001
From: Sandeepa Singh <sandeepa.singh@ibm.com>
Date: Mon, 8 Feb 2021 21:14:02 +0530
Subject: Added test hook for client session page

Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com>
Change-Id: I5ba8243fcc0ba561bfab18503c2c1ba5aebd47c0
---
 src/views/AccessControl/ClientSessions/ClientSessions.vue | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'src/views/AccessControl/ClientSessions/ClientSessions.vue')

diff --git a/src/views/AccessControl/ClientSessions/ClientSessions.vue b/src/views/AccessControl/ClientSessions/ClientSessions.vue
index 1921c86a5..b61b2032a 100644
--- a/src/views/AccessControl/ClientSessions/ClientSessions.vue
+++ b/src/views/AccessControl/ClientSessions/ClientSessions.vue
@@ -5,6 +5,7 @@
       <b-col sm="6" md="5" xl="4">
         <search
           :placeholder="$t('pageClientSessions.table.searchSessions')"
+          data-test-id="clientSessions-input-searchSessions"
           @change-search="onChangeSearchInput"
           @clear-search="onClearSearchInput"
         />
@@ -48,7 +49,7 @@
           <template #head(checkbox)>
             <b-form-checkbox
               v-model="tableHeaderCheckboxModel"
-              data-test-id="sessionLogs-checkbox-selectAll"
+              data-test-id="clientSessions-checkbox-selectAll"
               :indeterminate="tableHeaderCheckboxIndeterminate"
               @change="onChangeHeaderCheckbox($refs.table)"
             >
@@ -58,7 +59,7 @@
           <template #cell(checkbox)="row">
             <b-form-checkbox
               v-model="row.rowSelected"
-              :data-test-id="`sessionLogs-checkbox-selectRow-${row.index}`"
+              :data-test-id="`clientSessions-checkbox-selectRow-${row.index}`"
               @change="toggleSelectRow($refs.table, row.index)"
             >
               <span class="sr-only">{{ $t('global.table.selectItem') }}</span>
@@ -74,7 +75,7 @@
               :title="action.title"
               :row-data="row.item"
               :btn-icon-only="false"
-              :data-test-id="`sessionLogs-button-deleteRow-${row.index}`"
+              :data-test-id="`clientSessions-button-disconnect-${row.index}`"
               @click-table-action="onTableRowAction($event, row.item)"
             ></table-row-action>
           </template>
-- 
cgit v1.2.3

