Closed
Description
this reports "Unexpected usage of not.toBeVisible(). Use toBeHidden() instead", but only toBeVisible has the parameter.
let visible = false;
// reports no-useless-not
await expect(page.locator('#selector')).not.toBeVisible({ visible });
same for toBeEnabled.
The lint was added in #81. Shortly thereafter, playwright 1.26 was released which added these parameters.