From e2a7b5364f221576eeb787ccad5303ba4f501401 Mon Sep 17 00:00:00 2001 From: 4gray <4gray@users.noreply.github.com> Date: Fri, 12 Jun 2026 14:23:36 +0200 Subject: [PATCH] test(electron): allow local EPG mocks in E2E Co-authored-by: 4gray --- .github/workflows/e2e-tests.yaml | 1 + apps/electron-backend-e2e/src/electron-test-fixtures.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index b3ef0012c..7190a00bd 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -13,6 +13,7 @@ jobs: name: Electron E2E on ${{ matrix.os }} runs-on: ${{ matrix.os }} env: + IPTVNATOR_ALLOW_PRIVATE_NETWORK_URLS: '1' NX_SKIP_NX_CACHE: true strategy: fail-fast: false diff --git a/apps/electron-backend-e2e/src/electron-test-fixtures.ts b/apps/electron-backend-e2e/src/electron-test-fixtures.ts index 9589992ad..62f365b24 100644 --- a/apps/electron-backend-e2e/src/electron-test-fixtures.ts +++ b/apps/electron-backend-e2e/src/electron-test-fixtures.ts @@ -141,6 +141,9 @@ export async function launchElectronApp( args, env: { ...process.env, + // Electron E2E uses local mock HTTP servers for playlists, portals, and EPG sources. + IPTVNATOR_ALLOW_PRIVATE_NETWORK_URLS: + process.env['IPTVNATOR_ALLOW_PRIVATE_NETWORK_URLS'] ?? '1', ...options.env, ELECTRON_IS_DEV: '0', IPTVNATOR_E2E_DATA_DIR: dataDir,