Function Then_I_see_testid

  • Then I see test ID:

    Then I see test ID {string}
    

    Asserts data-testid or data-test-id exists and is visible in the screen:

    <div data-testid="test"></div>
    <div data-test-id="test"></div>

    Use this only if the other assertions don't work. data-testid or data-test-id don't resemble how your software is used and should be avoided if possible.

    Parameters

    • text: string
    • Optionaloptions: DataTable

    Returns void

    Then I see test ID "testID"
    

    With options:

    Then I see test ID "testID"
    | log | true |
    | timeout | 4000 |
    | withinSubject | null |
    | includeShadowDom | false |