Skip to content

Commit

Permalink
Make test steps wait for text editor to load
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-ians committed Nov 27, 2023
1 parent 31a994d commit 7b52e51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/labkey/test/tests/wiki/WikiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ protected void verifyWikiPagePresent()

protected void doTestInlineEditor()
{
Locator.XPathLocator inlineEditor = Locator.xpath("//div[@class='labkey-inline-editor']");
Locator.XPathLocator inlineEditor = Locator.xpath("//div[@class='labkey-inline-editor']")
.withDescendant(Locator.tagWithClassContaining("div", "tox-edit-area"));

log("** test inline wiki webpart editor");
goToProjectHome();
Expand Down Expand Up @@ -284,6 +285,7 @@ protected void setInlineEditorContent(String editorId, String content)
"editor.setContent(arguments[1]);" +
"editor.setDirty(true);" // Explicitly setDirty as the setContent doesn't by default
, editorId, content);
log(String.format("Content [%1$s] set on editor: %2$s", content, editorId));
}

@Override
Expand Down

0 comments on commit 7b52e51

Please sign in to comment.