Playwright Cucumber TS Steps
    Preparing search index...

    Function expectGlobalTextVisible

    • Asserts that an element contains the specified substring (case-sensitive). Supports fixtures for reusable selectors and text values.

      Parameters

      • page: any

        The Playwright page object

      • textKey: string

        The text key (can be a fixture key or raw text)

      Returns Promise<void>

      Then I pw see text "Welcome" (will match "Welcome Home" or "Welcome!")

      Global Visibility Check: Finds text anywhere on the page without needing a selector.