We're using https://github.com/testing-library/playwright-testing-library for selecting elements on our page. Those return ElementHandle, which doesn't seem to be compatible with some expect matchers.
Simple example:
const buyButton = await queries.findByText($document, "Buy")
expect(buyButton).toBeDisabled()
Throws:
Error: toBeDisabled can be only used with Locator object
There might be a way to get a Locator from ElementHandle (not sure), but it would be great if those also worked with ElementHandle itself.