k6-cucumber-steps API Reference - v2.0.10-alpha.0
    Preparing search index...

    Function k6IAmAuthenticatedAsA

    • Applies a stored authentication token to the default request headers.

      Retrieves a token from storage and sets the Authorization header to Bearer <token>.

      Parameters

      • userType: string

        User type identifier (e.g., "standard_user", "admin")

      Returns void

      Background:
        Given I k6 am authenticated as a "standard_user"