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

This commit is contained in:
xiangzihao 2022-01-27 14:59:22 +08:00 committed by GitHub
parent 6f74241100
commit 7b22c16a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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")

View File

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