I'm searching to add a data-cy to my elements in my ExtJs, but seems that nothing works. The piece where I want to add it is the following one:
items: [{
xtype: 'values',
name: 'value_x',
hideTrigger: true,
}
The whole code works, then the problem is that it cannot recognise it. I've already tried these codes, but any of them works:
listeners: {
afterrender: function(cmp) {
cmp.getEl().set({
"data-intro": 'some text',
"data-step": 1
});
}
}
autoEl: {
tag: 'div',
'data-step': '1'
}
I substitute data-step and data-intro with my data-cy, but nothing. The problem is that it doesn't return any error, but the data-cy (I've tried also with data-attribute and data-intro) is not put into the DOM when I open the localhost.