Skip to content

Commit d15978e

Browse files
committed
fix: lint errors
1 parent 0885fae commit d15978e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

e2e/specs/wallets/config/safe-ens-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as path from 'path'
22

3-
import { MetaMaskWallet } from '@tenkeylabs/dappwright'
43
// eslint-disable-next-line import/no-extraneous-dependencies
54
import * as dotenv from 'dotenv'
65

e2e/specs/wallets/config/wallet-ens-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export async function customSwitchNetwork(metamaskPage: Page, network: string):
172172
}
173173

174174
// Switch to User 2 account + switch to Sepolia
175-
export async function switchToUser2AndSepolia(page: Page, _metaMask?: any): Promise<void> {
175+
export async function switchToUser2AndSepolia(page: Page): Promise<void> {
176176
console.log('👤 Switching to User 2 account...')
177177

178178
// Switch to User 2 account

e2e/specs/wallets/registerName-metamask.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { BrowserContext, expect, Page, test } from '@playwright/test'
22
import dappwright from '@tenkeylabs/dappwright'
3-
import type { Dappwright } from '@tenkeylabs/dappwright'
43

54
import { SafeEnsConfig } from './config/safe-ens-config'
65
import {
@@ -10,7 +9,6 @@ import {
109
} from './config/wallet-ens-config'
1110

1211
// Global variables to share state
13-
let metaMask: Dappwright
1412
let page: Page
1513
let context: BrowserContext
1614
let ensName: string
@@ -103,7 +101,7 @@ test.describe('ENS Name Registration', () => {
103101
// Setup MM before the tests run
104102
test.beforeAll('Setup Metamask', async () => {
105103
console.log('🦊 Setting up MetaMask...')
106-
const [mm, pg, ctx] = await dappwright.bootstrap('chromium', {
104+
const [, pg, ctx] = await dappwright.bootstrap('chromium', {
107105
wallet: 'metamask',
108106
version: SafeEnsConfig.METAMASK.VERSION,
109107
seed: SafeEnsConfig.SEED_PHRASE,
@@ -112,14 +110,13 @@ test.describe('ENS Name Registration', () => {
112110
slowMo: SafeEnsConfig.BROWSER.SLOW_MO,
113111
})
114112

115-
metaMask = mm
116113
page = pg
117114
context = ctx
118115

119116
console.log('✅ MetaMask setup complete')
120117

121118
// Switch to User 2 account and Sepolia network
122-
await switchToUser2AndSepolia(page, metaMask)
119+
await switchToUser2AndSepolia(page)
123120

124121
// Connect wallet to ENS Sepolia
125122
await connectWalletToEns(page, context)

0 commit comments

Comments
 (0)