Skip to content

offer puppeteer extend-expect methods #2

Open
@patrickhulce

Description

@patrickhulce

while technically not part of dom-testing-library it'd be nice to offer the same convenience expectations. Maybe this belongs in jest-puppeteer?

import 'dom-testing-library/extend-expect'

// <span data-testid="greetings">Hello World</span>
expect(queryByTestId(container, 'greetings')).toBeInTheDOM()
expect(queryByTestId(container, 'greetings')).not.toHaveTextContent('Bye bye')
// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions