mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This commit is contained in:
parent
b1b941dd8f
commit
83a2f7b030
1 changed files with 2 additions and 1 deletions
|
@ -58,6 +58,7 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }) {
|
|||
}
|
||||
|
||||
async enterMarkdown(markdown) {
|
||||
const prevRenderingCount = await PageObjects.visualize.getVisualizationRenderingCount();
|
||||
const input = await find.byCssSelector('.tvbMarkdownEditor__editor textarea');
|
||||
// Since we use ACE editor and that isn't really storing its value inside
|
||||
// a textarea we must really select all text and remove it, and cannot use
|
||||
|
@ -70,7 +71,7 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }) {
|
|||
await input.pressKeys(browser.keys.NULL); // Release modifier keys
|
||||
await input.pressKeys(browser.keys.BACKSPACE); // Delete all content
|
||||
await input.type(markdown);
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.visualize.waitForRenderingCount(prevRenderingCount + 1);
|
||||
}
|
||||
|
||||
async getMarkdownText() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue