Open
Description
Question
Can CodeceptJS dynamic config accept an async function?
I need to connect to a CEF container using browserWSEndpoint, but the webSocketDebuggerUrl is not static. Before launching the browser, I have to request http://localhost:xxx/json/version to get the correct webSocketDebuggerUrl and pass it to browserWSEndpoint.
Since this requires an asynchronous operation, is there a way to handle this in the dynamic config?
Additional Context
- The browserWSEndpoint is not constant throughout the test flow.
- During automation, we have scenarios where the application closes and restarts, meaning we need to fetch a new webSocketDebuggerUrl dynamically at different points in the test execution.
Is there an existing way to handle this, or should I look into modifying the helper to support this behavior?
Metadata
Metadata
Assignees
Labels
No labels