From 528982ab0fd7517f8f187c6b6cd1c82044af39e3 Mon Sep 17 00:00:00 2001 From: Suchit Sahoo Date: Fri, 13 Dec 2024 03:14:38 +0000 Subject: [PATCH] Fix as per the comments Signed-off-by: Suchit Sahoo --- .../lib/__snapshots__/query_result.test.tsx.snap | 2 +- .../query/query_string/language_service/lib/query_result.tsx | 2 +- src/plugins/data/public/ui/query_editor/editors/shared.tsx | 2 +- src/plugins/data/public/ui/query_editor/language_selector.tsx | 2 +- src/plugins/data/public/ui/query_editor/query_editor.tsx | 2 +- .../data/public/ui/query_editor/query_editor_top_row.tsx | 1 - 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap b/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap index be3e7de5198..7588ef567b0 100644 --- a/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap +++ b/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap @@ -16,7 +16,7 @@ exports[`Query Result show error status with error message 2`] = ` Error diff --git a/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx b/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx index f761c896e85..2af3e81fc44 100644 --- a/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx +++ b/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx @@ -133,7 +133,7 @@ export function QueryResult(props: { queryStatus: QueryStatus }) { size="xs" color="danger" className="editor__footerItem" - data-test-subj="editorfooterItem" + data-test-subj="editorFooterItem" > {i18n.translate('data.query.languageService.queryResults.error', { defaultMessage: `Error`, diff --git a/src/plugins/data/public/ui/query_editor/editors/shared.tsx b/src/plugins/data/public/ui/query_editor/editors/shared.tsx index a7caa780f63..8b2da76091a 100644 --- a/src/plugins/data/public/ui/query_editor/editors/shared.tsx +++ b/src/plugins/data/public/ui/query_editor/editors/shared.tsx @@ -98,7 +98,7 @@ export const SingleLineInput: React.FC = ({ return (
{prepend}
{ handleLanguageChange(language.value)} > diff --git a/src/plugins/data/public/ui/query_editor/query_editor.tsx b/src/plugins/data/public/ui/query_editor/query_editor.tsx index af9d67ad62a..a9d84f29e69 100644 --- a/src/plugins/data/public/ui/query_editor/query_editor.tsx +++ b/src/plugins/data/public/ui/query_editor/query_editor.tsx @@ -433,7 +433,7 @@ export const QueryEditorUI: React.FC = (props) => { : languageEditor.TopBar.Expanded && languageEditor.TopBar.Expanded()}
{languageSelector} -
+