mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: active wait time in publish-unpublish test
parent
b5698a75dc
commit
65fb9505e9
|
@ -637,6 +637,7 @@ public class OpenViduTestAppE2eTest {
|
|||
|
||||
for (WebElement el : publishButtons) {
|
||||
el.click();
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
|
||||
user.getEventManager().waitUntilEventReaches("videoPlaying", 8);
|
||||
|
@ -765,7 +766,8 @@ public class OpenViduTestAppE2eTest {
|
|||
return new ExpectedCondition<Boolean>() {
|
||||
@Override
|
||||
public Boolean apply(WebDriver input) {
|
||||
return element.getAttribute("duration").matches(durationInSeconds - 1 + "\\.9[0-9]{0,5}|" + durationInSeconds + "\\.[0-1][0-9]{0,5}");
|
||||
return element.getAttribute("duration")
|
||||
.matches(durationInSeconds - 1 + "\\.9[0-9]{0,5}|" + durationInSeconds + "\\.[0-1][0-9]{0,5}");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue