Browse Source

[ci] Fix flaky test in e2e user (#7847)

* [ci] Fix flaky test in e2e user

fix: #7656

* Change class name

* Change get delete bottom function

* Correct function
3.0.0/version-upgrade
Jiajie Zhong 3 years ago committed by GitHub
parent
commit
079adc9eca
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/pages/security/TenantPage.java

5
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/security/TenantPage.java

@ -71,8 +71,11 @@ public final class TenantPage extends NavBarPage implements SecurityPage.Tab {
tenantList() tenantList()
.stream() .stream()
.filter(it -> it.getText().contains(tenant)) .filter(it -> it.getText().contains(tenant))
.flatMap(it -> it.findElements(By.className("delete")).stream())
.filter(WebElement::isDisplayed)
.findFirst() .findFirst()
.ifPresent(it -> it.findElement(By.className("delete")).click()); .orElseThrow(() -> new RuntimeException("No delete button in user list"))
.click();
buttonConfirm().click(); buttonConfirm().click();

Loading…
Cancel
Save