Skip to content

test: add spec Vault decrypt - paste encrypted vault into field#26678

Merged
seaona merged 3 commits intodevelopfrom
test-vault-decrypt-paste-into-field
Sep 2, 2024
Merged

test: add spec Vault decrypt - paste encrypted vault into field#26678
seaona merged 3 commits intodevelopfrom
test-vault-decrypt-paste-into-field

Conversation

@seaona
Copy link
Copy Markdown
Member

@seaona seaona commented Aug 27, 2024

Description

This PR adds a new spec for testing the flow for pasting the encrypted vault into the vault decryptor page. This was suggested by @davidmurdoch which also provided the logic for the implementation 🙇‍♀️ .

At the moment, we were only testing the upload file functionality. Now we test both the upload file, and the paste into the field.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3081

Manual testing steps

  1. Check ci https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/97427/workflows/97876a83-553e-4142-8915-32a05c931080/jobs/3626438
  2. Or run test locally yarn dist && yarn test:e2e:single test/e2e/vault-decryption-chrome.spec.js --browser=chrome --leave-running=true

Screenshots/Recordings

paste-vault-into-field.mp4

Pre-merge author checklist

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.

@seaona seaona added team-extension-platform Extension Platform team e2e-test End to end test for the MetaMask extension area-qa Relating to QA work (Quality Assurance) labels Aug 27, 2024
@seaona seaona self-assigned this Aug 27, 2024
@github-actions
Copy link
Copy Markdown
Contributor

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.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Aug 27, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/abstract-level@1.0.4 None 0 479 kB vweevers
npm/browser-level@1.0.1 None 0 42.4 kB vweevers
npm/catering@2.1.1 None 0 5 kB vweevers
npm/classic-level@1.4.1 filesystem 0 5.75 MB vweevers
npm/level-supports@4.0.1 None 0 30.3 kB vweevers
npm/level-transcoder@1.0.1 None 0 35.9 kB vweevers
npm/level@8.0.1 None 0 85.1 kB vweevers
npm/module-error@1.0.2 None 0 7.28 kB vweevers
npm/napi-macros@2.2.2 None 0 16.8 kB mafintosh
npm/queue-microtask@1.2.3 None 0 8.37 kB feross
npm/run-parallel-limit@1.1.0 None 0 7.88 kB feross

View full report↗︎

@socket-security
Copy link
Copy Markdown

socket-security bot commented Aug 27, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Native code npm/classic-level@1.4.1 🚫

View full report↗︎

Next steps

What's wrong with native code?

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/classic-level@1.4.1

@sonarqubecloud
Copy link
Copy Markdown

"analytics-node/axios": "^0.21.2",
"bn.js": "^5.2.1",
"ganache-core/lodash": "^4.17.21",
"ganache/abstract-level": "1.0.4",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

added this entry in the resolutions as per this suggestion from @legobeat
#26612 (comment)

@seaona seaona marked this pull request as ready for review August 27, 2024 10:24
@seaona seaona requested a review from a team as a code owner August 27, 2024 10:24
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.09%. Comparing base (d9e989e) to head (56be2d9).
Report is 120 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26678   +/-   ##
========================================
  Coverage    70.09%   70.09%           
========================================
  Files         1413     1413           
  Lines        49255    49255           
  Branches     13768    13768           
========================================
  Hits         34524    34524           
  Misses       14731    14731           

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

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [56be2d9]
Page Load Metrics (93 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7555811510249
domContentLoaded50470868842
load575489310550
domInteractive18250384924
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Copy Markdown
Contributor

@chloeYue chloeYue left a comment

Choose a reason for hiding this comment

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

LGTM !

Copy link
Copy Markdown
Contributor

@hjetpoluru hjetpoluru left a comment

Choose a reason for hiding this comment

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

LGTM

@seaona seaona merged commit dcea6ce into develop Sep 2, 2024
@seaona seaona deleted the test-vault-decrypt-paste-into-field branch September 2, 2024 12:22
@github-actions github-actions bot locked and limited conversation to collaborators Sep 2, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 2, 2024
@gauthierpetetin gauthierpetetin added release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-qa Relating to QA work (Quality Assurance) e2e-test End to end test for the MetaMask extension release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-extension-platform Extension Platform team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants