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

Draft
wants to merge 6 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 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%)

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
2 participants