Browse Source

fix_flaky_worker_group_e2e_test (#8237)

3.0.0/version-upgrade
xiangzihao 3 years ago committed by GitHub
parent
commit
1ce5b5d82d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkerGroupE2ETest.java

5
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkerGroupE2ETest.java

@ -34,6 +34,8 @@ import org.junit.jupiter.api.Test;
import org.openqa.selenium.By; import org.openqa.selenium.By;
import org.openqa.selenium.WebElement; import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
@DolphinScheduler(composeFiles = "docker/basic/docker-compose.yaml") @DolphinScheduler(composeFiles = "docker/basic/docker-compose.yaml")
class WorkerGroupE2ETest { class WorkerGroupE2ETest {
@ -55,6 +57,9 @@ class WorkerGroupE2ETest {
void testCreateWorkerGroup() { void testCreateWorkerGroup() {
final WorkerGroupPage page = new WorkerGroupPage(browser); final WorkerGroupPage page = new WorkerGroupPage(browser);
new WebDriverWait(page.driver(), 10)
.until(ExpectedConditions.urlContains("/#/security/worker-groups"));
page.create(workerGroupName); page.create(workerGroupName);
await().untilAsserted(() -> { await().untilAsserted(() -> {

Loading…
Cancel
Save