Skip to content

Commit

Permalink
ov-components: Fixed e2e test config
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Apr 18, 2024
1 parent 004ab04 commit cfd9417
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions openvidu-components-angular/e2e/selenium.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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);
}
}

2 changes: 1 addition & 1 deletion openvidu-components-angular/e2e/webcomponent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;';

Expand Down
6 changes: 3 additions & 3 deletions openvidu-components-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit cfd9417

Please sign in to comment.