Skip to content

Commit aea9e2c

Browse files
committed
added my data test-id
1 parent 8c4c54f commit aea9e2c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/components/Viewer/ObjectTree/Base/Controls.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ watch(
3232
:class="{ 'is-expanded': showSearch }"
3333
>
3434
<ActionButton
35+
data-testid="searchObjectsButton"
3536
:tooltip="showSearch ? 'Hide search' : 'Show search'"
3637
icon="mdi-magnify"
3738
tooltipLocation="bottom"
@@ -43,6 +44,7 @@ watch(
4344
<v-expand-x-transition>
4445
<div v-if="showSearch" class="flex-grow-1 ms-1 text-no-wrap overflow-hidden">
4546
<SearchBar
47+
data-testid="searchObjectsInput"
4648
:model-value="search"
4749
placeholder="Search objects..."
4850
color="black"
@@ -67,6 +69,7 @@ watch(
6769
/>
6870
</v-fade-transition>
6971
<ActionButton
72+
data-testid="sortObjectsButton"
7073
:tooltip="'Sort by ' + (sortType === 'name' ? 'ID' : 'Name')"
7174
:icon="
7275
sortType === 'name' ? 'mdi-sort-alphabetical-ascending' : 'mdi-sort-numeric-ascending'
@@ -79,6 +82,7 @@ watch(
7982
<v-menu :close-on-content-click="false">
8083
<template #activator="{ props: menuProps }">
8184
<ActionButton
85+
data-testid="filterObjectsButton"
8286
tooltip="Filter options"
8387
icon="mdi-filter-variant"
8488
variant="text"
@@ -94,6 +98,7 @@ watch(
9498
:label="category_id"
9599
hide-details
96100
density="compact"
101+
:data-testid="'filterCheckbox-' + category_id"
97102
/>
98103
</v-list-item>
99104
</v-list>

0 commit comments

Comments
 (0)