Skip to content
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

Merged
merged 8 commits into from
Feb 25, 2025
Merged

chore(e2e): cleanup #6503

merged 8 commits into from
Feb 25, 2025

Conversation

MuckT
Copy link
Collaborator

@MuckT MuckT commented Feb 24, 2025

Description

  • Remove unused util functions
  • Remove unused dev dependency pixelmatch
  • Move navigation utils from e2e/src/utils/utils.js to e2e/src/utils/navigation.js
  • Remove old todo test specs.

Test plan

  • Tested locally on iOS
  • Tested locally on Android
  • Tested in CI

Related issues

  • N/A

Backwards compatibility

Yes

Network scalability

N/A

Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.08%. Comparing base (b40d536) to head (2ec182b).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b40d536...2ec182b. Read the comment docs.

Copy link
Member

@jeanregisser jeanregisser left a 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) => {
Copy link
Contributor

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 }) {
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@MuckT MuckT added this pull request to the merge queue Feb 25, 2025
Merged via the queue into main with commit fcd01e4 Feb 25, 2025
17 checks passed
@MuckT MuckT deleted the tomm/e2e-cleanup-0 branch February 25, 2025 18:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants