From 3a87b5635df2d00fcb0930846562fc3b0ba7636e Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Tue, 20 Aug 2024 17:36:35 +0200 Subject: [PATCH] wip --- packages/connect/test-e2e.js | 4 ++++ 1 file changed, 4 insertions(+) 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();