playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature] ignoreOrder option for toHaveText

Open hormr1 opened this issue 2 years ago • 3 comments

Let us know what functionality you'd like to see in Playwright and what your use case is. Do you think others might benefit from this as well?

I would like to be able to assert with a locator that returns a list and not care about the order await expect(locator).toHaveText([1, 3, 2], ignoreOrder: true)

hormr1 avatar Apr 07 '23 20:04 hormr1

Re-opening. Suggestion to use toContainText is not working. Still cares about order of list

hormr1 avatar Apr 07 '23 21:04 hormr1

@pavelfeldman Any news on that? How may we test that list contains text without order?

zgrybus avatar Jul 27 '23 09:07 zgrybus

Why was this issue closed?

Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.

If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.

pavelfeldman avatar Aug 16 '24 00:08 pavelfeldman