@JoeOSMG wrote:
We’d like to simulate a button
tapevent in order to run functional tests in an Ionic/Cordova app. It appearsclickevents work on the buttons, but when the event is triggered by atap(which we consider better UX), we’re unable to simulate the event with our test code.Here’s our Ionic button:
<button id="loginBtn" ion-button block (tap)="login()">LOGIN</button>Here’s how we trigger
clickevents:document.getElementById('loginBtn').click();How can we do this for Ionic tap events?
Posts: 1
Participants: 1