From eaf97ea627a5df7056518d808680cd3994150129 Mon Sep 17 00:00:00 2001 From: Jason Stoltzfus Date: Thu, 4 Mar 2021 12:50:14 -0500 Subject: [PATCH] Use EmptyQueryPrompt for data attribute --- .../relevance_tuning/relevance_tuning_preview.test.tsx | 6 +++--- .../relevance_tuning/relevance_tuning_preview.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.test.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.test.tsx index ac3853543196c..ec6458a14b346 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.test.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.test.tsx @@ -56,7 +56,7 @@ describe('RelevanceTuningPreview', () => { expect(results.at(1).prop('result')).toBe(result2); expect(results.at(2).prop('result')).toBe(result3); - expect(wrapper.find('[data-test-subj="EnterAQueryPrompt"]').exists()).toBe(false); + expect(wrapper.find('[data-test-subj="EmptyQueryPrompt"]').exists()).toBe(false); expect(wrapper.find('[data-test-subj="NoResultsPrompt"]').exists()).toBe(false); }); @@ -92,7 +92,7 @@ describe('RelevanceTuningPreview', () => { const wrapper = shallow(); - expect(wrapper.find('[data-test-subj="EnterAQueryPrompt"]').exists()).toBe(true); + expect(wrapper.find('[data-test-subj="EmptyQueryPrompt"]').exists()).toBe(true); expect(wrapper.find('[data-test-subj="NoResultsPrompt"]').exists()).toBe(false); }); @@ -104,7 +104,7 @@ describe('RelevanceTuningPreview', () => { const wrapper = shallow(); - expect(wrapper.find('[data-test-subj="EnterAQueryPrompt"]').exists()).toBe(false); + expect(wrapper.find('[data-test-subj="EmptyQueryPrompt"]').exists()).toBe(false); expect(wrapper.find('[data-test-subj="NoResultsPrompt"]').exists()).toBe(true); }); }); diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.tsx index cc928715297ba..298b692ac7b80 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/relevance_tuning_preview.tsx @@ -20,7 +20,7 @@ import { RelevanceTuningLogic } from '.'; const emptyCallout = (