Skip to content

Commit

Permalink
Use EmptyQueryPrompt for data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Mar 4, 2021
1 parent 47b25b4 commit eaf97ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down Expand Up @@ -92,7 +92,7 @@ describe('RelevanceTuningPreview', () => {

const wrapper = shallow(<RelevanceTuningPreview />);

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);
});

Expand All @@ -104,7 +104,7 @@ describe('RelevanceTuningPreview', () => {

const wrapper = shallow(<RelevanceTuningPreview />);

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);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { RelevanceTuningLogic } from '.';

const emptyCallout = (
<EuiEmptyPrompt
data-test-subj="EnterAQueryPrompt"
data-test-subj="EmptyQueryPrompt"
body={i18n.translate(
'xpack.enterpriseSearch.appSearch.engine.relevanceTuning.preview.enterQueryMessage',
{
Expand Down

0 comments on commit eaf97ea

Please sign in to comment.