-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
8.24.6
Node.js Version
20.18.0
Mode
Standalone Mode
Which capabilities are you using?
What happened?
A call to browser.sharedStore.get() in the beforeSuite() hook is causing an error.
025-09-11T10:43:48.045Z ERROR @wdio/utils:shim: Error: Not Found
[0-0] at errHandler (../node_modules/@wdio/shared-store-service/build/client.js:78:11)
[0-0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[0-0] at async getValue (../node_modules/@wdio/shared-store-service/build/client.js:26:17)
at async Object.beforeSuite
[0-0] at async Promise.all (index 0)
[0-0] at async executeHooksWithArgs (../node_modules/@wdio/utils/build/shim.js:68:20)
This works on macOS but not on Windows 11 Enterprise.
What is your expected behavior?
On the first execution, return a null/undefined value.
How to reproduce the bug.
export const config = {
// ...
beforeSuite: async function (config, capabilities) {
const value = (await browser.sharedStore.get("key")) || {};
...
},
services: ['shared-store']
}Relevant log output
025-09-11T10:43:48.045Z ERROR @wdio/utils:shim: Error: Not Found
[0-0] at errHandler (../node_modules/@wdio/shared-store-service/build/client.js:78:11)
[0-0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[0-0] at async getValue (../node_modules/@wdio/shared-store-service/build/client.js:26:17)
at async Object.beforeSuite
[0-0] at async Promise.all (index 0)
[0-0] at async executeHooksWithArgs (../node_modules/@wdio/utils/build/shim.js:68:20)Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Reactions are currently unavailable