Skip to content

PF4: Donut Chart: Missing attrs for nodes in DOM #1932

@abalakh

Description

@abalakh

Recently donut chart was updated and existing classes for its elements like chart-container or chart-label were removed. This is problematic from automation point of view as there's no unique class names/ids/tags left to distinguish widget's components, forcing us to build ugly locators with either redundant DOM traversing or element indexing. Returning classes (or bringing in anything in exchange, like ids, labels, whatever) would help us a lot. Ideally i'd like to see one for entire widget, one for labels, one for chart container and one for chart legend.

Also i'm not sure how we should fetch actual values for donut chart. For example, let's take a look at "Blue theme donut chart" in docs:
image
There're no values for cats/dogs/birds either visually or in DOM. The only possible way is to mouse over each bar separately and wait for tooltip with value to appear. But since tooltips aren't present in DOM until bars are in focus, it's not an option to rely on them at least in automation. Imo labels with name/value pairs should be added to nodes in DOM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions