Playwright Cucumber TS Steps
    Preparing search index...

    Function apiPostRequest

    • Makes a POST request with a JSON body provided via DocString.

      Parameters

      • page: any
      • url: string
      • docString: any

      Returns Promise<void>

      When I pw make a POST request to "/api/login" with JSON body:
      """
      { "username": "admin", "password": "password123" }
      """