mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fixes flakiness in timelion viz functional test (#112805)
* Fixes flakiness in timelion viz functional test * Add sleep
This commit is contained in:
parent
1456257a73
commit
6bf766abb9
1 changed files with 5 additions and 2 deletions
|
@ -277,17 +277,20 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
it('should show field suggestions for split argument when index pattern set', async () => {
|
||||
await monacoEditor.setCodeEditorValue('');
|
||||
await monacoEditor.typeCodeEditorValue(
|
||||
'.es(index=logstash-*, timefield=@timestamp ,split=',
|
||||
'.es(index=logstash-*, timefield=@timestamp, split=',
|
||||
'timelionCodeEditor'
|
||||
);
|
||||
// wait for split fields to load
|
||||
await common.sleep(300);
|
||||
const suggestions = await timelion.getSuggestionItemsText();
|
||||
|
||||
expect(suggestions.length).not.to.eql(0);
|
||||
expect(suggestions[0].includes('@message.raw')).to.eql(true);
|
||||
});
|
||||
|
||||
it('should show field suggestions for metric argument when index pattern set', async () => {
|
||||
await monacoEditor.typeCodeEditorValue(
|
||||
'.es(index=logstash-*, timefield=@timestamp ,metric=avg:',
|
||||
'.es(index=logstash-*, timefield=@timestamp, metric=avg:',
|
||||
'timelionCodeEditor'
|
||||
);
|
||||
const suggestions = await timelion.getSuggestionItemsText();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue