0

There is some code on a page:

addAnother={{
          text: language('Add variant'),
          dataCy: 'addVariant',
          as: 'button',
          buttonProps: { variant: 'alternate', className: cx.addAnotherButton, onClick: () => setOpened(true) },
        }}

When this gets outputted on the page the attribute is dataCy, is there anything I can do to make it show up as data-cy?

Alex
  • 475
  • 1
  • 3
  • 15

0 Answers0