-
Notifications
You must be signed in to change notification settings - Fork 411
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
Tests: Fix hp tests #4024
Tests: Fix hp tests #4024
Conversation
Branch preview✅ Deploy successful! Storybook: |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
📦 Next.js Bundle Analysis for safe-wallet-webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Coverage report
Show files with reduced coverage 🔻
Test suite run success1447 tests passing in 200 suites. Report generated by 🧪jest coverage report action from 58f9f0f |
@@ -62,7 +62,8 @@ function executeTransaction() { | |||
} | |||
|
|||
function addToBatchButton() { | |||
cy.contains(addToBatchBtn).should('be.visible').and('not.be.disabled').click() | |||
cy.wait(1000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this timeout is necessary. The button is rendered immediately, it's just not in the viewport.
@@ -62,7 +62,8 @@ function executeTransaction() { | |||
} | |||
|
|||
function addToBatchButton() { | |||
cy.contains(addToBatchBtn).should('be.visible').and('not.be.disabled').click() | |||
cy.wait(1000) | |||
cy.get('button').contains(addToBatchBtn).scrollIntoView().should('not.be.disabled').click() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you don't check if the button is visible, so no need to scroll to it either.
What it solves
How this PR fixes it
How to test it