diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index ebfb68a..f75f658 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -1,5 +1,8 @@ import { defineConfig } from "@playwright/test"; +const channel = process.env.PLAYWRIGHT_CHANNEL?.trim(); +const executablePath = process.env.PLAYWRIGHT_EXECUTABLE_PATH?.trim(); + export default defineConfig({ testDir: "./tests/e2e", fullyParallel: false, @@ -10,7 +13,8 @@ export default defineConfig({ }, use: { baseURL: "http://127.0.0.1:4173", - channel: "msedge", + ...(channel ? { channel } : {}), + ...(executablePath ? { launchOptions: { executablePath } } : {}), headless: true, viewport: { width: 1440, height: 900 }, screenshot: "only-on-failure",