Skip to content

Add support for <title> element in SVG with getByTitle #83

@wyze

Description

@wyze

Describe the feature you'd like:

There is a <title> element that can be rendered within an SVG element, see MDN, and would be nice to be considered when doing a getByTitle assertion. Currently it does work with getByText, but that might be incorrect considering it behaves more like a title attribute than text content.

If accepted, I will work up a PR adding support for it.

Suggested implementation:

Would need to find the <title> element and ensure it's parent is a <svg> element and allow that to be included in the assertion.

Describe alternatives you've considered:

We currently use getByText as a selector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions