Skip to content

Improve UI when el not actionable by distinctly displaying stale elements vs hidden elements #696

@brian-mann

Description

@brian-mann

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.

screen shot 2017-09-29 at 11 07 44 am

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.

screen shot 2017-09-29 at 11 11 19 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/driverThis is due to an issue in the packages/driver directorytype: enhancementRequested enhancement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions