Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration testing for frontend <-> contract interaction #417

Open
metalboyrick opened this issue Jan 9, 2025 · 1 comment
Open

Integration testing for frontend <-> contract interaction #417

metalboyrick opened this issue Jan 9, 2025 · 1 comment
Assignees

Comments

@metalboyrick
Copy link
Collaborator

Issue Overview

Currently integration testing of scaffold functionality (debug-ui, hooks) is done manually and takes a tremendous amount of time. We would like a mechanism where we can automatically test new changes with frontend <-> contract interactions without breaking existing ones. Solution is preferably CI-able.

Proposed Solutions or Ideas

Feel free to discuss or think of your own approach, but be sure to communicate to the team about it

  • Brainstorm whether to use react-testing-library or browser based libraries like playwright.
  • The flow of the job should be of the following:
    • Bring over the v3-bulletproof-contracts branch to the job scope.
    • Set up the appropriate environment (note that if you are planning to test on sepolia you might need to take into account using
      third party wallets or set up a wallet programatically).
    • Write the test suites
@kon-rad
Copy link

kon-rad commented Jan 9, 2025

@metalboyrick, from my research looks like best way is to use Synpress with Playwright.
https://github.com/Synthetixio/synpress

for it's integration with web3 wallets. Do we need to test with metamask or what wallet?

will setup CI with github actions like this example:
https://github.com/Synthetixio/synpress/blob/dev/.github/workflows/test.yml#L30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants