Skip to content

Commit 98113ee

Browse files
authored
[Functional] Fixes cloud failures on TSVB markdown (#77158)
* [TSVB] Remove the char by char typing on markodown * revert * Add the markdown to be computed immediately and give some time to compute it * Add retry to locate TSVB tabs
1 parent 1ab229a commit 98113ee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/functional/page_objects/visual_builder_page.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
5858
}
5959

6060
public async checkTabIsLoaded(testSubj: string, name: string) {
61-
const isPresent = await testSubjects.exists(testSubj, { timeout: 10000 });
61+
let isPresent = false;
62+
await retry.try(async () => {
63+
isPresent = await testSubjects.exists(testSubj, { timeout: 20000 });
64+
});
6265
if (!isPresent) {
6366
throw new Error(`TSVB ${name} tab is not loaded`);
6467
}
@@ -130,8 +133,8 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
130133
public async enterMarkdown(markdown: string) {
131134
const input = await find.byCssSelector('.tvbMarkdownEditor__editor textarea');
132135
await this.clearMarkdown();
133-
await input.type(markdown, { charByChar: true });
134-
await PageObjects.visChart.waitForVisualizationRenderingStabilized();
136+
await input.type(markdown);
137+
await PageObjects.common.sleep(3000);
135138
}
136139

137140
public async clearMarkdown() {

0 commit comments

Comments
 (0)