Closed
Description
Hi. What do you think about an optional rule 'prefer-to-be-hidden'?
https://playwright.dev/docs/1.21/test-assertions#locator-assertions-to-be-hidden
❌ Example of incorrect code for this rule:
const locator = page.locator('.my-element');
await expect(locator).not.toBeVisible();
✅ Example of correct code for this rule:
const locator = page.locator('.my-element');
await expect(locator).toBeHidden();