1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

remove extraneous arg from clickElement (#18050)

This commit is contained in:
Peter 2023-03-08 13:17:56 +00:00 committed by GitHub
parent 601e02c5ee
commit 5c30fee59a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 56 additions and 98 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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