Skip to content

E2E testing library for web3 wallet extensions in Playwright.

License

Notifications You must be signed in to change notification settings

Maksandre/w3wallets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

w3wallets

License npm version CodeQL

Web3 wallets for Playwright.

This library provides methods for interacting with Web3 wallets using Playwright.

npm install -D w3wallets

Getting Started

Only the Backpack wallet is supported at this point.

1. Download Backpack

npx w3wallets backpack

The unzipped files should be stored in the wallets/backpack directory. Add them to .gitignore.

2. Wrap your fixture withWallets

import { test as base } from "@playwright/test";
import { withWallets } from "../src/withWallets";

const test = withWallets(base, { backpack: true });

test("has title", async ({ page, backpack }) => {
  await page.goto("https://playwright.dev/");

  const privateKey =
    "4wDJd9Ds5ueTdS95ReAZGSBVkjMcNKbgZk47xcmqzpUJjCt7VoB2Cs7hqwXWRnopzXqE4mCP6BEDHCYrFttEcBw2";

  await backpack.onboard("Eclipse", privateKey);
});

About

E2E testing library for web3 wallet extensions in Playwright.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •