From c34fe4f9b3202efacdc74fda9685b1c202850b8b Mon Sep 17 00:00:00 2001 From: xiangzihao <460888207@qq.com> Date: Fri, 22 Jul 2022 05:51:26 +0800 Subject: [PATCH] Try to fix filemanage e2e flaky test (#11097) --- .../dolphinscheduler/e2e/pages/resource/FileManagePage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/resource/FileManagePage.java b/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/resource/FileManagePage.java index f38bab003c..f8f2c01a38 100644 --- a/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/resource/FileManagePage.java +++ b/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/resource/FileManagePage.java @@ -186,7 +186,7 @@ public class FileManagePage extends NavBarPage implements ResourcePage.Tab { new WebDriverWait(driver, 5).until(ExpectedConditions.urlContains("/edit")); - new WebDriverWait(driver, 5).until((ExpectedCondition) webDriver -> editor.getText().length() > 0); + new WebDriverWait(driver, 5).until(ExpectedConditions.textToBePresentInElement(driver.findElementByTagName("body"), fileName)); editFileBox().codeEditor().content(scripts); editFileBox().buttonSubmit().click();