Replies: 1 comment 2 replies
-
For those coming here, this library works great so far, https://github.com/cawabunga/headless-web3-provider Possibly not needed with rivet since most of the work is already done by the provider above. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Objective
To augment Rivet's functionality by allowing it to act as a test fixture in E2E tests, specifically targeting frameworks like Cypress and Playwright.
Proposal
What if we could have Rivet's provider injected directly into the test page? This would allow for easy setup and teardown without the need for Rivet to run as a browser extension. The injected provider would be capable of communicating with Rivet over HTTP or through page handles provided by the testing frameworks.
By enabling provider injection, we could set up and manipulate the blockchain state as part of our test suite. This opens the door for testing more complex interactions and workflows in dApps and smart contracts.
The aim is twofold—integrating seamlessly with existing testing frameworks and offering the ability to validate complex blockchain use-cases. The beauty lies in its simplicity and the wide range of testing scenarios it would unlock.
Beta Was this translation helpful? Give feedback.
All reactions