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: [POM] Migrate watch account tests #29314

Merged
merged 13 commits into from
Dec 20, 2024
Merged

Conversation

chloeYue
Copy link
Contributor

@chloeYue chloeYue commented Dec 18, 2024

Description

  • Created a new page class AccountDetailsModal. Previously, it was a part of AccountList. I think it's better to separate it and make it an independent class.
  • I also took the chance to improve the function addAccount and remove the origin addNewAccount. So now for creating ethereum, bitcoin, solana accounts, we use the same addAccount function with the account type as a parameter.
  • Migrate watch account e2e tests to Page Object Model
  • Created watchEoaAddress flow that can be reusable.

Open in GitHub Codespaces

Related issues

Manual testing steps

Check code readability, make sure tests pass.

Screenshots/Recordings

Before

After

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.

Copy link
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.

@chloeYue chloeYue requested review from seaona and cmd-ob December 18, 2024 10:50
@chloeYue chloeYue marked this pull request as draft December 18, 2024 11:07
@metamaskbot
Copy link
Collaborator

Builds ready [f149e45]
Page Load Metrics (1674 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint40518511601291140
domContentLoaded14241811164610450
load14671871167411153
domInteractive24583184
backgroundConnect117527188
firstReactRender1594382512
getState65820209
initialActions01000
loadScripts1061139512428943
setupStore75712147
uiStartup16812390195914569
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@chloeYue chloeYue changed the title test: Migrate watch account tests test: [POM] Migrate watch account tests Dec 19, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [d125d81]
Page Load Metrics (1897 ± 173 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint156732181894351169
domContentLoaded151031571859341164
load157132681897360173
domInteractive24263565225
backgroundConnect9149443718
firstReactRender17239564823
getState56916178
initialActions01000
loadScripts112025581416302145
setupStore76817178
uiStartup171541152187500240
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@chloeYue chloeYue marked this pull request as ready for review December 19, 2024 09:50
cmd-ob
cmd-ob previously approved these changes Dec 19, 2024
Copy link
Contributor

@cmd-ob cmd-ob left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work

@chloeYue chloeYue marked this pull request as draft December 19, 2024 12:48
@chloeYue chloeYue marked this pull request as ready for review December 19, 2024 14:48
@metamaskbot
Copy link
Collaborator

Builds ready [b7d2c81]
Page Load Metrics (1970 ± 110 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint168526981970223107
domContentLoaded164226551943225108
load168527031970229110
domInteractive25155613015
backgroundConnect76427209
firstReactRender1791412412
getState778242211
initialActions01000
loadScripts12002137144620498
setupStore863272311
uiStartup199628992272240115
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 131 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

cmd-ob
cmd-ob previously approved these changes Dec 20, 2024
Copy link
Contributor

@cmd-ob cmd-ob 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 [ef2016b]
Page Load Metrics (1428 ± 52 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint13141826143911053
domContentLoaded13071818141010852
load13141827142810852
domInteractive229937209
backgroundConnect74418136
firstReactRender1596403115
getState45116188
initialActions01000
loadScripts9591472105010852
setupStore66712178
uiStartup14852053172619091
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 131 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@chloeYue chloeYue added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit 356ad47 Dec 20, 2024
77 checks passed
@chloeYue chloeYue deleted the migrate-watch-account-tests branch December 20, 2024 11:15
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2024
@metamaskbot metamaskbot added the release-12.11.0 Issue or pull request that will be included in release 12.11.0 label Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.11.0 Issue or pull request that will be included in release 12.11.0 team-extension-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants