diff --git a/packages/connect/test-e2e.js b/packages/connect/test-e2e.js index 4d344d98c30..05cc8aab9e3 100644 --- a/packages/connect/test-e2e.js +++ b/packages/connect/test-e2e.js @@ -161,6 +161,10 @@ const run = async () => { throw new Error('DebugLinkState missing: ' + state.error); } + if (state?.success) { + return; // stop test here + } + // TODO: TrezorConnect.cancel(); // await new Promise(resolve => setTimeout(resolve, 2000)); // TrezorConnect.cancel();