ov-components: Fixed e2e test config

pull/744/merge
Carlos Santos 2024-04-18 17:40:37 +02:00
parent 004ab046be
commit cfd9417ee1
3 changed files with 7 additions and 8 deletions

View File

@ -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);
}
}

View File

@ -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;';

View File

@ -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",