Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Assertions should work against a list of ElementHandles #28

@ramraphael

Description

@ramraphael

Hi here,

Currently, all assertions are designed to check a single element. It would be helpful to check multiple elements (list items, table cells) and assert that they contain certain text.

Just spitballing here, but this is what I'm envisioning 🤔 :

  • A new matcher, expect(page).toAllHaveText(selector, text, options) (this would use Playwright's page.$$ method to select all elements matching the provided selector).

Would love thoughts from the community. Happy to collaborate and contribute! 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions