From cf7e85e8849268fb3c627eadfdd407a7dbee87b6 Mon Sep 17 00:00:00 2001 From: Maxim Geerinck Date: Tue, 2 May 2023 13:13:14 +0200 Subject: [PATCH] fix: wrong window names --- commands/metamask.js | 2 +- helpers.js | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/commands/metamask.js b/commands/metamask.js index 662962a4..f0f2ae69 100644 --- a/commands/metamask.js +++ b/commands/metamask.js @@ -1198,7 +1198,7 @@ const metamask = { // log('[confirmTransaction] Checking if tx data is present..'); // if ( // await playwright - // .notificationwindows(PROVIDER) + // .windows(PROVIDER) // .locator(confirmPageElements.dataButton) // .count() > 0 // ) { diff --git a/helpers.js b/helpers.js index a926a80a..f164fedd 100644 --- a/helpers.js +++ b/helpers.js @@ -269,6 +269,12 @@ module.exports = { log( `Trying to download and extract file from: ${url} to following path: ${destination}`, ); + + if (provider === 'phantom') { + // phantom doesnt support downloading yet. + return; + } + if (process.env.GH_USERNAME && process.env.GH_PAT) { await download(url, destination, { extract: true, @@ -277,13 +283,6 @@ module.exports = { Accept: 'application/octet-stream', }, }); - - /** - * Some extensions will zip their dist folder - */ - if (provider === 'phantom') { - await moveFiles(`${destination}/dist`, destination); - } } else { await download(url, destination, { extract: true,