Skip to content

End to End testing dapps with Playwright, Rainbowkit 🌈, wagmi, ethers 🫡 and Foundry `anvil`

License

Notifications You must be signed in to change notification settings

re-nft/_article_.dapp-e2e-example

Repository files navigation

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

About

End to End testing dapps with Playwright, Rainbowkit 🌈, wagmi, ethers 🫡 and Foundry `anvil`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published