From 5c30fee59ae8dff9f20a9d167e21b290a3181789 Mon Sep 17 00:00:00 2001 From: Peter <53189696+PeterYinusa@users.noreply.github.com> Date: Wed, 8 Mar 2023 13:17:56 +0000 Subject: [PATCH] remove extraneous arg from clickElement (#18050) --- test/e2e/snaps/test-snap-bip-32.spec.js | 11 ++++------ test/e2e/snaps/test-snap-bip-44.spec.js | 11 ++++------ test/e2e/snaps/test-snap-confirm.spec.js | 11 ++++------ test/e2e/snaps/test-snap-cronjob.spec.js | 11 ++++------ test/e2e/snaps/test-snap-dialog.spec.js | 11 ++++------ test/e2e/snaps/test-snap-error.spec.js | 11 ++++------ test/e2e/snaps/test-snap-installed.spec.js | 22 +++++++------------ test/e2e/snaps/test-snap-management.spec.js | 11 ++++------ test/e2e/snaps/test-snap-managestate.spec.js | 11 ++++------ test/e2e/snaps/test-snap-notification.spec.js | 11 ++++------ test/e2e/snaps/test-snap-rpc.spec.js | 11 ++++------ test/e2e/snaps/test-snap-txinsights.spec.js | 11 ++++------ test/e2e/snaps/test-snap-update.spec.js | 11 ++++------ 13 files changed, 56 insertions(+), 98 deletions(-) diff --git a/test/e2e/snaps/test-snap-bip-32.spec.js b/test/e2e/snaps/test-snap-bip-32.spec.js index 6407f0d2c..2b05c8c4a 100644 --- a/test/e2e/snaps/test-snap-bip-32.spec.js +++ b/test/e2e/snaps/test-snap-bip-32.spec.js @@ -48,13 +48,10 @@ describe('Test Snap bip-32', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-bip-44.spec.js b/test/e2e/snaps/test-snap-bip-44.spec.js index 17687a84b..54cd9b142 100644 --- a/test/e2e/snaps/test-snap-bip-44.spec.js +++ b/test/e2e/snaps/test-snap-bip-44.spec.js @@ -47,13 +47,10 @@ describe('Test Snap bip-44', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-confirm.spec.js b/test/e2e/snaps/test-snap-confirm.spec.js index 12df8e026..4843dad42 100644 --- a/test/e2e/snaps/test-snap-confirm.spec.js +++ b/test/e2e/snaps/test-snap-confirm.spec.js @@ -47,13 +47,10 @@ describe('Test Snap Confirm', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-cronjob.spec.js b/test/e2e/snaps/test-snap-cronjob.spec.js index ae9944c17..5818c1d37 100644 --- a/test/e2e/snaps/test-snap-cronjob.spec.js +++ b/test/e2e/snaps/test-snap-cronjob.spec.js @@ -47,13 +47,10 @@ describe('Test Snap Cronjob', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-dialog.spec.js b/test/e2e/snaps/test-snap-dialog.spec.js index 54fd2986b..f910a6b3b 100644 --- a/test/e2e/snaps/test-snap-dialog.spec.js +++ b/test/e2e/snaps/test-snap-dialog.spec.js @@ -47,13 +47,10 @@ describe('Test Snap Dialog', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-error.spec.js b/test/e2e/snaps/test-snap-error.spec.js index 99fa7943a..2efb31d89 100644 --- a/test/e2e/snaps/test-snap-error.spec.js +++ b/test/e2e/snaps/test-snap-error.spec.js @@ -48,13 +48,10 @@ describe('Test Snap Error', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-installed.spec.js b/test/e2e/snaps/test-snap-installed.spec.js index e1c695dd0..08cabb6ec 100644 --- a/test/e2e/snaps/test-snap-installed.spec.js +++ b/test/e2e/snaps/test-snap-installed.spec.js @@ -47,13 +47,10 @@ describe('Test Snap Installed', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); @@ -86,13 +83,10 @@ describe('Test Snap Installed', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-management.spec.js b/test/e2e/snaps/test-snap-management.spec.js index 049cbd22f..f66068b53 100644 --- a/test/e2e/snaps/test-snap-management.spec.js +++ b/test/e2e/snaps/test-snap-management.spec.js @@ -49,13 +49,10 @@ describe('Test Snap Management', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(1000); diff --git a/test/e2e/snaps/test-snap-managestate.spec.js b/test/e2e/snaps/test-snap-managestate.spec.js index 43bc3421b..28892419d 100644 --- a/test/e2e/snaps/test-snap-managestate.spec.js +++ b/test/e2e/snaps/test-snap-managestate.spec.js @@ -50,13 +50,10 @@ describe('Test Snap manageState', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); // approve install of snap diff --git a/test/e2e/snaps/test-snap-notification.spec.js b/test/e2e/snaps/test-snap-notification.spec.js index bba6b0fab..81a4a1307 100644 --- a/test/e2e/snaps/test-snap-notification.spec.js +++ b/test/e2e/snaps/test-snap-notification.spec.js @@ -50,13 +50,10 @@ describe('Test Snap Notification', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); // approve install of snap diff --git a/test/e2e/snaps/test-snap-rpc.spec.js b/test/e2e/snaps/test-snap-rpc.spec.js index 166d0b265..22f6d6163 100644 --- a/test/e2e/snaps/test-snap-rpc.spec.js +++ b/test/e2e/snaps/test-snap-rpc.spec.js @@ -49,13 +49,10 @@ describe('Test Snap RPC', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-txinsights.spec.js b/test/e2e/snaps/test-snap-txinsights.spec.js index d81daa8f2..4003501a6 100644 --- a/test/e2e/snaps/test-snap-txinsights.spec.js +++ b/test/e2e/snaps/test-snap-txinsights.spec.js @@ -48,13 +48,10 @@ describe('Test Snap TxInsights', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); // delay for npm installation await driver.delay(2000); diff --git a/test/e2e/snaps/test-snap-update.spec.js b/test/e2e/snaps/test-snap-update.spec.js index 8dfcc3d4a..5339ded07 100644 --- a/test/e2e/snaps/test-snap-update.spec.js +++ b/test/e2e/snaps/test-snap-update.spec.js @@ -49,13 +49,10 @@ describe('Test Snap update', function () { 'MetaMask Notification', windowHandles, ); - await driver.clickElement( - { - text: 'Connect', - tag: 'button', - }, - 10000, - ); + await driver.clickElement({ + text: 'Connect', + tag: 'button', + }); await driver.delay(2000); // approve install of snap