mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: Ignore videoDimensions event in filter event test.
parent
8b27191378
commit
206a44d881
|
@ -1009,6 +1009,8 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestappE2eTest {
|
|||
// Filter
|
||||
final CountDownLatch latch3 = new CountDownLatch(2);
|
||||
user.getEventManager().on("streamPropertyChanged", (event) -> {
|
||||
// As chrome may change video dimensions, ignore video dimensions event
|
||||
if (!"videoDimensions".equals(event.get("changedProperty").getAsString())) {
|
||||
threadAssertions.add("filter".equals(event.get("changedProperty").getAsString()));
|
||||
threadAssertions.add("applyFilter".equals(event.get("reason").getAsString()));
|
||||
threadAssertions.add(!event.has("oldValue"));
|
||||
|
@ -1017,6 +1019,8 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestappE2eTest {
|
|||
JsonObject options = newValue.get("options").getAsJsonObject();
|
||||
threadAssertions.add("videobalance saturation=0.0".equals(options.get("command").getAsString()));
|
||||
latch3.countDown();
|
||||
}
|
||||
|
||||
});
|
||||
user.getDriver().findElement(By.cssSelector("#openvidu-instance-0 .filter-btn")).click();
|
||||
Thread.sleep(1000);
|
||||
|
|
Loading…
Reference in New Issue