mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: new ChromeDriver rollback
parent
a68e831d29
commit
4153b41b5f
|
@ -2009,7 +2009,8 @@ public class OpenViduTestAppE2eTest {
|
||||||
Assert.assertTrue("Videos were expected to have audio and video tracks", user.getEventManager()
|
Assert.assertTrue("Videos were expected to have audio and video tracks", user.getEventManager()
|
||||||
.assertMediaTracks(user.getDriver().findElements(By.tagName("video")), true, true));
|
.assertMediaTracks(user.getDriver().findElements(By.tagName("video")), true, true));
|
||||||
|
|
||||||
Assert.assertTrue("Session.fetch() should return true after users connected", session.fetch());
|
Assert.assertTrue("Session.fetch() should return true after users connected", OV.fetch());
|
||||||
|
Assert.assertFalse("Session.fetch() should return false after OpenVidu.fetch() has been called", session.fetch());
|
||||||
|
|
||||||
// Verify that users have the role and data they were assigned through
|
// Verify that users have the role and data they were assigned through
|
||||||
// TokenOptions
|
// TokenOptions
|
||||||
|
|
|
@ -41,6 +41,7 @@ public class ChromeAndroidUser extends BrowserUser {
|
||||||
|
|
||||||
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
|
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
|
||||||
capabilities.setAcceptInsecureCerts(true);
|
capabilities.setAcceptInsecureCerts(true);
|
||||||
|
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
|
||||||
|
|
||||||
// This flag avoids to grant the user media
|
// This flag avoids to grant the user media
|
||||||
chromeOptions.addArguments("--use-fake-ui-for-media-stream");
|
chromeOptions.addArguments("--use-fake-ui-for-media-stream");
|
||||||
|
@ -57,7 +58,7 @@ public class ChromeAndroidUser extends BrowserUser {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("Using local web driver");
|
log.info("Using local web driver");
|
||||||
this.driver = new ChromeDriver(chromeOptions);
|
this.driver = new ChromeDriver(capabilities);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.driver.manage().timeouts().setScriptTimeout(this.timeOfWaitInSeconds, TimeUnit.SECONDS);
|
this.driver.manage().timeouts().setScriptTimeout(this.timeOfWaitInSeconds, TimeUnit.SECONDS);
|
||||||
|
|
|
@ -47,6 +47,7 @@ public class ChromeUser extends BrowserUser {
|
||||||
super(userName, timeOfWaitInSeconds);
|
super(userName, timeOfWaitInSeconds);
|
||||||
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
|
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
|
||||||
capabilities.setAcceptInsecureCerts(true);
|
capabilities.setAcceptInsecureCerts(true);
|
||||||
|
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
|
||||||
|
|
||||||
String REMOTE_URL = System.getProperty("REMOTE_URL_CHROME");
|
String REMOTE_URL = System.getProperty("REMOTE_URL_CHROME");
|
||||||
if (REMOTE_URL != null) {
|
if (REMOTE_URL != null) {
|
||||||
|
@ -58,7 +59,7 @@ public class ChromeUser extends BrowserUser {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("Using local web driver");
|
log.info("Using local web driver");
|
||||||
this.driver = new ChromeDriver(options);
|
this.driver = new ChromeDriver(capabilities);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.driver.manage().timeouts().setScriptTimeout(this.timeOfWaitInSeconds, TimeUnit.SECONDS);
|
this.driver.manage().timeouts().setScriptTimeout(this.timeOfWaitInSeconds, TimeUnit.SECONDS);
|
||||||
|
|
Loading…
Reference in New Issue