chore: Upgrade to latest wdio - #2212
Conversation
``` [chrome 152.0.7977.64 linux #0-4] 1) Browser matchers should verify not localStorage item with options [chrome 152.0.7977.64 linux #0-4] Cannot access 'expect' before initialization [chrome 152.0.7977.64 linux #0-4] ReferenceError: Cannot access 'expect' before initialization [chrome 152.0.7977.64 linux #0-4] at Object.expect (/home/runner/work/expect-webdriverio/expect-webdriverio/lib/index.js:1:1) [chrome 152.0.7977.64 linux #0-4] at Object.get [as expect] (/home/runner/work/expect-webdriverio/expect-webdriverio/lib/index.js:2:648) [chrome 152.0.7977.64 linux #0-4] at Object.toHaveLocalStorageItem (/home/runner/work/expect-webdriverio/expect-webdriverio/lib/matchers/browser/toHaveLocalStorageItem.js:17:20) [chrome 152.0.7977.64 linux #0-4] at async Context.<anonymous> (/home/runner/work/expect-webdriverio/expect-webdriverio/playgrounds/mocha/test/specs/wdio-matchers.test.ts:33:13) ```
|
@greptileai, can you help me find the cause of this problem mentioned in webdriverio/webdriverio#15589 (comment) that is happening in this PR |
|
The regression is caused by an existing ESM module-graph problem in
When WebdriverIO 9.31.6 changes the worker’s dependency/evaluation path, this cycle is exposed through more than one ESM module instance. That accounts for both symptoms from #15589:
The PR’s change in |
|
The failure is an existing module-cycle/duplicate-instance problem in The direct cycle is:
The The PR diff confirms that the relevant trigger is the WDIO 9.31.5 → 9.31.7 dependency update. WDIO 9.31.6 did not change The change in this PR that replaces the |
|
@greptileai, what percentage are you confident this is the root cause? What makes you believe this is what is at play? What evidence do we have that |
|
I’d put my confidence at roughly 85% that the underlying defect is the existing module-graph problem in The evidence for the module-graph diagnosis is:
The evidence for
So my earlier wording gave The decisive checks would be to (1) pin only |
|
No description provided.