Skip to content

Commit

Permalink
tests: Parametrized app url
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Feb 11, 2025
1 parent 4ac3cb4 commit 54ecfff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/e2e/config.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export const LAUNCH_MODE = process.env.LAUNCH_MODE || 'DEV';
export const APP_URL = process.env.APP_URL || 'http://localhost:5080';
export const EDITION = process.env.EDITION || 'CE';
4 changes: 2 additions & 2 deletions frontend/e2e/selenium.conf.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Capabilities } from 'selenium-webdriver';
import * as chrome from 'selenium-webdriver/chrome.js';
import { LAUNCH_MODE } from './config.js';
import { APP_URL, LAUNCH_MODE } from './config.js';

interface BrowserConfig {
appUrl: string;
Expand Down Expand Up @@ -33,7 +33,7 @@ const chromeArgumentsCI = [
const chromeOptions: chrome.Options = new chrome.Options();
chromeOptions.addArguments(...(LAUNCH_MODE === 'CI' ? chromeArgumentsCI : chromeArguments));
export const OpenViduCallConfig: BrowserConfig = {
appUrl: LAUNCH_MODE === 'CI' ? 'http://localhost:6080' : 'http://localhost:5080',
appUrl: APP_URL,
seleniumAddress: LAUNCH_MODE === 'CI' ? 'http://localhost:4444/wd/hub' : '',
browserName: 'ChromeTest',
browserCapabilities: Capabilities.chrome().set('acceptInsecureCerts', true),
Expand Down

0 comments on commit 54ecfff

Please sign in to comment.