.bubble('ontap') works when .dotap() doesn't

In my automated tests, I need to synthetically trigger a button press. The button is declared as
{name: 'detailsBtn', kind: "onyx.Button", style: 'cursor: pointer', ontap: 'doDetailsCmd', content: $L('Details'), classes: 'hiddenOnMultiColInlineBlock'}
This code does not trigger the onDetailsCmd event:
listPane.$.detailsBtn.dotap();
This code does:
listPane.$.detailsBtn.bubble('ontap');
Any suggestions as to why?

Comments

Sign In or Register to comment.