-
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
Fixed hardware wallet info popup on token allowance screen #17881
Fixed hardware wallet info popup on token allowance screen #17881
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. |
Builds ready [4c1972d]
Page Load Metrics (1706 ± 59 ms)
Bundle size diffs
|
Verified by QA |
<Box paddingLeft={2} paddingRight={2}> | ||
<LedgerInstructionField showDataInstruction /> | ||
</Box> | ||
)} |
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.
Hey will be nice to have test coverage for above.
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.
Seconded. Thirded.
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 here: ce80c0e
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.
LGTM, I agree with @jpuri that it would be handy to add tests. I can approve after we add a test
<Box paddingLeft={2} paddingRight={2}> | ||
<LedgerInstructionField showDataInstruction /> | ||
</Box> | ||
)} |
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.
Seconded. Thirded.
4c1972d
to
b3ee025
Compare
ce80c0e
to
23b9e71
Compare
Builds ready [40b9362]
Page Load Metrics (1517 ± 63 ms)
Bundle size diffs
|
const textField = getByTestId('custom-spending-cap-input'); | ||
fireEvent.change(textField, { target: { value: '1' } }); | ||
|
||
const nextButton = getByText('Next'); |
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! tests look good. could be handy to add an additional null check to check the text is not showing on the first page
const nextButton = getByText('Next'); | |
expect(queryByText('Prior to clicking confirm:')).toBeNull(); | |
const nextButton = getByText('Next'); |
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.
Good suggestion! Thanks!
Changed it here: 455663d
Builds ready [455663d]
Page Load Metrics (1697 ± 77 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #17881 +/- ##
===========================================
+ Coverage 63.45% 63.55% +0.11%
===========================================
Files 903 903
Lines 35264 35267 +3
Branches 8919 8921 +2
===========================================
+ Hits 22374 22413 +39
+ Misses 12890 12854 -36
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
455663d
to
5857fc5
Compare
Builds ready [5857fc5]
Page Load Metrics (1516 ± 50 ms)
Bundle size diffs
|
Explanation
Screenshots/Screencaps
After
After.mov
Manual Testing Steps
https://metamask.github.io/test-dapp/