File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 88- ** Fix** : Added ` await ` keyword: ` const baseConfig = await getConfig(options.config || testRoot) `
99- ** Impact** : Custom locator tests now pass (20 passed, 2 skipped - was 2 passed, 18 failed)
1010
11- ### 2. ⚠️ Per-Test Config with Session Mode + Workers (LIMITATION DOCUMENTED)
11+ ### 2. ✅ Browser Auto-Initialization (FIXED)
12+ ** Problem** : "Cannot navigate: browser is not running" error in ` Before() ` hooks with BROWSER_RESTART=browser
13+ - ** Root Cause** : ` Before() ` hooks run before helper's ` _before() ` method, so browser not started yet
14+ - ** File** : ` lib/helper/Playwright.js ` line 1508
15+ - ** Fix** : Allow auto-initialization when ` manualStart ` is false
16+ - ** Impact** : Tests with ` Before() ` hooks now work properly with restart=browser mode
17+
18+ ### 3. ⚠️ Per-Test Config with Session Mode + Workers (LIMITATION DOCUMENTED)
1219** Problem** : Per-test ` .config() ` doesn't work in BROWSER_RESTART=session mode with workers
1320- ** Root Cause** : ` teardown() ` afterEach hooks don't execute in worker/pool mode
1421- ** Evidence** : File logging showed config changes applied but restore callbacks never fired
2027- ** Affected Tests** : 18 tests from ` config_test.js ` and ` session_test.js `
2128- ** Workaround Applied** : Changed CI workflow to avoid the problematic combination
2229
23- ### 3 . ⚠️ Selector Registration Conflicts (NEW ISSUE)
30+ ### 4 . ⚠️ Selector Registration Conflicts (NEW ISSUE)
2431** Problem** : BROWSER_RESTART=context with workers causes selector registration conflicts
2532- ** Error** : ` browser.newContext: "__value" selector engine has been already registered `
2633- ** Root Cause** : Custom selectors are registered globally on the Playwright module instance (module-level variable)
You can’t perform that action at this time.
0 commit comments