Skip to content

Commit

Permalink
remove extraneous arg from clickElement (#18050)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterYinusa authored Mar 8, 2023
1 parent 601e02c commit 5c30fee
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 98 deletions.
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-bip-32.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-bip-44.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-confirm.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-cronjob.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-dialog.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-error.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
22 changes: 8 additions & 14 deletions test/e2e/snaps/test-snap-installed.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-management.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-managestate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-notification.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-rpc.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-txinsights.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
11 changes: 4 additions & 7 deletions test/e2e/snaps/test-snap-update.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c30fee

Please sign in to comment.