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: add scenario for personal sign using hardware wallet #23314

Merged
merged 7 commits into from
Mar 14, 2024

Conversation

segun
Copy link
Contributor

@segun segun commented Mar 5, 2024

Description

In this PR we add the scenario for the flow: eth sign with hardware wallet.
This task belongs to the effort of documenting manual QA flows in this Epic.

Open in GitHub Codespaces

Related issues

Fixes: #22027

Manual testing steps

  1. Check the video below.

Screenshots/Recordings

Performing the steps defined in the scenario

personal_sign.mov

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • 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.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@segun segun requested a review from a team as a code owner March 5, 2024 12:33
Copy link
Contributor

github-actions bot commented Mar 5, 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.

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.80%. Comparing base (0604181) to head (e64b8b2).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #23314   +/-   ##
========================================
  Coverage    68.80%   68.80%           
========================================
  Files         1127     1127           
  Lines        43595    43595           
  Branches     11661    11661           
========================================
  Hits         29993    29993           
  Misses       13602    13602           

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

@segun segun self-assigned this Mar 5, 2024
@segun segun added team-confirmations-secure-ux-PR PRs from the confirmations team needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Mar 5, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [d2770a6]
Page Load Metrics (1072 ± 462 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint782941696732
domContentLoaded12168493919
load6425781072963462
domInteractive12168493919
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@seaona seaona left a comment

Choose a reason for hiding this comment

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

See comment

@seaona
Copy link
Contributor

seaona commented Mar 6, 2024

hey @segun the flow description looks good. I've seen that there is some csv formatting problem, since if I check the file, I don't see the table rendered.
See here.

Screenshot from 2024-03-06 16-38-03

If you check another file, you will see the table rendered. Ie.

Screenshot from 2024-03-06 16-35-02

This is likely caused by some comma missing or extra

@segun segun force-pushed the olu/personal-sign-hardware-wallet branch from d2770a6 to a376c30 Compare March 6, 2024 16:37
@metamaskbot
Copy link
Collaborator

Builds ready [a376c30]
Page Load Metrics (1145 ± 415 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint792611344622
domContentLoaded1480352210
load6619811145865415
domInteractive1479352210
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [d02049a]
Page Load Metrics (1144 ± 509 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint802671303919
domContentLoaded147429157
load73250111441059509
domInteractive147429157
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@seaona seaona self-requested a review March 14, 2024 15:36
Copy link
Contributor

@seaona seaona left a comment

Choose a reason for hiding this comment

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

lgtm

@metamaskbot
Copy link
Collaborator

Builds ready [e64b8b2]
Page Load Metrics (975 ± 435 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint752361233818
domContentLoaded1083362010
load612529975905435
domInteractive1083362010
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@segun segun merged commit 9dfde3b into develop Mar 14, 2024
67 checks passed
@segun segun deleted the olu/personal-sign-hardware-wallet branch March 14, 2024 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Mar 14, 2024
@metamaskbot metamaskbot added the release-11.14.0 Issue or pull request that will be included in release 11.14.0 label Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testSuite release-11.14.0 Issue or pull request that will be included in release 11.14.0 team-confirmations-secure-ux-PR PRs from the confirmations team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Hardware wallet: Personal Sign
4 participants