Skip to content

no way to add data-* attribute to OK button in modal #3896

@sprocket99

Description

@sprocket99

I am using cypress.io and decorating all the UI elements I need to interact with using data-* tags, which is the recommended way. Unfortunately I do not see a way of specifying such a tag on an modal dialog button, like OK (maybe I am missing something?). I know I could use a CSS selector like #__BVID__367___BV_modal_footer_ > .btn-primary but I rather not. I also know that I could probably make a slot for it, put my own OK button in there, and put a tag on that, again that is not convenient.

Please could you provide a way to specify in an easy way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions