Skip to content

Commit

Permalink
No need for retry
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Dec 7, 2020
1 parent c68604d commit b39dd7d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/functional/page_objects/visual_builder_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,10 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
}

public async waitForMarkdownTextAreaCleaned() {
await retry.waitFor('markdown text to be cleaned', async () => {
const input = await find.byCssSelector('.tvbMarkdownEditor__editor textarea');
await input.clearValueWithKeyboard();
const text = await this.getMarkdownText();
return text.length === 0;
});
const input = await find.byCssSelector('.tvbMarkdownEditor__editor textarea');
await input.clearValueWithKeyboard();
const text = await this.getMarkdownText();
return text.length === 0;
}

public async getMarkdownText(): Promise<string> {
Expand Down

0 comments on commit b39dd7d

Please sign in to comment.