You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
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! 😄
The text was updated successfully, but these errors were encountered:
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 🤔 :
expect(page).toAllHaveText(selector, text, options)
(this would use Playwright'spage.$$
method to select all elements matching the provided selector).Would love thoughts from the community. Happy to collaborate and contribute! 😄
The text was updated successfully, but these errors were encountered: