Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cypress-polkadot-wallet package was used to attempt creating automated e2e tests using Cypress testing suite on our repo. Multiple attempts were made to implement the example test code in our repo, but to no avail.
Example chainsafe-cypress repo: https://github.com/ChainSafe/cypress-polkadot-wallet?ref=blog.chainsafe.io
While the example repo builds fine independently, its tests passing, migrating the example code into our repo and updating it to fit the dapp's ui interactions have been unfruitful. Cypress scaffolding and built-in methods are working fine, just not the methods from cypress-polkadot-wallet.
Possible issues could have arisen from:
Possible solutions were explored for the above issues, however none have worked and the tests are still failing.
The example repo uses a vanilla typescript and html implementation (main.ts), so I tried 2 types of implementation in our repo (
glove-test.ts
is a similar script call from the example, and I also created a react component version example called<GloveTest />
), which can be found inlayout.tsx
. Neither implementation seem to trigger the chainsafe package methods successfully.The test file itself (
test.cy.ts
) can be found in the cypress/e2e folder.To open the Cypress testing UI and run the test there, run
yarn e2e:open
, or without opening the UI runyarn e2e:run
A message has been sent to the package maintainer/creator seeking guidance and support (no responses yet).