openvidu-test-e2e: fix test wait

v2
pabloFuente 2025-11-07 22:55:16 +01:00
parent 7ad39d423d
commit 770ffaeed6
1 changed files with 5 additions and 3 deletions

View File

@ -453,9 +453,11 @@ public class OpenViduMobileE2eTest extends AbstractOpenViduTestappE2eTest {
Assertions.assertTrue(checkAverageRgbGreen(rgb), "Remote video is not average green");
appiumDriver.findElement(By.id("start_finish_call")).click();
androidUser.getWaiter().until(
ExpectedConditions.elementToBeClickable(appiumDriver.findElement(By.id("openvidu_url"))));
Assertions.assertTrue(appiumDriver.findElement(By.id("openvidu_url")).isEnabled());
// Wait for the form to be visible again after leaving the session
WebElement urlInputAfterLeave = androidUser.getWaiter().until(
ExpectedConditions.elementToBeClickable(By.id("openvidu_url")));
Assertions.assertTrue(urlInputAfterLeave.isEnabled());
chromeUser.getEventManager().waitUntilEventReaches("streamDestroyed", 1);
chromeUser.getEventManager().waitUntilEventReaches("connectionDestroyed", 1);