From 28c93552cb7a9c2edee097324b0fa4173440886c Mon Sep 17 00:00:00 2001 From: sarang-001 Date: Mon, 6 Jul 2026 17:27:44 +0530 Subject: [PATCH] fix(test): merge project-level use into config for actionTimeout and other options The device fixture only read top-level config.use, silently ignoring options set inside config.projects[].use like actionTimeout, appLaunchTimeout, installTimeout, and animations. Now finds the matching project by name from testInfo.project.name and merges its use into the top-level use before passing to connectDevice. --- packages/test/src/fixtures.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/test/src/fixtures.ts b/packages/test/src/fixtures.ts index 3c4adf7..dba3161 100644 --- a/packages/test/src/fixtures.ts +++ b/packages/test/src/fixtures.ts @@ -89,11 +89,14 @@ export const test = base.extend({ device: async ({ platform, deviceName, bundleId, autoAppLaunch, installApps }, use, testInfo) => { const config = await loadConfig(process.cwd(), testInfo.config.configFile); + const project = config.projects?.find(p => p.name === testInfo.project.name); + const projectUse = { ...config.use, ...project?.use }; const merged = { ...config, ...(platform && { platform }), ...(deviceName && { deviceName }), ...(installApps !== undefined && { installApps }), + use: projectUse, }; if (merged.platform !== 'ios' && merged.platform !== 'android') {