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

✨ feat: Cypress integration #1117

Closed

Conversation

Seroxdesign
Copy link

Motivation and context

We would like to integrate with Cypress long term, to start this PR will run existing playwright tests via Cypress.task

Does it fix any issue?

N/A

Other useful info

This is a WIP

Quality checklist

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough e2e tests.

⚠️👆 Delete any section you see irrelevant before submitting the pull request 👆⚠️

Copy link

vercel bot commented Mar 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
synpress ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 10:48am

Cypress.Commands.add(
'setupMetamask',
(
secretWordsOrPrivateKey = 'test test test test test test test test test test test junk',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, separate the config from the cypress as we will use it for other configs as well :)

@@ -22,11 +23,15 @@
"lint-staged": {
"package.json": "sort-package-json"
},
"dependencies": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of using mono repo to store these dependencies, try to move it to an example with cypress use case

module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use test dapp (running for playwright in the example).

@@ -0,0 +1,31 @@
import { configure } from '@testing-library/cypress';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to build cypress implementation into the current tool structure (monorepo, components separation etc)

@Seroxdesign
Copy link
Author

@matstyler thanks for the comments, I will get those issues resolved, just a warning that progress is going to be slow on this as I'm currently working full-time but will make sure to get this done before EOM

@matstyler
Copy link
Collaborator

@matstyler thanks for the comments, I will get those issues resolved, just a warning that progress is going to be slow on this as I'm currently working full-time but will make sure to get this done before EOM

Sure, thank you for the contribution. You can use initial configuration I created here - #1118.

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

Successfully merging this pull request may close these issues.

2 participants