[Timelion app] Stabilize the flakiness in cloud (#106826) (#106952)

This commit is contained in:
Stratoula Kalafateli 2021-07-28 11:28:05 +03:00 committed by GitHub
parent 163eca90be
commit d79657675a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();