Playwright Cucumber TS Steps
    Preparing search index...

    Function mockApiWithFile

    • Mocks an API endpoint using the contents of a local JSON file. Supports fixtures for reusable API endpoints and mock files.

      Parameters

      • page: any
      • urlPatternKey: string
      • filePathKey: string

      Returns Promise<void>

      Given I pw mock the API endpoint "/api/users" with response from "mocks/users.json"