forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix KQL autocomplete value suggestions (elastic#78676)
- Loading branch information
1 parent
7e8798e
commit 4daee2a
Showing
6 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
src/plugins/data/public/ui/typeahead/__snapshots__/suggestion_component.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
import { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default function ({ getService, getPageObjects }: FtrProviderContext) { | ||
const esArchiver = getService('esArchiver'); | ||
const queryBar = getService('queryBar'); | ||
const PageObjects = getPageObjects(['common']); | ||
|
||
describe('value suggestions', function describeIndexTests() { | ||
before(async function () { | ||
await esArchiver.loadIfNeeded('logstash_functional'); | ||
await esArchiver.load('dashboard/drilldowns'); | ||
await PageObjects.common.navigateToApp('discover'); | ||
}); | ||
|
||
after(async () => { | ||
await esArchiver.unload('dashboard/drilldowns'); | ||
}); | ||
|
||
it('show up', async () => { | ||
await queryBar.setQuery('extension.raw : '); | ||
const suggestions = await queryBar.getSuggestions(); | ||
expect(suggestions.length).to.be(5); | ||
expect(suggestions).to.contain('"jpg"'); | ||
}); | ||
}); | ||
} |