SbloodyS commented on code in PR #18673:
URL: 
https://github.com/apache/dolphinscheduler/pull/18673#discussion_r4244314116


##########
.github/workflows/frontend.yml:
##########
@@ -89,6 +89,10 @@ jobs:
             echo "Code format check failed! Please run \`pnpm run lint\` to 
format the code."
             exit -1
           fi
+      - name: Task execution type regressions

Review Comment:
   We don't need this.



##########
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/project/workflow/WorkflowForm.java:
##########
@@ -110,6 +121,84 @@ public WebElement getTask(String taskName) {
         return task;
     }
 
+    public String taskCode(String taskName) {
+        return WebDriverWaitFactory.createWebDriverWait(driver).until(unused 
-> driver
+                .findElements(By.cssSelector(".dag-container 
.x6-graph-scroller g[data-shape='dag-task']")).stream()
+                .filter(node -> 
node.findElement(By.xpath("./*[local-name()='text']")).getText()
+                        .equals(taskName))
+                .map(node -> node.getAttribute("data-cell-id"))
+                .findFirst().orElse(null));
+    }
+
+    private WebElement taskBodyInView(String code) {
+        By body = By.cssSelector(".dag-container .x6-graph-scroller 
g[data-shape='dag-task'][data-cell-id='"
+                + code + "'] > .dag-task-body");
+        return WebDriverWaitFactory.createWebDriverWait(driver)
+                .withMessage("Task body is hidden or its center is covered: " 
+ code).until(unused -> {
+                    WebElement node = 
ExpectedConditions.visibilityOfElementLocated(body).apply(driver);
+                    if (node == null) {
+                        return null;
+                    }
+                    // Require an unclipped center so the hit test matches the 
native pointer location.
+                    boolean target = Boolean.TRUE.equals(((JavascriptExecutor) 
driver).executeScript(

Review Comment:
   JS like this is forbidden.



##########
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowSeaTunnelE2ETest.java:
##########
@@ -0,0 +1,190 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dolphinscheduler.e2e.cases;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.apache.dolphinscheduler.e2e.core.DolphinScheduler;
+import org.apache.dolphinscheduler.e2e.core.WebDriverWaitFactory;
+import org.apache.dolphinscheduler.e2e.models.users.AdminUser;
+import org.apache.dolphinscheduler.e2e.pages.LoginPage;
+import org.apache.dolphinscheduler.e2e.pages.project.ProjectPage;
+import org.apache.dolphinscheduler.e2e.pages.project.workflow.TaskInstanceTab;
+import 
org.apache.dolphinscheduler.e2e.pages.project.workflow.WorkflowDefinitionTab;
+import org.apache.dolphinscheduler.e2e.pages.project.workflow.WorkflowForm;
+import 
org.apache.dolphinscheduler.e2e.pages.project.workflow.task.SeaTunnelTaskForm;
+import 
org.apache.dolphinscheduler.e2e.pages.project.workflow.task.ShellTaskForm;
+import org.apache.dolphinscheduler.e2e.pages.security.SecurityPage;
+import org.apache.dolphinscheduler.e2e.pages.security.TenantPage;
+import org.apache.dolphinscheduler.e2e.pages.security.UserPage;
+
+import java.time.Duration;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+import org.junit.jupiter.api.Order;
+import org.junit.jupiter.api.Test;
+import org.openqa.selenium.By;
+import org.openqa.selenium.StaleElementReferenceException;
+import org.openqa.selenium.remote.RemoteWebDriver;
+import org.openqa.selenium.support.ui.ExpectedConditions;
+
+@DolphinScheduler(composeFiles = "docker/basic/docker-compose.yaml")
+class WorkflowSeaTunnelE2ETest {

Review Comment:
   This is a fake e2e test. The principle of e2e is to verify the real user 
scenario, which did not start the seatunnel task.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to