-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Multichain debug #28402
Multichain debug #28402
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. |
|
||
// click send button on homepage to start send flow | ||
const homepage = new HomePage(driver); | ||
await homepage.check_pageIsLoaded(); | ||
await homepage.check_expectedBalanceIsDisplayed('<0.000001'); | ||
await homepage.check_expectedBalanceIsDisplayed('20'); |
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.
the mock adds more balance, so we are able to perform a send to ENS in the future
['eth_chainId', { result: `0x${chainId}` }], | ||
// 1. Get the address of the resolver for the specified node |
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.
added some documentation and variables to make the ENS mocks more explicit
result: {}, | ||
}, | ||
})); | ||
await mockMultiNetworkBalancePolling(mockServer); |
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.
polling balance mocks are extracted in this new function, this way we'll be able to use it in other tests
await mockServerJsonRpc(mockServer, [ | ||
['eth_blockNumber'], | ||
['eth_call'], | ||
['eth_estimateGas'], | ||
['eth_feeHistory'], | ||
['eth_gasPrice'], | ||
['eth_getBalance'], |
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.
not needed, as we are mocking the balances using the mockMultiNetworkBalancePolling
id: 3806592044086814, | ||
jsonrpc: '2.0', | ||
result: '0x1bc16d674ec80000', // 2 ETH | ||
}); |
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.
not needed, as we are mocking the balances using the mockMultiNetworkBalancePolling
await withFixtures( | ||
{ | ||
fixtures: new FixtureBuilder({ inputChainId }) |
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.
this is not needed and creates a miss-match with networks, causing to send network requests to localhost
we are using the fitxutre withEthereumMainnet, so we shouldn't change anything from the localhost default fixture
https://github.com/MetaMask/metamask-extension/blob/develop/test/e2e/default-fixture.js#L174
(I think we should also remove this from the default fixture to avoid future network miss-matches, but we can leave this out of scope from this PR)
Builds ready [30ba00e]
Page Load Metrics (2219 ± 190 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
9aff235
into
feat/multi-chain-for-account-tracker-controller-v2
Builds ready [30ba00e]
Page Load Metrics (2219 ± 190 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
List of failing tests:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Swaps
swaps-balance.mp4
ENS
ens-balance.mp4
Pre-merge author checklist
Pre-merge reviewer checklist