Skip to content

Commit

Permalink
context
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Oct 22, 2023
1 parent 9351a12 commit 6bec0a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wallets/metamask/test/e2e/metamask.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ describe('MetaMask', () => {
})

describe('lock', () => {
test('should lock the wallet', async ({ metamaskPage }) => {
test('should lock the wallet', async ({ context }) => {
console.log('context.pages().length', context.pages().length)
const metamaskPage = context.pages()[1] as Page
await metamaskPage.bringToFront()

await lock(metamaskPage)
Expand All @@ -102,7 +104,9 @@ describe('MetaMask', () => {
})

describe('unlock', () => {
test('should unlock the wallet', async ({ metamaskPage }) => {
test('should unlock the wallet', async ({ context }) => {
console.log('context.pages().length', context.pages().length)
const metamaskPage = context.pages()[1] as Page
await unlock(metamaskPage, DEFAULT_PASSWORD)

await expect(metamaskPage.locator(HomePageSelectors.logo)).toBeVisible()
Expand Down

0 comments on commit 6bec0a5

Please sign in to comment.