Skip to content

data-cy attributes are now forwarded to Card component #5

Description

@rootulp

I observed an issue while using Cypress to target [data-cy=foo] IDs for Card components constructed using this library. The Cypress data-cy attribute is not persisted on the rendered HTML. It would be nice if we forwarded that prop so that consumers can define arbitrary data-* attributes on their Cards and select them via testing libraries like Cypress or Enzyme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions