mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: improved backdrop wait
parent
6acb28a178
commit
a666659ca0
|
|
@ -2658,12 +2658,11 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestappE2eTest {
|
||||||
if (!user.getDriver().findElement(By.cssSelector("#subtitle")).getText().equals(videoId)) {
|
if (!user.getDriver().findElement(By.cssSelector("#subtitle")).getText().equals(videoId)) {
|
||||||
// Wrong dialog
|
// Wrong dialog
|
||||||
this.waitForBackdropAndClick(user, "#close-dialog-btn");
|
this.waitForBackdropAndClick(user, "#close-dialog-btn");
|
||||||
user.getDriver().findElement(By.cssSelector("#" + videoId + " ~ .bottom-div .video-track-info"))
|
this.waitForBackdropAndClick(user, "#" + videoId + " ~ .bottom-div .video-track-info");
|
||||||
.click();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Dialog is not opened
|
// Dialog is not opened
|
||||||
user.getDriver().findElement(By.cssSelector("#" + videoId + " ~ .bottom-div .video-track-info")).click();
|
this.waitForBackdropAndClick(user, "#" + videoId + " ~ .bottom-div .video-track-info");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Thread.sleep(300);
|
Thread.sleep(300);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue