Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Jul 2, 2024
1 parent ac85ac7 commit f2ffffe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
7 changes: 6 additions & 1 deletion test/e2e/accounts/snap-account-settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ describe('Add snap account experimental settings', function (this: Suite) {
text: 'Add account Snap',
tag: 'button',
},
{ findElementGuard: { text: 'Add a new Ethereum account', tag: 'button' } }, // wait for the modal to appear
{
findElementGuard: {
text: 'Add a new Ethereum account',
tag: 'button',
},
}, // wait for the modal to appear
);
await driver.clickElement('.mm-box button[aria-label="Close"]');

Expand Down
5 changes: 4 additions & 1 deletion test/e2e/tests/account/import-flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ describe('Import flow @no-mmi', function () {
await driver.clickElement(
'[data-testid="multichain-account-menu-popover-action-button"]',
);
await driver.clickElement({ text: 'Add a new Ethereum account', tag: 'button' });
await driver.clickElement({
text: 'Add a new Ethereum account',
tag: 'button',
});

// set account name
await driver.fill('[placeholder="Account 2"]', '2nd account');
Expand Down
5 changes: 4 additions & 1 deletion test/e2e/tests/tokens/nft/import-nft.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ describe('Import NFT', function () {
await driver.clickElement(
'[data-testid="multichain-account-menu-popover-action-button"]',
);
await driver.clickElement({ text: 'Add a new Ethereum account', tag: 'button' });
await driver.clickElement({
text: 'Add a new Ethereum account',
tag: 'button',
});

// By clicking creating button without filling in the account name
// the default name would be set as Account 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/* eslint-disable jest/require-top-level-describe */
import React from 'react';
import { JsonRpcRequest } from '@metamask/utils';
import {
BtcAccountType,
BtcMethod,
} from '@metamask/keyring-api';
import { BtcAccountType, BtcMethod } from '@metamask/keyring-api';
import { fireEvent, renderWithProvider, waitFor } from '../../../../test/jest';
import configureStore from '../../../store/store';
import mockState from '../../../../test/data/mock-state.json';
Expand Down

0 comments on commit f2ffffe

Please sign in to comment.