diff --git a/commands/metamask.js b/commands/metamask.js index cb99629f..49bad995 100644 --- a/commands/metamask.js +++ b/commands/metamask.js @@ -728,7 +728,7 @@ const metamask = { const notificationPage = await playwright.switchToNotification(PROVIDER); if ( await playwright - .notificationwindows(PROVIDER) + .windows(PROVIDER) .locator(signaturePageElements.signatureRequestScrollDownButton) .isVisible() ) { @@ -760,7 +760,7 @@ const metamask = { const notificationPage = await playwright.switchToNotification(PROVIDER); if ( await playwright - .notificationwindows(PROVIDER) + .windows(PROVIDER) .locator(signaturePageElements.signatureRequestScrollDownButton) .isVisible() ) { @@ -880,7 +880,7 @@ const metamask = { // experimental mode on if ( await playwright - .notificationwindows(PROVIDER) + .windows(PROVIDER) .locator(notificationPageElements.customSpendingLimitInput) .isVisible() ) { @@ -955,7 +955,7 @@ const metamask = { ); if ( await playwright - .notificationwindows(PROVIDER) + .windows(PROVIDER) .locator(confirmPageElements.editGasFeeLegacyButton) .isVisible() ) { @@ -969,7 +969,7 @@ const metamask = { ); if ( await playwright - .notificationwindows(PROVIDER) + .windows(PROVIDER) .locator(confirmPageElements.editGasFeeLegacyOverrideAckButton) .isVisible() ) { @@ -1092,7 +1092,7 @@ const metamask = { log('[confirmTransaction] Checking if recipient address is present..'); if ( await playwright - .notificationwindows(PROVIDER) + .windows(PROVIDER) .locator(confirmPageElements.recipientButton) .isVisible() ) { @@ -1116,7 +1116,7 @@ const metamask = { log('[confirmTransaction] Checking if network name is present..'); if ( await playwright - .notificationwindows(PROVIDER) + .windows(PROVIDER) .locator(confirmPageElements.networkLabel) .isVisible() ) { @@ -1138,7 +1138,7 @@ const metamask = { // log('[confirmTransaction] Checking if tx data is present..'); // if ( // await playwright - // .notificationwindows(PROVIDER) + // .windows(PROVIDER) // .locator(confirmPageElements.dataButton) // .isVisible() // ) { diff --git a/helpers.js b/helpers.js index efc33a78..c032ffbd 100644 --- a/helpers.js +++ b/helpers.js @@ -219,6 +219,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, @@ -227,13 +233,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, diff --git a/package.json b/package.json index a27f109b..dfc2fbe7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@phantom/synpress", - "version": "4.0.0-alpha.16", + "version": "4.0.0-alpha.18", "description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.", "keywords": [ "Synpress",