-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
The visibility algorithm correctly identifies detached elements as "hidden".
But when determining and providing the reason its hidden, we get an error message about the effective width and height being 0.
Since detached elements do not actually displace any content, this is technically correct, but miscommunicates the reason why.
We should provide a better error message in this circumstance and also add a new UI icon for detached elements (as opposed to just hidden).
Here's an example.
In this situation I've caused the element to be removed after the cy.get() but during the .click()
This test should correctly fail but the error message sends me down the wrong path.
Here's a suggestion where instead of displaying the invisibility icon, we add a new icon and tooltip to indicate that this element has become detached.

