-
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
E2e request queuing #22818
E2e request queuing #22818
Conversation
…fferent selected networks.
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #22818 +/- ##
===========================================
+ Coverage 68.49% 68.51% +0.02%
===========================================
Files 1092 1088 -4
Lines 43170 42914 -256
Branches 11512 11426 -86
===========================================
- Hits 29567 29399 -168
+ Misses 13603 13515 -88 ☔ View full report in Codecov by Sentry. |
Builds ready [2600e22]
Page Load Metrics (753 ± 15 ms)
Bundle size diffs
|
Builds ready [add1d9d]
Page Load Metrics (832 ± 31 ms)
Bundle size diffs
|
Builds ready [2f39f3f]
Page Load Metrics (779 ± 22 ms)
Bundle size diffs
|
Builds ready [195fb6a]
Page Load Metrics (778 ± 12 ms)
Bundle size diffs
|
Builds ready [4f97800]
Page Load Metrics (722 ± 16 ms)
Bundle size diffs
|
Builds ready [bbed57f]
Page Load Metrics (811 ± 23 ms)
Bundle size diffs
|
Builds ready [c599f14]
Page Load Metrics (1029 ± 43 ms)
Bundle size diffs
|
} = require('../../helpers'); | ||
const { PAGES } = require('../../webdriver/driver'); | ||
|
||
// TODO: Have to turn on the setting every time we want to test the setting!?! |
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.
We should be able to add this to the fixture no?
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.
Yes, we should be able to. The issuesis that any type of refresh of the state that happens reverts the request queue setting behavior to default, the setting is off even though it is supposed to be on. This behavior can be replicated in prod with the steps in the next line comment.
css: 'p', | ||
}); | ||
|
||
// TODO: Request Queuing bug when opening both dapps at the same time will have them stuck on the same network, with will be incorrect for one of them. |
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.
// TODO: Request Queuing bug when opening both dapps at the same time will have them stuck on the same network, with will be incorrect for one of them. | |
// TODO: Request Queuing bug when opening both dapps at the same time will have them stuck on the same network, which will be incorrect for one of them. |
also, thats an odd one! defs something to look into. Might be worth making a branch that has a failing test as described here.
'[data-testid="page-container-footer-cancel"]', | ||
); | ||
|
||
// TODO: No second confirmation from dapp two will show, have to go back to the extension to see the switch chain & dapp two's tx. |
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.
nice find on getting this to work!
Similar to above, it might be good to have a failing test on a branch so we can track this as things are updated /merged
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.
great work!
Let me know if you need me to re-approve after rebase/updating the branch!
Builds ready [698ab1e]
Page Load Metrics (1911 ± 87 ms)
Bundle size diffs
|
Description
Adds e2e tests for the request queuing system. Tests include enable the toggle settings, sending a tx from a different selected/global network which results in a switch chain request, and request queuing for multiple daps on different networks.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/1404
Manual testing steps
yarn && yarn build:test
yarn test:e2e:single test/e2e/tests/request-queuing/enable-queuing.spec.js --browser=chrome
yarn test:e2e:single test/e2e/tests/request-queuing/switch-network.spec.js --browser=chrome
yarn test:e2e:single test/e2e/tests/request-queuing/multiple-networks-dapps-txs.spec.js --browser=chrome
yarn test:e2e:chrome && yarn test:e2e:firefox
for a bonus.Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist