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 basic tests for SnapUIRenderer #30099

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Feb 4, 2025

Description

Establishes a base level of unit testing for the SnapUIRenderer including some snapshot and performance tests.

Open in GitHub Codespaces

Related issues

Closes MetaMask/snaps#3060

@metamaskbot metamaskbot added the team-snaps-platform Snaps Platform team label Feb 4, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [8ce28bc]
Page Load Metrics (1626 ± 46 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25419001557314151
domContentLoaded1482187515979244
load1490190016269546
domInteractive237347199
backgroundConnect107235189
firstReactRender1590292311
getState462192010
initialActions00000
loadScripts1058140711538139
setupStore75814136
uiStartup16392306185515072
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [8193410]
Page Load Metrics (1567 ± 46 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1431179615709545
domContentLoaded1419177815459345
load1433179915679546
domInteractive2293382411
backgroundConnect95827168
firstReactRender1572362411
getState45616168
initialActions01000
loadScripts1019134011248541
setupStore65515157
uiStartup16632024177210550
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Feb 4, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [17f8f62]
Page Load Metrics (1736 ± 60 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15642055174213163
domContentLoaded15021976170512460
load15612052173612660
domInteractive17109422311
backgroundConnect1280302010
firstReactRender1579382512
getState5100172411
initialActions00000
loadScripts10611431124310349
setupStore85714147
uiStartup17482518197918890
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [52c195d]
Page Load Metrics (1987 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30122721800511245
domContentLoaded16442261195220297
load16712317198720599
domInteractive26121472411
backgroundConnect1382402110
firstReactRender16100442612
getState671272210
initialActions01000
loadScripts11841694145217182
setupStore7491394
uiStartup185430782309301144
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [8d48d24]
Page Load Metrics (1778 ± 75 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15582161178315574
domContentLoaded14872082174214369
load15542170177815675
domInteractive168136147
backgroundConnect1290382411
firstReactRender1696362512
getState467242211
initialActions0483105
loadScripts10491592127212962
setupStore890262411
uiStartup176726622099223107
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 248 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [25fb3b2]
Page Load Metrics (1746 ± 66 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15122189175013866
domContentLoaded14672164172213565
load15122197174613766
domInteractive23189504019
backgroundConnect106230157
firstReactRender15168403818
getState573232512
initialActions01000
loadScripts10381625125911455
setupStore86016168
uiStartup17202515200820096
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 248 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@FrederikBolding FrederikBolding force-pushed the fb/snap-ui-renderer-tests branch from 13fb039 to debbc76 Compare February 5, 2025 14:31
@metamaskbot
Copy link
Collaborator

Builds ready [debbc76]
Page Load Metrics (1725 ± 60 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15421973172112460
domContentLoaded15281911169611756
load15441968172512460
domInteractive249535189
backgroundConnect107631209
firstReactRender1692402613
getState584182211
initialActions01000
loadScripts10641425122510350
setupStore86215147
uiStartup180427661995212102
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 213 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@FrederikBolding FrederikBolding force-pushed the fb/snap-ui-renderer-tests branch from 1406bd8 to 305a552 Compare February 7, 2025 10:56
@FrederikBolding FrederikBolding marked this pull request as ready for review February 7, 2025 10:56
@FrederikBolding FrederikBolding requested a review from a team as a code owner February 7, 2025 10:56
@metamaskbot
Copy link
Collaborator

Builds ready [305a552]
Page Load Metrics (1777 ± 74 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15762151178215675
domContentLoaded15692093175414871
load15742161177715374
domInteractive278741168
backgroundConnect972232010
firstReactRender16177493919
getState567232311
initialActions01000
loadScripts11041532127211857
setupStore880172010
uiStartup186328212112243117
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 213 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@FrederikBolding FrederikBolding added this pull request to the merge queue Feb 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template team-snaps-platform Snaps Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add basic tests for the Snap UI rendering system
4 participants