diff --git a/commands/phantom.js b/commands/phantom.js index 9600d1f6..63948288 100644 --- a/commands/phantom.js +++ b/commands/phantom.js @@ -414,7 +414,7 @@ module.exports = { const notificationPage = await playwright.switchToNotification(PROVIDER); await playwright.waitAndClick( PROVIDER, - transactionPageElements.buttons.rejectTransaction, + transactionPageElements.buttons.confirmTransaction, notificationPage, { waitForEvent: 'close' }, ); diff --git a/commands/playwright.js b/commands/playwright.js index d26f5497..c7cdc312 100644 --- a/commands/playwright.js +++ b/commands/playwright.js @@ -274,7 +274,7 @@ module.exports = { } else if (retries >= 50) { retries = 0; throw new Error( - `[switchToNotification: ${provider}] Max amount of retries to switch to metamask notification window has been reached. It was never found.`, + `[switchToNotification: ${provider}] Max amount of retries to switch to ${provider} notification window has been reached. It was never found.`, ); } },