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: swap + send eth e2e tests #24449

Merged
merged 12 commits into from
May 24, 2024
Merged

test: swap + send eth e2e tests #24449

merged 12 commits into from
May 24, 2024

Conversation

micaelae
Copy link
Member

@micaelae micaelae commented May 9, 2024

Description

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

@micaelae micaelae requested a review from a team as a code owner May 9, 2024 00:37
@micaelae micaelae requested review from a team as code owners May 9, 2024 16:09
@micaelae micaelae requested a review from kumavis as a code owner May 9, 2024 20:50
Copy link
Contributor

github-actions bot commented May 9, 2024

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.

@micaelae micaelae force-pushed the swap-send-e2e-eth branch 2 times, most recently from a96660e to c0ed904 Compare May 10, 2024 01:48
@micaelae micaelae requested a review from a team as a code owner May 10, 2024 15:30
@micaelae micaelae force-pushed the swap-send-e2e-eth branch 5 times, most recently from f6d9ee1 to f380839 Compare May 17, 2024 16:57
@micaelae micaelae marked this pull request as draft May 18, 2024 01:21
@micaelae micaelae force-pushed the swap-send-e2e-eth branch 3 times, most recently from 729b7fd to a9bf603 Compare May 22, 2024 21:13
@micaelae micaelae marked this pull request as ready for review May 22, 2024 21:14
@BZahory BZahory requested a review from a team as a code owner May 22, 2024 21:16
@micaelae micaelae force-pushed the swap-send-e2e-eth branch 5 times, most recently from 59954b4 to 64eecd2 Compare May 23, 2024 05:44
// TODO does this need to be removed? Needs to be tested with non 1559 network
networkAndAccountSupports1559
? gasFee1559
: `0x${String(gasPriceNon1559 ?? 0)}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use addHexPrefix here instead

Copy link
Contributor

Choose a reason for hiding this comment

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

Side note but is this not a numeric value? We would need to change the base in the next parameter as well if it's a hex

Copy link
Member Author

Choose a reason for hiding this comment

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

If you search for GAS_PRICE_API_MOCK_RESULT or gasPricesCallbackMock it looks like the prices are in decimals

The infura https://gas.api.infura.io/networks/1/gasPrices api might be deprecated tho bc I can't find docs on it

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Not sure why this is blocked by @MetaMask/design-system-engineers, did it previously touch the component-library? Approving to unblock

@micaelae micaelae force-pushed the swap-send-e2e-eth branch 6 times, most recently from ec510e2 to 0f5804a Compare May 24, 2024 19:29
Base automatically changed from mb843/updates-2 to mb843/swap-and-send May 24, 2024 20:50
@micaelae micaelae force-pushed the swap-send-e2e-eth branch 2 times, most recently from 70d6f85 to ad4b598 Compare May 24, 2024 21:11
fix: send-hex-address tests

fix: custom-token-send-transfer tests

fix: ens test

fix: erc721-interaction tests

fix: custom-token-add-approve tests

fix: snap-account-transfers tests

fix: test-snap-txinsights tests

fix: failing-contract tests

fix: settings-security-reveal-srp tests

fix: token-details test

fix: add-hide-token tests

fix: show-hex-data test

fix: test-snap-txinsights-v2 tests

fix: increase-token-allowance test

fix: increase snap-account-transfers delay (flaky)

fix: rm delay for swap-send-eth

fix: contract-interactions test

fix: snap-account-transfers

fix: failing-contract tests

fix: ens test

fix: rm useEthFeeData
fix: show-hex-data.spec tests

fix: swap-send-eth test
@BZahory BZahory merged commit ca18ea6 into mb843/swap-and-send May 24, 2024
16 of 41 checks passed
@BZahory BZahory deleted the swap-send-e2e-eth branch May 24, 2024 23:45
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants