-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
chore(e2e): cleanup #6503
chore(e2e): cleanup #6503
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6503 +/- ##
==========================================
- Coverage 89.09% 89.08% -0.02%
==========================================
Files 732 732
Lines 31942 31942
Branches 6151 5833 -318
==========================================
- Hits 28459 28455 -4
- Misses 3285 3439 +154
+ Partials 198 48 -150 see 68 files with indirect coverage changes Continue to review 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.
🚀
* @param stableToken: recognised token symbol (e.g. 'cUSD') | ||
* @param amountEther: amount in "ethers" (as opposed to wei) | ||
*/ | ||
const fundWallet = async (senderPrivateKey, recipientAddress, stableToken, amountEther) => { |
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.
Guess this might be useful as a util if we have a test in the future that needs to use a new wallet with funds, but I guess we can refactor this later too
return s | ||
} | ||
|
||
export async function waitForElementByText({ text, index, tap = false, timeout = 30_000 }) { |
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.
seems like there are a couple of usages for this. Are we removing since we favor test by ids over text?
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.
Detox's built-in element(by.text('...')) is robust enough that keeping this function doesn't make sense. By removing it now, we'll prevent its usage from growing.
Description
pixelmatch
e2e/src/utils/utils.js
toe2e/src/utils/navigation.js
Test plan
Related issues
Backwards compatibility
Yes
Network scalability
N/A