Skip to content

Can CodeceptJS dynamic config accept an async function? #4862

Open
@MinakoKitani

Description

@MinakoKitani

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions