Browse Source

[E2E]Fix file manage e2e error (#8214)

3.0.0/version-upgrade
xiangzihao 3 years ago committed by GitHub
parent
commit
7b22c16a85
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/FileManageE2ETest.java
  2. 1
      dolphinscheduler-ui/src/js/module/components/nav/nav.vue

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

@ -37,6 +37,7 @@ import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.util.Comparator;
import org.junit.jupiter.api.AfterAll;
@ -46,6 +47,8 @@ import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import lombok.SneakyThrows;
@ -289,6 +292,8 @@ public class FileManageE2ETest {
page.uploadFile(testUnder1GBFilePath.toFile().getAbsolutePath());
new WebDriverWait(browser, 10).until(ExpectedConditions.invisibilityOfElementLocated(By.id("fileUpdateDialog")));
await().untilAsserted(() -> {
assertThat(page.fileList())
.as("File list should contain newly-created file")

1
dolphinscheduler-ui/src/js/module/components/nav/nav.vue

@ -144,6 +144,7 @@
</el-dialog>
<el-dialog
id="fileUpdateDialog"
:visible.sync="fileUpdateDialog"
append-to-body="true"
width="auto">

Loading…
Cancel
Save