Skip to content

Commit

Permalink
feat: sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterYinusa committed Jun 17, 2024
1 parent 890c4c0 commit 7653e93
Show file tree
Hide file tree
Showing 167 changed files with 2,281 additions and 2,018 deletions.
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
"tabWidth": 2,
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"]
}
62 changes: 31 additions & 31 deletions docs/classes/flask.ExperimentalArea.html

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/classes/index.CheckBox.html

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/classes/index.DappDriver.html

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions docs/classes/index.DropDown.html

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions docs/classes/index.HTMLElement.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/classes/index.HTMLElementCollection.html

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions docs/classes/index.InputText.html

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions docs/classes/index.Link.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/classes/index.MockServer.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/classes/index.Node.html

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions docs/classes/index.PageObject.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/classes/index.Provider.html

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/classes/index.Radio.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.AddNetwork.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.Approve.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/metamask.Completion.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.ConfirmAddSuggestedToken.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.ConfirmRecoveryPhrase.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.ConfirmTransaction.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.Connect.html

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions docs/classes/metamask.CreatePassword.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/metamask.Home.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.ImportWithRecoveryPhrase.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.Metametrics.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.PinExtension.html

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions docs/classes/metamask.ReviewRecoveryPhrase.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/metamask.SecureYourWallet.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.SignInRequest.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.SignMessage.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/metamask.SignatureRequest.html

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions docs/classes/metamask.Welcome.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.AddNetwork.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.Approve.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.ApproveRequest.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.ConfirmTransaction.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.Connect.html

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions docs/classes/rainbow.CreatePassword.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/rainbow.Import.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/rainbow.ImportOrConnect.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.ImportSeed.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/rainbow.ImportSelect.html

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions docs/classes/rainbow.Ready.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.RevealSeed.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/rainbow.SeedBackup.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/rainbow.SeedVerify.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.SignInRequest.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.SignMessage.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.SignatureRequest.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/rainbow.Welcome.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/wallet.AddNetwork.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/wallet.ConfirmTransaction.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/wallet.Connect.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/wallet.SignInRequest.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/wallet.SignMessage.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/wallet.SignatureRequest.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.AddNetwork.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.Approve.html

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions docs/classes/zerion.BackUp.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.ConfirmPassword.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.Connect.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions docs/classes/zerion.ImportWallet.html

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions docs/classes/zerion.Information.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.Password.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.RecoveryPhrase.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.SelectWallets.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.SendTransaction.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.SignInRequest.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.SignMessage.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.SignatureRequest.html

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions docs/classes/zerion.Success.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.Verify.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/zerion.Welcome.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"devDependencies": {
"@commitlint/cli": "^19.2.0",
"@commitlint/config-conventional": "^19.1.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/adm-zip": "^0.5.5",
"@types/node": "^20.14.2",
"@types/selenium-webdriver": "^4.1.22",
Expand Down
9 changes: 4 additions & 5 deletions src/bin/browser-extension.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env node

import { Command } from 'commander';
import { PACKAGE_VERSION, METAMASK, METAMASK_FLASK, NODE_MODULE_DIR, ZERION, RAINBOW } from '../constants';
import { Wallet } from '../types';
import { metamask } from '../metamask/install';
import { zerion } from '../zerion/install';
import { metamaskFlask } from '../flask/install';
import { rainbow } from '../rainbow/install';
import { logError } from '../log';
import { metamask } from '../metamask/install';
import { rainbow } from '../rainbow/install';
import { Wallet } from '../types';
import { zerion } from '../zerion/install';

const initCwd: string = process.env.INIT_CWD;
const cwd: string = process.cwd();
Expand Down
1 change: 1 addition & 0 deletions src/blockchain/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ganache, { Server, ServerOptions } from 'ganache';

/**
*
*
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Range } from 'semver';
import pkg from '../../package.json';
import { Browser, Framework, Wallet } from '../types';
import { Range } from 'semver';

const PACKAGE_NAME: string = pkg.name;
const PACKAGE_VERSION: string = pkg.version;
Expand Down
5 changes: 3 additions & 2 deletions src/controls/check-box.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { DappDriver } from '../session/dapp-driver';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { ICheckBox } from '../interface/controls/check-box';
import { IHTMLElement } from '../interface/controls/html-element';
import { PlaywrightCheckBox } from '../playwright/check-box';
import { DappDriver } from '../session/dapp-driver';
import { WebDriverCheckBox } from '../webdriver/check-box';
import { HTMLElement } from './html-element';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';

/**
*
*
Expand Down
5 changes: 3 additions & 2 deletions src/controls/drop-down.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { DappDriver } from '../session/dapp-driver';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IDropDown } from '../interface/controls/drop-down';
import { IHTMLElement } from '../interface/controls/html-element';
import { PlaywrightDropDown } from '../playwright/drop-down';
import { DappDriver } from '../session/dapp-driver';
import { WebDriverDropDown } from '../webdriver/drop-down';
import { HTMLElement } from './html-element';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';

/**
*
*
Expand Down
5 changes: 3 additions & 2 deletions src/controls/html-element-collection.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { DappDriver } from '../session/dapp-driver';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IHTMLElementCollection } from '../interface/controls/html-element-collection';
import { PlaywrightHTMLElementCollection } from '../playwright/html-element-collection';
import { DappDriver } from '../session/dapp-driver';
import { WebDriverHTMLElementCollection } from '../webdriver/html-element-collection';
import { HTMLElement } from './html-element';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';

/**
*
*
Expand Down
7 changes: 4 additions & 3 deletions src/controls/html-element.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IHTMLElement } from '../interface/controls/html-element';
import { DappDriver } from '../session/dapp-driver';
import { IConfirmation } from '../interface/wallet/confirmation';
import { PlaywrightHTMLElement } from '../playwright/html-element';
import { DappDriver } from '../session/dapp-driver';
import { WebDriverHTMLElement } from '../webdriver/html-element';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IConfirmation } from '../interface/wallet/confirmation';

/**
*
*
Expand Down
5 changes: 3 additions & 2 deletions src/controls/input-text.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { DappDriver } from '../session/dapp-driver';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IHTMLElement } from '../interface/controls/html-element';
import { IInputText } from '../interface/controls/input-text';
import { PlaywrightInputText } from '../playwright/input-text';
import { DappDriver } from '../session/dapp-driver';
import { WebDriverInputText } from '../webdriver/input-text';
import { HTMLElement } from './html-element';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';

/**
*
*
Expand Down
5 changes: 3 additions & 2 deletions src/controls/link.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { DappDriver } from '../session/dapp-driver';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IHTMLElement } from '../interface/controls/html-element';
import { ILink } from '../interface/controls/link';
import { PlaywrightLink } from '../playwright/link';
import { DappDriver } from '../session/dapp-driver';
import { WebDriverLink } from '../webdriver/link';
import { HTMLElement } from './html-element';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';

/**
*
*
Expand Down
5 changes: 3 additions & 2 deletions src/controls/radio.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { DappDriver } from '../session/dapp-driver';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IHTMLElement } from '../interface/controls/html-element';
import { IRadio } from '../interface/controls/radio';
import { PlaywrightRadio } from '../playwright/radio';
import { DappDriver } from '../session/dapp-driver';
import { WebDriverRadio } from '../webdriver/radio';
import { HTMLElement } from './html-element';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/flask/pages/home/onboarding/experimental-area.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { Welcome } from '../../../../metamask';
import { PageObject } from '../../../../page';

/**
*
*
Expand Down
6 changes: 3 additions & 3 deletions src/flask/setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DappDriver } from '../session/dapp-driver';
import { PageObject } from '../page';
import { Completion, CreatePassword, Home, ImportWithRecoveryPhrase } from '../metamask';
import { ExperimentalArea } from '.';
import { Completion, CreatePassword, Home, ImportWithRecoveryPhrase } from '../metamask';
import { PageObject } from '../page';
import { DappDriver } from '../session/dapp-driver';

let createPasswordPage: CreatePassword;
let completionPage: Completion;
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/home/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { PageObject } from '../../../page';
import { DappDriver } from '../../../session/dapp-driver';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/home/onboarding/completion.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';
import { PinExtension } from './pin-extension';

/**
*
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement, InputText } from '../../../../controls';
import { PageObject } from '../../../../page';
import { Completion } from './completion';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/home/onboarding/create-password.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';
import { Completion, SecureYourWallet } from '../../../index';

/**
*
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';
import { CreatePassword } from './create-password';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/home/onboarding/metametrics.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';

/**
*
*
Expand Down
3 changes: 2 additions & 1 deletion src/metamask/pages/home/onboarding/pin-extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Home } from '..';
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';
import { Home } from '..';

/**
*
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';
import { ConfirmRecoveryPhrase } from './confirm-recovery-phrase';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/home/onboarding/secure-your-wallet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';
import { ReviewRecoveryPhrase } from './review-recovery-phrase';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/home/onboarding/welcome.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';
import { Metametrics } from './metametrics';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/notification/add-network.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../controls/html-element';
import { IConfirmation } from '../../../interface/wallet/confirmation';
import { PageObject } from '../../../page';

/**
*
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HTMLElement } from '../../../../controls/html-element';
import { PageObject } from '../../../../page';

/**
*
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ConfirmTransaction } from '.';
import { IConfirmation } from '../../../../interface/wallet/confirmation';

/**
*
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { IConfirmation } from '../../../../interface/wallet/confirmation';
import { PageObject } from '../../../../page';

/**
*
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ConfirmTransaction } from '.';
import { HTMLElement } from '../../../../controls/html-element';
import { IConfirmation } from '../../../../interface/wallet/confirmation';

/**
*
*
Expand Down
1 change: 1 addition & 0 deletions src/metamask/pages/notification/connect/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HTMLElement } from '../../../../controls/html-element';
import { IConfirmation } from '../../../../interface/wallet/confirmation';
import { PageObject } from '../../../../page';

/**
*
*
Expand Down
3 changes: 2 additions & 1 deletion src/metamask/pages/notification/sign-in-request.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ConfirmTransaction } from './confirm-transaction';
import { IConfirmation } from '../../../interface/wallet/confirmation';
import { ConfirmTransaction } from './confirm-transaction';

/**
*
*
Expand Down
3 changes: 2 additions & 1 deletion src/metamask/pages/notification/sign-message.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ConfirmTransaction } from './confirm-transaction';
import { IConfirmation } from '../../../interface/wallet/confirmation';
import { ConfirmTransaction } from './confirm-transaction';

/**
*
*
Expand Down
6 changes: 3 additions & 3 deletions src/metamask/setup.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from 'path';
import { readFileSync, writeFileSync } from 'fs';
import { DappDriver } from '../session/dapp-driver';
import { PageObject } from '../page';
import path from 'path';
import { Completion, CreatePassword, Home, ImportWithRecoveryPhrase, Welcome } from '.';
import { PageObject } from '../page';
import { DappDriver } from '../session/dapp-driver';

let createPasswordPage: CreatePassword;
let completionPage: Completion;
Expand Down
1 change: 1 addition & 0 deletions src/mock/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as mockttp from 'mockttp';
import { PROXY_PORT } from '../constants';

/**
*
*
Expand Down
9 changes: 5 additions & 4 deletions src/page/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { PlaywrightPageObject } from '../playwright/page-object';
import { WebDriverPageObject } from '../webdriver/page-object';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IPageObject } from '../interface/page/page-object';
import { IConfirmation } from '../interface/wallet/confirmation';
import { PlaywrightPageObject } from '../playwright/page-object';
import { DappDriver } from '../session/dapp-driver';
import { Page } from '../types';
import { PLAYWRIGHT, WEBDRIVER } from '../constants';
import { IConfirmation } from '../interface/wallet/confirmation';
import { WebDriverPageObject } from '../webdriver/page-object';

/**
*
*
Expand Down
2 changes: 1 addition & 1 deletion src/playwright/html-element-collection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Locator } from 'playwright-core';
import { DappDriver } from '../session/dapp-driver';
import { HTMLElement } from '../controls/html-element';
import { DappDriver } from '../session/dapp-driver';
import { Frame, Page } from '../types';

export class PlaywrightHTMLElementCollection {
Expand Down
4 changes: 2 additions & 2 deletions src/playwright/html-element.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Locator } from 'playwright-core';
import { DappDriver } from '../session/dapp-driver';
import { IHTMLElement } from '../interface/controls/html-element';
import { IConfirmation } from '../interface/wallet/confirmation';
import { PageObject } from '../page';
import { DappDriver } from '../session/dapp-driver';
import { Frame, Page } from '../types';
import { IConfirmation } from '../interface/wallet/confirmation';

export class PlaywrightHTMLElement implements IHTMLElement {
protected page: Page;
Expand Down
4 changes: 2 additions & 2 deletions src/playwright/page-object.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BrowserContext } from 'playwright-core';
import { DappDriver } from '../session/dapp-driver';
import { IPageObject } from '../interface/page/page-object';
import { IConfirmation } from '../interface/wallet/confirmation';
import { PageObject } from '../page';
import { DappDriver } from '../session/dapp-driver';
import { Frame, Page } from '../types';
import { IConfirmation } from '../interface/wallet/confirmation';

export class PlaywrightPageObject implements IPageObject {
private page: Page;
Expand Down
2 changes: 1 addition & 1 deletion src/playwright/playwright-factory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import playwright, { BrowserContext } from 'playwright-core';
import { Browser, BrowserOptions } from '../types';
import {
CHROME,
DEFAULT_METAMASK_BINARY_PATH,
Expand All @@ -12,6 +11,7 @@ import {
RAINBOW,
ZERION,
} from '../constants';
import { Browser, BrowserOptions } from '../types';

export class PlaywrightFactory {
async build(browser: Browser, options: BrowserOptions): Promise<BrowserContext> {
Expand Down
1 change: 1 addition & 0 deletions src/provider/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IConfirmation } from '../interface/wallet/confirmation';
import { PageObject } from '../page';
import { JsonRpcRequest } from '../types';

/**
*
*
Expand Down
Loading

0 comments on commit 7653e93

Please sign in to comment.