Skip to content

Commit

Permalink
[Functional Tests] Increase waitTime for timelion to fetch the results
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jul 27, 2020
1 parent 9656cbc commit d4f3610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/page_objects/timelion_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function TimelionPageProvider({ getService, getPageObjects }: FtrProvider
public async updateExpression(updates: string) {
const input = await testSubjects.find('timelionExpressionTextArea');
await input.type(updates);
await PageObjects.common.sleep(500);
await PageObjects.common.sleep(1000);
}

public async getExpression() {
Expand All @@ -60,7 +60,7 @@ export function TimelionPageProvider({ getService, getPageObjects }: FtrProvider
return await Promise.all(elements.map(async (element) => await element.getVisibleText()));
}

public async clickSuggestion(suggestionIndex = 0, waitTime = 500) {
public async clickSuggestion(suggestionIndex = 0, waitTime = 1000) {
const elements = await testSubjects.findAll('timelionSuggestionListItem');
if (suggestionIndex > elements.length) {
throw new Error(
Expand Down

0 comments on commit d4f3610

Please sign in to comment.