snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
18
tests/wdio.grid.firefox.conf.ts
Normal file
18
tests/wdio.grid.firefox.conf.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// wdio.grid.conf.ts
|
||||
// extends the main configuration file to add the selenium grid address
|
||||
import { URL } from 'url';
|
||||
|
||||
// @ts-ignore
|
||||
import { config as defaultConfig } from './wdio.firefox.conf.ts';
|
||||
|
||||
const gridUrl = new URL(process.env.GRID_HOST_URL as string);
|
||||
const protocol = gridUrl.protocol.replace(':', '');
|
||||
|
||||
export const config = {
|
||||
...defaultConfig,
|
||||
protocol,
|
||||
hostname: gridUrl.hostname,
|
||||
port: gridUrl.port ? parseInt(gridUrl.port, 10) // Convert port to number
|
||||
: protocol === 'http' ? 80 : 443,
|
||||
path: gridUrl.pathname
|
||||
};
|
||||
Reference in New Issue
Block a user