parent
163eca90be
commit
d79657675a
|
@ -54,8 +54,7 @@ export default function ({ getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should show index pattern suggestions for index argument', async () => {
|
||||
await PageObjects.timelion.updateExpression('index');
|
||||
await PageObjects.timelion.clickSuggestion();
|
||||
await PageObjects.timelion.updateExpression('index=');
|
||||
const suggestions = await PageObjects.timelion.getSuggestionItemsText();
|
||||
expect(suggestions.length).to.eql(1);
|
||||
expect(suggestions[0].includes('logstash-*')).to.eql(true);
|
||||
|
@ -63,8 +62,7 @@ export default function ({ getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should show field suggestions for timefield argument when index pattern set', async () => {
|
||||
await PageObjects.timelion.updateExpression(',timefield');
|
||||
await PageObjects.timelion.clickSuggestion();
|
||||
await PageObjects.timelion.updateExpression(',timefield=');
|
||||
const suggestions = await PageObjects.timelion.getSuggestionItemsText();
|
||||
expect(suggestions.length).to.eql(4);
|
||||
expect(suggestions[0].includes('@timestamp')).to.eql(true);
|
||||
|
@ -72,8 +70,7 @@ export default function ({ getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should show field suggestions for split argument when index pattern set', async () => {
|
||||
await PageObjects.timelion.updateExpression(',split');
|
||||
await PageObjects.timelion.clickSuggestion();
|
||||
await PageObjects.timelion.updateExpression(',split=');
|
||||
const suggestions = await PageObjects.timelion.getSuggestionItemsText();
|
||||
expect(suggestions.length).not.to.eql(0);
|
||||
expect(suggestions[0].includes('@message.raw')).to.eql(true);
|
||||
|
@ -81,8 +78,7 @@ export default function ({ getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should show field suggestions for metric argument when index pattern set', async () => {
|
||||
await PageObjects.timelion.updateExpression(',metric');
|
||||
await PageObjects.timelion.clickSuggestion();
|
||||
await PageObjects.timelion.updateExpression(',metric=');
|
||||
await PageObjects.timelion.updateExpression('avg:');
|
||||
await PageObjects.timelion.clickSuggestion(0);
|
||||
const suggestions = await PageObjects.timelion.getSuggestionItemsText();
|
||||
|
|
Loading…
Reference in a new issue