Skip to content

Commit

Permalink
chore(test): add required attributes for e2e test (#6797)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic authored Jan 16, 2025
1 parent f5dc67f commit 52aa0d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion ui/src/components/code/components/collapse/Element.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<script setup lang="ts">
import {computed} from "vue";
// TODO: Update import once https://github.com/kestra-io/kestra/pull/6643 is merged
import TaskIcon from "@kestra-io/ui-libs/src/components/misc/TaskIcon.vue";
const props = defineProps({
Expand Down
15 changes: 8 additions & 7 deletions ui/src/components/filter/KestraFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@
dashboards: dashboards.shown,
}"
@focus="handleFocus"
data-test-id="KestraFilter__select"
>
<!--
TODO: Possible approach to solving https://github.com/kestra-io/kestra/issues/6238 might
be custom tag slot https://element-plus.org/en-US/component/select.html#custom-tag
-->
<template #label="{value}">
<Label :option="value" />
</template>
Expand All @@ -46,11 +43,12 @@
</template>
<template v-if="dropdowns.first.shown">
<el-option
v-for="option in includedOptions"
v-for="(option, index) in includedOptions"
:key="option.value"
:value="option.value"
:label="option.label"
@click="() => filterCallback(option)"
:data-test-id="`KestraFilter__type__${index}`"
>
<component
v-if="option.icon"
Expand All @@ -62,7 +60,8 @@
</template>
<template v-else-if="dropdowns.second.shown">
<el-option
v-for="comparator in dropdowns.first.value.comparators"
v-for="(comparator, index) in dropdowns.first.value
.comparators"
:key="comparator.value"
:value="comparator"
:label="comparator.label"
Expand All @@ -72,11 +71,12 @@
),
}"
@click="() => comparatorCallback(comparator)"
:data-test-id="`KestraFilter__comparator__${index}`"
/>
</template>
<template v-else-if="dropdowns.third.shown">
<el-option
v-for="filter in valueOptions"
v-for="(filter, index) in valueOptions"
:key="filter.value"
:value="filter"
:label="filter.label"
Expand All @@ -90,6 +90,7 @@
@click="
() => !isOptionDisabled(filter) && valueCallback(filter)
"
:data-test-id="`KestraFilter__value__${index}`"
/>
</template>
</el-select>
Expand Down

0 comments on commit 52aa0d6

Please sign in to comment.