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: New network and switch network Cypress APIs #1198

Merged
merged 2 commits into from
Aug 11, 2024

Conversation

matstyler
Copy link
Collaborator

@matstyler matstyler commented Aug 11, 2024

Motivation and context

New network and switch network APIs for Cypress.

Does it fix any issue?

https://linear.app/synpress/issue/SYN-129/new-network-approvals-approvenewnetworkspects
https://linear.app/synpress/issue/SYN-131/expand-cypress-api-to-add-approveswitchnetworkspects-test-cases

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 Aug 11, 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 Aug 11, 2024 2:27pm

@matstyler matstyler requested a review from drptbl August 11, 2024 14:27
@matstyler matstyler changed the title Feat/newnetwork switchnetwork feat: new network and switch network Cypress APIs Aug 11, 2024
@matstyler matstyler changed the title feat: new network and switch network Cypress APIs ✨ feat: new network and switch network Cypress APIs Aug 11, 2024
@matstyler matstyler changed the title ✨ feat: new network and switch network Cypress APIs ✨ feat: New network and switch network Cypress APIs Aug 11, 2024
cy.get('#deployERC1155Button').click()

cy.confirmTransaction().then(() => {
cy.wait(5000)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@matstyler why wait? we have to avoid waits at all cost

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we do not have tools to avoid it at the moment, I will have to resolve it separately

Copy link
Collaborator

Choose a reason for hiding this comment

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

@matstyler from my understanding, this transaction has to be confirmed before we can execute next steps in this test.

I think we should add a new task for it => if specific flag is passed to confirmtransaction (waitfortx: true?), then it will automatically wait for tx to be confirmed before moving on.

cy.get('#deployERC1155Button').click()

cy.confirmTransaction().then(() => {
cy.wait(5000)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@matstyler from my understanding, this transaction has to be confirmed before we can execute next steps in this test.

I think we should add a new task for it => if specific flag is passed to confirmtransaction (waitfortx: true?), then it will automatically wait for tx to be confirmed before moving on.

@drptbl drptbl merged commit 51cd205 into new-dawn Aug 11, 2024
9 of 13 checks passed
@drptbl drptbl deleted the feat/newnetwork-switchnetwork branch August 11, 2024 15:01
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