Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix: Resolved connectToDapp test issue #1128

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
})
Loading