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

test: Modify Stake smoke test not to use default test account for funding #13458

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davibroc
Copy link
Contributor

@davibroc davibroc commented Feb 12, 2025

Description

This is a solution for preventing somebody from draining holesky ETH from our test account as the SRP is currently exposed. Basically the stake account containing the Holesky ETH is now imported from the ENV variable MM_STAKE_TEST_ACCOUNT_PRIVATE_KEY containing the PK of the account. To run the tests locally engineers will need to set the value found 1Password and add it to .js.env

I also reduced the amount of ETH used for staking as requested by the stake team

Related issues

Fixes:
#13433

Manual testing steps

  1. yarn test:e2e:android:debug:run e2e/specs/stake/stake-action-smoke.spec.js

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@davibroc davibroc requested a review from a team as a code owner February 12, 2025 06:57
Copy link
Contributor

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.

@davibroc davibroc added the team-qa QA team label Feb 12, 2025
@davibroc davibroc changed the title Added step to imported stake account with funds test: Modify Stake smoke test not to use default test account for funding Feb 12, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.86%. Comparing base (1937f9a) to head (8f4fb50).
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13458      +/-   ##
==========================================
+ Coverage   61.58%   61.86%   +0.27%     
==========================================
  Files        1953     1974      +21     
  Lines       43442    43834     +392     
  Branches     5835     5916      +81     
==========================================
+ Hits        26753    27116     +363     
- Misses      14905    14919      +14     
- Partials     1784     1799      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davibroc davibroc added the Run Smoke E2E Triggers smoke e2e on Bitrise label Feb 12, 2025
Copy link
Contributor

github-actions bot commented Feb 12, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 8f4fb50
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/1db29cc7-0e40-4ade-adb5-7909ffbe2c0c

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@davibroc davibroc linked an issue Feb 12, 2025 that may be closed by this pull request
@davibroc davibroc force-pushed the test/stake-tests-fix branch from 8f4fb50 to a65f877 Compare February 13, 2025 16:24
await AccountListBottomSheet.tapAddAccountButton();
await AddAccountBottomSheet.tapImportAccount();
await Assertions.checkIfVisible(ImportAccountView.container);
await ImportAccountView.enterPrivateKey(process.env.MM_STAKE_TEST_ACCOUNT_PRIVATE_KEY);
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be a good idea to add this variable in the .js.env.example file as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Run Smoke E2E Triggers smoke e2e on Bitrise team-qa QA team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Stake E2E fails on Bitrise
3 participants