mirror of https://github.com/OpenVidu/openvidu.git
ov-components: Fixed e2e test config
parent
004ab046be
commit
cfd9417ee1
|
@ -10,9 +10,9 @@ interface BrowserConfig {
|
|||
browserName: string;
|
||||
}
|
||||
|
||||
const chromeArguments = ['--window-size=1024,768', '--use-fake-ui-for-media-stream', '--use-fake-device-for-media-stream'];
|
||||
const chromeArguments = ['--window-size=1280,1024', '--use-fake-ui-for-media-stream', '--use-fake-device-for-media-stream'];
|
||||
const chromeArgumentsCI = [
|
||||
'--window-size=1024,768',
|
||||
'--window-size=1280,1024',
|
||||
'--headless',
|
||||
'--no-sandbox',
|
||||
'--disable-gpu',
|
||||
|
@ -57,10 +57,9 @@ export const AngularConfig: BrowserConfig = {
|
|||
};
|
||||
|
||||
export function getBrowserOptionsWithoutDevices() {
|
||||
if(LAUNCH_MODE === 'CI') {
|
||||
if (LAUNCH_MODE === 'CI') {
|
||||
return new chrome.Options().addArguments(...chromeArgumentsWithoutMediaDevicesCI);
|
||||
} else {
|
||||
return new chrome.Options().addArguments(...chromeArgumentsWithoutMediaDevices);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -256,7 +256,7 @@ describe('Testing API Directives', () => {
|
|||
expect(await utils.isPresent('#mic_off')).to.be.true;
|
||||
});
|
||||
|
||||
it('should run the app with VIDEO MUTED and WITHOUT PREJOIN page', async () => {
|
||||
it('should run the app with AUDIO MUTED and WITHOUT PREJOIN page', async () => {
|
||||
let isAudioEnabled;
|
||||
const audioEnableScript = 'return document.getElementsByTagName("video")[0].srcObject.getAudioTracks()[0].enabled;';
|
||||
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
"@types/chai": "4.3.0",
|
||||
"@types/mocha": "9.1.0",
|
||||
"@types/node": "16.11.6",
|
||||
"@types/selenium-webdriver": "4.1.5",
|
||||
"@types/selenium-webdriver": "4.1.22",
|
||||
"@types/ws": "8.5.4",
|
||||
"chai": "4.3.6",
|
||||
"chromedriver": "114.0.2",
|
||||
"chromedriver": "122.0.5",
|
||||
"codelyzer": "6.0.2",
|
||||
"concat": "^1.0.3",
|
||||
"cross-env": "^7.0.3",
|
||||
|
@ -47,7 +47,7 @@
|
|||
"karma-notify-reporter": "1.3.0",
|
||||
"mocha": "9.2.2",
|
||||
"ng-packagr": "14.2.2",
|
||||
"selenium-webdriver": "4.5.0",
|
||||
"selenium-webdriver": "4.18.1",
|
||||
"ts-node": "10.4.0",
|
||||
"tslint": "6.1.3",
|
||||
"typescript": "4.8.4",
|
||||
|
|
Loading…
Reference in New Issue