Example: End to End testing dapps with Playwright, Rainbowkit 🌈, wagmi, ethers 🫡 and Foundry anvil
Accompanying article: https://medium.com/renftlabs/end-to-end-testing-dapps-with-playwright-rainbowkit-wagmi-and-anvil-90d1d143512c.
We implemented:
- Rainbowkit 🌈 starter
- A mock wallet using wagmi and ethers 🫡
- End-to-End testing with Playwright onto an
anvil
testnet
Requirements: recent-ish node
, anvil
from Foundry.
- Run
npm install
- Run
npm run e2e test
or see it live (it's fast)npm run e2e test -- --headed
Note: you might need to install the Playwright browsers with
npx playwright install
An example GitHub workflow has been implemented in .github/workflows/ci.yaml
- reNFT: https://www.renft.io
- reNFT Documentation: https://docs.renft.io
- Discord: https://discord.com/invite/4Ab8tknmhf
- Medium: https://medium.com/renftlabs
- Opensea: https://opensea.io/collection/renftlabs
- Telegram: https://t.me/renftlabs
- Twitter: https://twitter.com/renftlabs