hey icon indicating copy to clipboard operation
hey copied to clipboard

Add synpress plugin for web3 testing in playwright

Open bigint opened this issue 1 year ago • 5 comments

In order to improve the testing capabilities of our application, we would like to integrate the Synpress plugin for Playwright. This will allow us to perform wallet signing and test authenticated sessions more efficiently, ensuring a more robust and secure application.

Requirements

  • Install and set up the Synpress plugin for Playwright in the project
  • Configure the Synpress plugin to work with our current testing environment
  • Implement wallet signing functionality to allow testing of blockchain transactions
  • Create tests to verify the functionality of authenticated sessions within the application

Acceptance Criteria

  • Synpress plugin is installed and configured in the project
  • Wallet signing functionality is implemented and working as expected
  • Authenticated session tests are created and passing

Additional Context

Synpress is a plugin for Playwright that provides an easy way to test Ethereum dApps. It includes features such as wallet signing, key management, and contract interaction. Integrating this plugin will help us streamline the testing process for our blockchain-based application, as well as improve the overall security and robustness of the platform.

https://github.com/drptbl/synpress-examples/blob/master/playwright/isolated-state/tests/connect-wallet.spec.ts

https://github.com/Synthetixio/synpress

bigint avatar Mar 24 '23 15:03 bigint

@bigint I'd be interested in working on this issue. Can you provide some more details like which tests should be included?

benbaessler avatar Apr 05 '23 15:04 benbaessler

@benbaessler We need to write test cases for authenticated users, like we need to mock user signing and do e2e there.

bigint avatar Apr 05 '23 16:04 bigint

@bigint is this assigned or can I get to working on it?

0xSero avatar May 11 '23 15:05 0xSero

@Seroxdesign I'll assign to you 🙇🏼

bigint avatar May 12 '23 02:05 bigint

Talking some people people from Synpress, they're helping me debug some issues I've encountered, will update as I learn more

0xSero avatar May 17 '23 13:05 0xSero

This issue has been locked since it has been closed for more than 10 days.

If you found a concrete bug or regression related to it, please open a new bug report.

github-actions[bot] avatar Jan 07 '24 13:01 github-actions[bot]