diff --git a/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/common/CodeEditor.java b/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/common/CodeEditor.java index 8adbb06b4b..6fe3f5e3e8 100644 --- a/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/common/CodeEditor.java +++ b/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/common/CodeEditor.java @@ -81,6 +81,7 @@ public final class CodeEditor { .click() .sendKeys(inputContent) .sendKeys(Constants.LINE_SEPARATOR) + .pause(Constants.DEFAULT_SLEEP_SECONDS) .perform(); continue; } else { @@ -93,6 +94,7 @@ public final class CodeEditor { .click() .sendKeys(inputContent) .sendKeys(Constants.LINE_SEPARATOR) + .pause(Constants.DEFAULT_SLEEP_SECONDS) .perform(); } else { for (int p = 0 ; p < editorLineText.strip().length(); p++) { @@ -105,12 +107,14 @@ public final class CodeEditor { .click() .sendKeys(inputContent) .sendKeys(Constants.LINE_SEPARATOR) + .pause(Constants.DEFAULT_SLEEP_SECONDS) .perform(); } } else { actions.moveToElement(editor.get(i)) .click() .sendKeys(Constants.LINE_SEPARATOR) + .pause(Constants.DEFAULT_SLEEP_SECONDS) .perform(); } } diff --git a/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/Constants.java b/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/Constants.java index a96d16164f..41051af3e1 100644 --- a/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/Constants.java +++ b/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/Constants.java @@ -40,4 +40,6 @@ public final class Constants { public static final String SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH = "/home/seluser/Downloads"; public static final String LINE_SEPARATOR = "\n"; + + public static final long DEFAULT_SLEEP_SECONDS = 500; }