In the async test, I have keydown and keyup combinations, trying to simulate Cntrl + Delete on "selector name".
await triggerEvent(<selector name>, "keydown", {ctrlKey: true, keyCode: 46});
await triggerEvent(<selector name>, "keyup", {ctrlKey: false, keyCode: 46});
Aucun commentaire:
Enregistrer un commentaire