From 52e110a859d4b8fb6fe0cc1741b564f44b0da8b9 Mon Sep 17 00:00:00 2001 From: Argus Li Date: Tue, 10 Dec 2024 11:05:41 -0800 Subject: [PATCH] Add data-test-subj tags. Signed-off-by: Argus Li --- .../data/public/ui/dataset_selector/dataset_explorer.tsx | 1 + src/plugins/data/public/ui/filter_bar/filter_bar.tsx | 7 ++++++- .../ui/filter_bar/filter_editor/lib/filter_label.test.tsx | 4 ++++ .../ui/filter_bar/filter_editor/lib/filter_label.tsx | 6 +++++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/plugins/data/public/ui/dataset_selector/dataset_explorer.tsx b/src/plugins/data/public/ui/dataset_selector/dataset_explorer.tsx index 7861dd836cd1..ec8e118157b1 100644 --- a/src/plugins/data/public/ui/dataset_selector/dataset_explorer.tsx +++ b/src/plugins/data/public/ui/dataset_selector/dataset_explorer.tsx @@ -152,6 +152,7 @@ export const DatasetExplorer = ({
( - + { : Warning @@ -125,6 +126,7 @@ test('alias with error status', () => { : Error @@ -141,6 +143,7 @@ test('warning', () => { : Warning @@ -157,6 +160,7 @@ test('error', () => { : Error diff --git a/src/plugins/data/public/ui/filter_bar/filter_editor/lib/filter_label.tsx b/src/plugins/data/public/ui/filter_bar/filter_editor/lib/filter_label.tsx index 529053ffd042..32f14b3eba34 100644 --- a/src/plugins/data/public/ui/filter_bar/filter_editor/lib/filter_label.tsx +++ b/src/plugins/data/public/ui/filter_bar/filter_editor/lib/filter_label.tsx @@ -59,7 +59,11 @@ export default function FilterLabel({ filter, valueLabel, filterLabelStatus }: F ); const getValue = (text?: string) => { - return {text}; + return ( + + {text} + + ); }; if (filter.meta.alias !== null) {