From eb572bf3ef2f7c5d058f94f1efb735c1c8f91b61 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 14 May 2025 14:25:44 +0200 Subject: [PATCH] test: add launchOptions to Playwright configuration for improved media stream handling --- frontend/webcomponent/playwright.config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/webcomponent/playwright.config.ts b/frontend/webcomponent/playwright.config.ts index 6b8ca54..29ac35d 100644 --- a/frontend/webcomponent/playwright.config.ts +++ b/frontend/webcomponent/playwright.config.ts @@ -13,6 +13,15 @@ export default defineConfig({ viewport: { width: 1280, height: 720 }, ignoreHTTPSErrors: true, permissions: ['camera', 'microphone'], - video: 'retain-on-failure' + video: 'retain-on-failure', + launchOptions: { + args: [ + '--use-fake-ui-for-media-stream', + '--use-fake-device-for-media-stream', + '--allow-file-access-from-files', // Allows file access from local files + '--no-sandbox', + '--disable-dev-shm-usage' + ] + } } });