[Feature] ignoreOrder option for toHaveText
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)
Re-opening. Suggestion to use toContainText is not working. Still cares about order of list
@pavelfeldman Any news on that? How may we test that list contains text without order?
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.