openvidu-test-e2e: videoFilterTest wait for modal to open

pull/375/head
pabloFuente 2019-06-18 11:56:15 +02:00
parent 4985847511
commit d07d2055ea
1 changed files with 3 additions and 4 deletions

View File

@ -704,7 +704,6 @@ public class OpenViduTestAppE2eTest {
for (WebElement el : publishButtons) { for (WebElement el : publishButtons) {
el.click(); el.click();
Thread.sleep(1000);
} }
user.getEventManager().waitUntilEventReaches("streamCreated", 8); user.getEventManager().waitUntilEventReaches("streamCreated", 8);
@ -1720,12 +1719,12 @@ public class OpenViduTestAppE2eTest {
// Try to apply none allowed filter // Try to apply none allowed filter
user.getDriver().findElement(By.cssSelector(".filter-btn")).click(); user.getDriver().findElement(By.cssSelector(".filter-btn")).click();
Thread.sleep(1000);
WebElement filterTypeInput = user.getDriver().findElement(By.id("filter-type-field")); WebElement filterTypeInput = user.getDriver().findElement(By.id("filter-type-field"));
filterTypeInput.clear(); filterTypeInput.clear();
filterTypeInput.sendKeys("NotAllowedFilter"); filterTypeInput.sendKeys("NotAllowedFilter");
Thread.sleep(1000);
user.getDriver().findElement(By.id("apply-filter-btn")).click(); user.getDriver().findElement(By.id("apply-filter-btn")).click();
user.getWaiter().until(ExpectedConditions.attributeContains(By.id("filter-response-text-area"), "value", user.getWaiter().until(ExpectedConditions.attributeContains(By.id("filter-response-text-area"), "value",
"Error [You don't have permissions to apply a filter]")); "Error [You don't have permissions to apply a filter]"));