Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbaldzhiev/metamask-chrome-playwright
A project for exploring the topic of Chrome Extensions (Metamask wallet) with Playwright
https://github.com/nbaldzhiev/metamask-chrome-playwright
chrome-extension metamask playwright
Last synced: 5 days ago
JSON representation
A project for exploring the topic of Chrome Extensions (Metamask wallet) with Playwright
- Host: GitHub
- URL: https://github.com/nbaldzhiev/metamask-chrome-playwright
- Owner: nbaldzhiev
- Created: 2024-10-31T09:59:07.000Z (6 days ago)
- Default Branch: main
- Last Pushed: 2024-10-31T16:01:51.000Z (6 days ago)
- Last Synced: 2024-10-31T17:17:27.840Z (6 days ago)
- Topics: chrome-extension, metamask, playwright
- Language: CSS
- Homepage:
- Size: 20 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sphere market <> Metamask wallet
A repository containing a small Playwright (TS) project for working with a
Chrome extension - Metamask wallet.The project contains a single test where the Sphere market is signed into using
a newly created Metamask wallet (used as a Chrome extension).## Installation & running the test
$ pnpm install
$ pnpm install:chromium
$ pnpm test## Known issues/limitations
Playwright's support for browser extensions is not great, currently only
possible with the Chrome browser - https://playwright.dev/docs/chrome-extensions.This project is completed only using Playwright, without 3rd party tools.
A really unpleasant issue that I've observed is the arbitrary number of pages
that get automatically opened upon initialisation - sometimes 2, other times 3.
I haven't investigated long enough why that happens, but the function
`waitForMetamaskPage` that I created seems stable enough & works well regardless of this issue.