Skip to content

Commit

Permalink
fix: connectToDapp accounts test (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler authored May 8, 2024
1 parent 0f7378f commit 2146ab3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wallets/metamask/test/e2e/connectToDapp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ test('should connect multiple wallets to dapp', async ({ context, page, metamask
// "accounts" param is order agnostic
await metamask.connectToDapp(['Account x2', 'Account 1'])

await expect(page.locator('#accounts')).toHaveText(
'0x70997970c51812dc3a010c7d01b50e0d17dc79c8,0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
)
const accounts = (await page.locator('#accounts').innerText()).split(',').filter((address) => address.includes('0x'))

// Two accounts connected
expect(accounts).toHaveLength(2)
})

0 comments on commit 2146ab3

Please sign in to comment.