Skip to content

Commit e909cda

Browse files
authored
fix: reduce Firefox's concurrency to 1 to avoid unreliable focus (#35)
1 parent 7101f53 commit e909cda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/wtr-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export class WTRConfig {
213213
if (!Array.isArray(browsers)) throw new TypeError('browsers must be an array');
214214

215215
return browsers.map((b) => playwrightLauncher({
216+
concurrency: b === 'firefox' ? 1 : undefined, // focus in Firefox unreliable if concurrency > 1 (https://github.com/modernweb-dev/web/issues/238)
216217
product: b,
217218
createBrowserContext: ({ browser }) => browser.newContext({ deviceScaleFactor: 2, reducedMotion: 'reduce' })
218219
}));

0 commit comments

Comments
 (0)