This is an automated email from the ASF dual-hosted git repository.
SbloodyS pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new b93fe2642d [Improvement-18646][E2E] Wait for datasource create dialog
by locator (#18649)
b93fe2642d is described below
commit b93fe2642df4a2d518257057327726c72438d301
Author: luxiaolong <[email protected]>
AuthorDate: Thu Sep 17 10:12:39 2026 +0800
[Improvement-18646][E2E] Wait for datasource create dialog by locator
(#18649)
---
.../dolphinscheduler/e2e/pages/datasource/DataSourcePage.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/datasource/DataSourcePage.java
b/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/datasource/DataSourcePage.java
index 63f0368f22..aa91da1fd9 100644
---
a/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/datasource/DataSourcePage.java
+++
b/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/datasource/DataSourcePage.java
@@ -66,13 +66,13 @@ public class DataSourcePage extends NavBarPage implements
NavBarPage.NavBarItem
buttonCreateDataSource().click();
WebDriverWaitFactory.createWebDriverWait(driver).until(ExpectedConditions.visibilityOf(dataSourceModal));
- WebElement dataSourceTypeButton =
By.className(dataSourceType.toUpperCase() + "-box").findElement(driver);
- WebDriverWaitFactory.createWebDriverWait(driver)
-
.until(ExpectedConditions.elementToBeClickable(dataSourceTypeButton));
+ By dataSourceTypeBox = By.className(dataSourceType.toUpperCase() +
"-box");
+ WebElement dataSourceTypeButton =
WebDriverWaitFactory.createWebDriverWait(driver)
+
.until(ExpectedConditions.elementToBeClickable(dataSourceTypeBox));
dataSourceTypeButton.click();
-
WebDriverWaitFactory.createWebDriverWait(driver).until(ExpectedConditions.textToBePresentInElement(
- driver.findElement(By.className("dialog-create-data-source")),
dataSourceType.toUpperCase()));
+
WebDriverWaitFactory.createWebDriverWait(driver).until(ExpectedConditions.textToBePresentInElementLocated(
+ By.className("dialog-create-data-source"),
dataSourceType.toUpperCase()));
createDataSourceForm().inputDataSourceName().sendKeys(dataSourceName);
createDataSourceForm().inputDataSourceDescription().sendKeys(dataSourceDescription);