playwright-test-commons - v0.8.0
    Preparing search index...

    Function validateDatesInBody

    • Walks a response body and asserts (soft) that every date-like field holds a valid date. Called by validateJsonSchema on every validation.

      Parameters

      • body: unknown

        the parsed response body

      • options: DateOptions = {}
      • path: string = "body"

        where body sits in the response, for failure messages. Default "body"

      Returns void