mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: unique user screen share + audio fix
parent
2dbe1e3902
commit
7ed817cb64
|
@ -116,6 +116,8 @@ public class OpenViduTestAppE2eTest {
|
||||||
case "chromeAndroid":
|
case "chromeAndroid":
|
||||||
this.user = new ChromeAndroidUser("TestUser", 50);
|
this.user = new ChromeAndroidUser("TestUser", 50);
|
||||||
break;
|
break;
|
||||||
|
case "chromeAlternateScreenShare":
|
||||||
|
this.user = new ChromeUser("TestUser", 50, "OpenVidu TestApp");
|
||||||
default:
|
default:
|
||||||
this.user = new ChromeUser("TestUser", 50);
|
this.user = new ChromeUser("TestUser", 50);
|
||||||
}
|
}
|
||||||
|
@ -774,7 +776,7 @@ public class OpenViduTestAppE2eTest {
|
||||||
|
|
||||||
Queue<Boolean> threadAssertions = new ConcurrentLinkedQueue<Boolean>();
|
Queue<Boolean> threadAssertions = new ConcurrentLinkedQueue<Boolean>();
|
||||||
|
|
||||||
setupBrowser("chrome");
|
setupBrowser("chromeAlternateScreenShare");
|
||||||
|
|
||||||
log.info("Stream property changed event");
|
log.info("Stream property changed event");
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,11 @@ public class ChromeUser extends BrowserUser {
|
||||||
|
|
||||||
public ChromeUser(String userName, int timeOfWaitInSeconds) {
|
public ChromeUser(String userName, int timeOfWaitInSeconds) {
|
||||||
super(userName, timeOfWaitInSeconds);
|
super(userName, timeOfWaitInSeconds);
|
||||||
|
new ChromeUser(userName, timeOfWaitInSeconds, "Entire screen");
|
||||||
|
}
|
||||||
|
|
||||||
|
public ChromeUser(String userName, int timeOfWaitInSeconds, String screenToCapture) {
|
||||||
|
super(userName, timeOfWaitInSeconds);
|
||||||
|
|
||||||
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
|
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
|
||||||
capabilities.setAcceptInsecureCerts(true);
|
capabilities.setAcceptInsecureCerts(true);
|
||||||
|
@ -42,7 +47,7 @@ public class ChromeUser extends BrowserUser {
|
||||||
// This flag fakes user media with synthetic video
|
// This flag fakes user media with synthetic video
|
||||||
options.addArguments("--use-fake-device-for-media-stream");
|
options.addArguments("--use-fake-device-for-media-stream");
|
||||||
// This flag selects the entire screen as video source when screen sharing
|
// This flag selects the entire screen as video source when screen sharing
|
||||||
options.addArguments("--auto-select-desktop-capture-source=OpenVidu TestApp");
|
options.addArguments("--auto-select-desktop-capture-source=" + screenToCapture);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Add Screen Sharing extension
|
// Add Screen Sharing extension
|
||||||
|
|
Loading…
Reference in New Issue