[E2E]Fix file manage e2e error (#8214)
This commit is contained in:
parent
6f74241100
commit
7b22c16a85
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@
|
|||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
id="fileUpdateDialog"
|
||||
:visible.sync="fileUpdateDialog"
|
||||
append-to-body="true"
|
||||
width="auto">
|
||||
|
|
|
|||
Loading…
Reference in New Issue