Skip to content

Commit

Permalink
test(connect): disable autoconfirm for EntryPin
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrjpolak committed Jan 6, 2025
1 parent 6170607 commit 3bd6221
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/connect/e2e/common.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ export const initTrezorConnect = async (
});

if (autoConfirm) {
TrezorConnect.on(UI.REQUEST_BUTTON, () => {
TrezorConnect.on(UI.REQUEST_BUTTON, e => {
if (e.code === 'ButtonRequest_PinEntry') return;
setTimeout(() => TrezorUserEnvLink.send({ type: 'emulator-press-yes' }), 1);
});
}
Expand Down

0 comments on commit 3bd6221

Please sign in to comment.