openvidu-server-e2e: check video non-filtered color after removing applied filter

pull/108/merge
pabloFuente 2018-08-27 13:20:58 +02:00
parent 12ae8683c9
commit e72a4a1f68
1 changed files with 6 additions and 0 deletions

View File

@ -1342,6 +1342,12 @@ public class OpenViduTestAppE2eTest {
user.getWaiter().until( user.getWaiter().until(
ExpectedConditions.attributeContains(By.id("filter-response-text-area"), "value", "Filter removed")); ExpectedConditions.attributeContains(By.id("filter-response-text-area"), "value", "Filter removed"));
user.getEventManager().waitUntilEventReaches("streamPropertyChanged", 6); user.getEventManager().waitUntilEventReaches("streamPropertyChanged", 6);
Thread.sleep(1000);
// Analyze Chrome fake video stream with gray filter (GREEN color)
rgb = user.getEventManager().getAverageRgbFromVideo(subscriberVideo);
System.out.println(rgb.toString());
Assert.assertTrue(checkVideoAverageRgbGreen(rgb));
user.getDriver().findElement(By.id("close-dialog-btn")).click(); user.getDriver().findElement(By.id("close-dialog-btn")).click();
gracefullyLeaveParticipants(2); gracefullyLeaveParticipants(2);