Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.2 KB

File metadata and controls

34 lines (23 loc) · 1.2 KB

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

Getting Started

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

GitHub Workflow

An example GitHub workflow has been implemented in .github/workflows/ci.yaml

More info