-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test: Fix Swap Smoke tests failures #8254
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8254 +/- ##
==========================================
+ Coverage 39.83% 40.21% +0.37%
==========================================
Files 1233 1234 +1
Lines 29821 29883 +62
Branches 2840 2862 +22
==========================================
+ Hits 11880 12017 +137
+ Misses 17252 17175 -77
- Partials 689 691 +2 ☔ View full report in Codecov by Sentry. |
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.
do not forget to run bitrise.
43525ab
to
10463e1
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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.
Looks good
Description
The problem with these tests is that we check for the Swap to complete we wait for this pop up message to appear Swap complete ETH to DAI so we call checkIfElementByTextIsVisible which has a timeout of 25 secs. However sometime, depending on network conditions, it can take longer and that’s what causes the flakiness. Right now the 25 secs is hardcoded in checkIfElementByTextIsVisible. I changed the parameter to be optional so I can pass 60 secs which should be enough for the Swap to complete.
I also changed some the
Swap from the token chart
test to be a regression not a smoke as it's uncommonand added token chart display test as smoke test
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist