openvidu-test-e2e: do not use headless mode for Virtual Background

pull/722/head
pabloFuente 2022-05-03 13:05:59 +02:00
parent 117e6647a9
commit 066810be17
2 changed files with 6 additions and 2 deletions

View File

@ -45,6 +45,10 @@ public class ChromeUser extends BrowserUser {
this(userName, timeOfWaitInSeconds, generateFakeVideoChromeOptions(fakeVideoLocation), true); this(userName, timeOfWaitInSeconds, generateFakeVideoChromeOptions(fakeVideoLocation), true);
} }
public ChromeUser(String userName, int timeOfWaitInSeconds, Path fakeVideoLocation, boolean headless) {
this(userName, timeOfWaitInSeconds, generateFakeVideoChromeOptions(fakeVideoLocation), headless);
}
private ChromeUser(String userName, int timeOfWaitInSeconds, ChromeOptions options, boolean headless) { private ChromeUser(String userName, int timeOfWaitInSeconds, ChromeOptions options, boolean headless) {
super(userName, timeOfWaitInSeconds); super(userName, timeOfWaitInSeconds);

View File

@ -336,9 +336,9 @@ public class OpenViduTestE2e {
browserUser = new ChromeUser("TestUser", 50, Paths.get("/opt/openvidu/barcode.y4m")); browserUser = new ChromeUser("TestUser", 50, Paths.get("/opt/openvidu/barcode.y4m"));
break; break;
case "chromeVirtualBackgroundFakeVideo": case "chromeVirtualBackgroundFakeVideo":
container = chromeContainer("selenium/standalone-chrome:" + CHROME_VERSION, 2147483648L, 1, true); container = chromeContainer("selenium/standalone-chrome:" + CHROME_VERSION, 2147483648L, 1, false);
setupBrowserAux(BrowserNames.CHROME, container, false); setupBrowserAux(BrowserNames.CHROME, container, false);
browserUser = new ChromeUser("TestUser", 50, Paths.get("/opt/openvidu/girl.mjpeg")); browserUser = new ChromeUser("TestUser", 50, Paths.get("/opt/openvidu/girl.mjpeg"), false);
break; break;
case "firefox": case "firefox":
container = firefoxContainer("selenium/standalone-firefox:" + FIREFOX_VERSION, 2147483648L, 1, true); container = firefoxContainer("selenium/standalone-firefox:" + FIREFOX_VERSION, 2147483648L, 1, true);