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

    Function formatTestId

    • Formats a test id for titles, plans and --grep. Padding to a fixed width means "#0012" can never match "#00120" or "#0112".

      Parameters

      • id: number

        a positive whole number

      Returns string

      "#" plus at least four digits: 12 → "#0012", 12345 → "#12345"

      Error if id is not a positive whole number