mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Discover] Update _sidebar_field_stats.ts to make upgrade tests pass (#206928)
The upgrade test was failing due the following synthx that does work in 8.x but not in 9.0: `[METADATA _index, _id]` This commit removes the brackets around the METADATA to make this work
This commit is contained in:
parent
f97c8b2092
commit
6b9e8344f5
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
await discover.selectTextBaseLang();
|
||||
|
||||
const testQuery = `from logstash-* [METADATA _index, _id] | sort @timestamp desc | limit 500`;
|
||||
const testQuery = `from logstash-* METADATA _index, _id | sort @timestamp desc | limit 500`;
|
||||
await monacoEditor.setCodeEditorValue(testQuery);
|
||||
await testSubjects.click('querySubmitButton');
|
||||
await header.waitUntilLoadingHasFinished();
|
||||
|
@ -172,7 +172,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await unifiedFieldList.clickFieldListExistsFilter('@timestamp');
|
||||
const editorValue = await monacoEditor.getCodeEditorValue();
|
||||
expect(editorValue).to.eql(
|
||||
`from logstash-* [METADATA _index, _id] | sort @timestamp desc | limit 500\n| WHERE \`@timestamp\` is not null`
|
||||
`from logstash-* METADATA _index, _id | sort @timestamp desc | limit 500\n| WHERE \`@timestamp\` is not null`
|
||||
);
|
||||
await testSubjects.missingOrFail('dscFieldStats-statsFooter');
|
||||
await unifiedFieldList.closeFieldPopover();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue