Skip to content

Conversation

Unik0rnMaggie
Copy link
Contributor

@Unik0rnMaggie Unik0rnMaggie commented Jun 25, 2025

Migrate the following e2e test spec files to Typescript and Page object modal

test/e2e/tests/petnames/petnames-helpers.js
test/e2e/tests/petnames/petnames-signatures.spec.js
test/e2e/tests/petnames/petnames-transactions.spec.js

Notes

  1. In the petnames-signature.spec.ts file withSignatureFixtures was used in the first two tests, instead of the original withFixtures, and it does not include withNoNames() parameter.

Verifying with @seaona there is no issue in removing the param, as the AccountController state is empty in the beginning of the test.

  1. The adding of await in the test/e2e/tests/confirmations/signatures/signature-helpers.ts file was reverted in this commit , as it was failing e2e confirmations tests in the CI.

This issue will be investigated with @seaona

Description

Open in GitHub Codespaces

Related issues

Fixes: MMQA-338

Manual testing steps

  1. Go to this page...

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.

@Unik0rnMaggie Unik0rnMaggie requested a review from Copilot June 25, 2025 12:41
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.

@metamaskbot metamaskbot added the team-qa QA team label Jun 25, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the petnames signature tests and helpers from JavaScript to TypeScript, adopting page objects and shared flows for cleaner, more maintainable E2E specs.

  • Adds a new TypeScript spec (petnames-signatures.spec.ts) leveraging withSignatureFixtures and page‐object flows.
  • Introduces a Petnames helper class in TypeScript and removes the old JS helper.
  • Deletes the legacy JS spec and helper files now replaced by the TS versions.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
test/e2e/tests/petnames/petnames-signatures.spec.ts New TS E2E spec for petnames v3/v4 signatures and snap‐based name proposals
test/e2e/tests/petnames/petnames-signatures.spec.js Removed legacy JS spec
test/e2e/tests/petnames/petnames-helpers.ts New TS helper class encapsulating name expectations, clicks, and saves
test/e2e/tests/petnames/petnames-helpers.js Removed legacy JS helper
Comments suppressed due to low confidence (1)

test/e2e/tests/petnames/petnames-helpers.ts:10

  • [nitpick] Public methods in Petnames lack JSDoc. Adding brief comments for parameters and behavior will help future maintainers understand each helper's purpose.
  async expectName(expectedValue: string, isSaved: boolean): Promise<void> {

describe('Petnames - Signatures', function (this: Suite) {
it('can save names for addresses in type 3 signatures', async function () {
await withSignatureFixtures(
this.test?.fullTitle(),
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

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

[nitpick] Using optional chaining on this.test may pass undefined to withSignatureFixtures. Consider using a non-null assertion (e.g., this.test!.fullTitle()) to guarantee a valid title.

Suggested change
this.test?.fullTitle(),
this.test!.fullTitle(),

Copilot uses AI. Check for mistakes.

await testDapp.signTypedDataV4();
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);
await petnames.expectName('test.lens', true);
await petnames.expectName('Test Toke...', true);
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

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

[nitpick] Asserting against the hard-coded truncated string 'Test Toke...' may make the test brittle. Consider asserting the full name or deriving the truncated value dynamically to reflect UI behavior.

Copilot uses AI. Check for mistakes.


async clickName(value: string): Promise<void> {
await this.driver.clickElement({
css: `.name`,
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

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

[nitpick] The selector .name is quite generic and could match multiple elements. Consider scoping it more narrowly or adding a dedicated data-testid to avoid accidental clicks.

Suggested change
css: `.name`,
css: `[data-testid="name-element"]`,

Copilot uses AI. Check for mistakes.

Comment on lines 27 to 32
async saveName(
value: string,
name?: string,
proposedName?: string,
): Promise<void> {
await this.clickName(value);
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

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

[nitpick] The positional optional parameters (name, proposedName) can be confusing when skipping one. Consider refactoring this API to accept a single object with named properties for clarity.

Suggested change
async saveName(
value: string,
name?: string,
proposedName?: string,
): Promise<void> {
await this.clickName(value);
async saveName({
value,
name,
proposedName,
}: { value: string; name?: string; proposedName?: string }): Promise<void> {
await this.saveName({ value: 'exampleValue', name: 'exampleName', proposedName: 'exampleProposedName' });

Copilot uses AI. Check for mistakes.

@Unik0rnMaggie Unik0rnMaggie changed the title test: Migrate petnames signatures test to Typescript and Page object … test: Migrate petnames signatures test to Typescript and Page object modal Jun 25, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [cddcf96]
UI Startup Metrics (1209 ± 76 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1209109214177612621368
load104191812587510891189
domContentLoaded103591512527510821183
domInteractive17144051729
firstPaint66294124243410641164
backgroundConnect84274820
firstReactRender22165162234
getState1563682130
initialActions001001
loadScripts828708104274875968
setupStore95274822
WebpackHomeuiStartup21541627267320822722564
load16451214205618117541926
domContentLoaded16391210205018117501912
domInteractive171187141456
firstPaint1606355071164291
backgroundConnect19123752130
firstReactRender22489535120378413
getState1042541218
initialActions216134
loadScripts16371208204018017481901
setupStore267315561726
FirefoxBrowserifyHomeuiStartup13471208170710814001576
load1188105114098612501374
domContentLoaded1187105014098612501373
domInteractive1123732346124192
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213114132232
firstReactRender23213722427
getState11412617948
initialActions001001
loadScripts1169103713828212281340
setupStore74697612
WebpackHomeuiStartup15441343205717116141980
load13331161174113914191648
domContentLoaded13321160174013914181648
domInteractive91313826388294
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20144562234
firstReactRender40295544347
getState1476491233
initialActions002111
loadScripts13151145172113914031626
setupStore85345818
Benchmark value 1369 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1183 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 21 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 968 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 22 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 2564 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 413 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 113 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 48 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 41 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1980 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 294 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 33 exceeds gate value 32 for firefox webpack home p95 getState
Sum of mean exceeds: 6ms | Sum of p95 exceeds: 404ms
Sum of all benchmark exceeds: 410ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 65.47 KiB (1.24%)
  • ui: 47.73 KiB (0.66%)
  • common: 69.16 KiB (0.83%)

@metamaskbot
Copy link
Collaborator

Builds ready [9667374]
UI Startup Metrics (1218 ± 76 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1218108315177612541378
load104894012746810781195
domContentLoaded104191912646810711188
domInteractive18145571840
firstPaint67197128541610481134
backgroundConnect84305822
firstReactRender24184982444
getState1463371929
initialActions001000
loadScripts831712104365863967
setupStore95295922
WebpackHomeuiStartup22181720296423623512660
load16831292223819518101987
domContentLoaded16771288221719418011982
domInteractive181286151463
firstPaint1626249473179286
backgroundConnect2410304292440
firstReactRender24793405117384403
getState1243861424
initialActions317134
loadScripts16711287220519217991972
setupStore1673762030
FirefoxBrowserifyHomeuiStartup1373122217449914021637
load1205105513936812431363
domContentLoaded1205105413936812431363
domInteractive1153549174115312
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect221388122135
firstReactRender24204942528
getState105679937
initialActions001001
loadScripts1187104213796712231337
setupStore8413313717
WebpackHomeuiStartup15881383224419016832022
load13741174193816514751672
domContentLoaded13741173193816514751671
domInteractive95345016785271
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21144252331
firstReactRender41325144447
getState1374981233
initialActions002111
loadScripts13551161192016414541652
setupStore10511312826
Benchmark value 25 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 832 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 1379 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1195 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1188 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 22 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 967 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 22 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 2218 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 248 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 2660 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 64 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 403 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 1972 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 116 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 312 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 37 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 2022 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1672 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1671 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 271 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 33 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1652 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 53ms | Sum of p95 exceeds: 689ms
Sum of all benchmark exceeds: 742ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 225.58 KiB (4.26%)
  • ui: 60.08 KiB (0.83%)
  • common: 74.3 KiB (0.89%)

@metamaskbot
Copy link
Collaborator

Builds ready [9665936]
UI Startup Metrics (1184 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1184107313195712251297
load102091611395710571117
domContentLoaded101491111325610451108
domInteractive17133851634
firstPaint63184113740710281108
backgroundConnect74364811
firstReactRender21174742227
getState1263061826
initialActions001001
loadScripts81071092855842906
setupStore95425818
WebpackHomeuiStartup22011763273123423142703
load16841320207920017942027
domContentLoaded16781317206619917882010
domInteractive1812121171462
firstPaint1756748175211360
backgroundConnect2510294312441
firstReactRender23091420116363408
getState1243561329
initialActions215134
loadScripts16721315205519717831999
setupStore187297291827
FirefoxBrowserifyHomeuiStartup14041224193612614551641
load1233108615949812851424
domContentLoaded1232108615939812841423
domInteractive1173949363116298
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2513113172345
firstReactRender25214742532
getState12513416941
initialActions001001
loadScripts1212107414969312591396
setupStore84698725
WebpackHomeuiStartup15691330223619016552036
load13561150189915914481681
domContentLoaded13551149189815914481680
domInteractive97314037091306
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22164962240
firstReactRender41305344448
getState13793111233
initialActions002111
loadScripts13371134187815914311657
setupStore85284817
Benchmark value 18 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 2201 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 2704 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2011 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 62 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 360 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 408 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 2000 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 117 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 12 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 298 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 41 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 2036 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1681 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1680 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 306 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 33 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1657 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 22ms | Sum of p95 exceeds: 796ms
Sum of all benchmark exceeds: 818ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 225.58 KiB (4.26%)
  • ui: 60.08 KiB (0.83%)
  • common: 74.3 KiB (0.89%)

@Unik0rnMaggie Unik0rnMaggie marked this pull request as ready for review June 26, 2025 10:41
@metamaskbot
Copy link
Collaborator

Builds ready [b808045]
UI Startup Metrics (1162 ± 56 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1162105413115612111261
load99990411625510311100
domContentLoaded99389811575510241094
domInteractive17134771637
firstPaint717136111938110171068
backgroundConnect74234718
firstReactRender20164132125
getState1364172026
initialActions001001
loadScripts79068195154819896
setupStore85213817
WebpackHomeuiStartup22251685277623323592627
load16961254207319418162013
domContentLoaded16901250206819318112002
domInteractive1912121181462
firstPaint1746272193206321
backgroundConnect21104572539
firstReactRender24090415112373400
getState1244481436
initialActions215134
loadScripts16871249205819218081991
setupStore207270312026
FirefoxBrowserifyHomeuiStartup13471208171010513971596
load1181107913827412061326
domContentLoaded1181107813827412061326
domInteractive1163651473117327
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20137372133
firstReactRender24214832428
getState1058611829
initialActions001001
loadScripts1163106513607211921295
setupStore947711746
WebpackHomeuiStartup16191369218918217172070
load14051178186715315131704
domContentLoaded14041178186715315131703
domInteractive100333746890301
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22154762340
firstReactRender41345544447
getState146120161233
initialActions002111
loadScripts13861159184315314911686
setupStore959110819
Benchmark value 19 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 2225 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 240 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 2628 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 62 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 400 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 1991 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 116 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 327 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 29 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 46 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1620 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1405 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1405 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1386 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 2070 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1704 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1703 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 301 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 33 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1686 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 130ms | Sum of p95 exceeds: 811ms
Sum of all benchmark exceeds: 941ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 23 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [9ddb8aa]
UI Startup Metrics (1174 ± 55 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1174107613485512111264
load100691011345010391093
domContentLoaded100090511295010331085
domInteractive17134561737
firstPaint728131112539010331092
backgroundConnect6413279
firstReactRender24165272641
getState1463581929
initialActions001001
loadScripts79770291749830879
setupStore85244917
WebpackHomeuiStartup21891732263720023062605
load16661234205916817461971
domContentLoaded16601230205516717431958
domInteractive171284141457
firstPaint1646456875177308
backgroundConnect2610281372437
firstReactRender26089437126388402
getState1143151421
initialActions216134
loadScripts16531228204516417361947
setupStore187308301928
FirefoxBrowserifyHomeuiStartup13771230181710614171621
load1207106714087112531359
domContentLoaded1207106714087212521359
domInteractive1173648375121205
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2313142152246
firstReactRender24213822528
getState1258315951
initialActions001001
loadScripts1187105613937112321346
setupStore849511719
WebpackHomeuiStartup15691373210518016652032
load13621188177815014701663
domContentLoaded13611187177715014701663
domInteractive97314626393264
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21144052235
firstReactRender40325744346
getState1274271232
initialActions001011
loadScripts13431167175715014521644
setupStore95839829
Benchmark value 24 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 260 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 2606 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 402 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 117 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 12 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 205 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 51 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 41 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 2032 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1663 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1663 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 264 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 1644 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 29 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 37ms | Sum of p95 exceeds: 447ms
Sum of all benchmark exceeds: 484ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 23 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [4878b8c]
UI Startup Metrics (1208 ± 55 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1208106913485512471295
load103392911805310671117
domContentLoaded102792411735210601111
domInteractive17134851727
firstPaint69072113740810511086
backgroundConnect74424810
firstReactRender22173952336
getState1563582231
initialActions001000
loadScripts81971996051851907
setupStore85274816
WebpackHomeuiStartup22061677279022123412629
load16711245206318017771953
domContentLoaded16651241205217917731949
domInteractive181275151464
firstPaint177661669160177296
backgroundConnect2610331322545
firstReactRender25390436118383415
getState1244571330
initialActions217134
loadScripts16621239204117717701947
setupStore1676391831
FirefoxBrowserifyHomeuiStartup14151228204514614601714
load1222109115129312781405
domContentLoaded1221109115129312781404
domInteractive1213649071123313
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2514151202354
firstReactRender26225642631
getState205218371086
initialActions001001
loadScripts1202107414789112601391
setupStore10417119926
WebpackHomeuiStartup16261402219520517812049
load13951206189216715091692
domContentLoaded13951206189116715081691
domInteractive102334837689287
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2516224222446
firstReactRender42315744448
getState2373064313105
initialActions001011
loadScripts13731184186716614891671
setupStore1059711927
Benchmark value 16 exceeds gate value 15 for chrome browserify home mean getState
Benchmark value 2206 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 253 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 2629 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 64 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 415 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 1416 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 122 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 20 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 11 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1714 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 313 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 86 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 1627 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1396 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1396 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 102 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 24 exceeds gate value 15 for firefox webpack home mean getState
Benchmark value 1374 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 2049 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1692 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1691 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 287 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 105 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1671 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 141ms | Sum of p95 exceeds: 883ms
Sum of all benchmark exceeds: 1024ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 23 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

@Unik0rnMaggie Unik0rnMaggie changed the title test: Migrate petnames signatures test to Typescript and Page object modal test: Migrate petnames tests to Typescript and Page object modal Jun 27, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [a73f4b8]
UI Startup Metrics (1177 ± 64 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1177107514236412121294
load100486311936010411109
domContentLoaded99685511886110331100
domInteractive17134461634
firstPaint666130112738810131099
backgroundConnect9412413913
firstReactRender251799112745
getState1565282030
initialActions001001
loadScripts78965598560822895
setupStore95294920
WebpackHomeuiStartup22281776281724823602712
load16851247221722518442083
domContentLoaded16791243221222418352070
domInteractive1912150191462
firstPaint1686360780187343
backgroundConnect2412281272440
firstReactRender22094412105341407
getState145116131435
initialActions613053035
loadScripts16761241220222318322059
setupStore207271331932
FirefoxBrowserifyHomeuiStartup13591210191913914121695
load1186105415409912441414
domContentLoaded1186105415399912431414
domInteractive1133546567122270
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213208202041
firstReactRender24214942433
getState16525435967
initialActions001001
loadScripts1167103815269712251376
setupStore10488141037
WebpackHomeuiStartup16271390282822417032077
load13931182225817314901705
domContentLoaded13921181225717314901705
domInteractive102313716696285
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23166282438
firstReactRender43326044551
getState197257351334
initialActions102111
loadScripts13731165223117314731680
setupStore12530030827
Benchmark value 26 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 16 exceeds gate value 15 for chrome browserify home mean getState
Benchmark value 20 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 2228 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 2712 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2083 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2071 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 63 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 343 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 407 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 2060 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 114 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 17 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 11 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1695 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 270 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 67 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 37 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1627 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1393 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1393 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 102 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 43 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 20 exceeds gate value 15 for firefox webpack home mean getState
Benchmark value 1373 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 2077 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1705 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1705 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 285 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 51 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 34 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1680 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 115ms | Sum of p95 exceeds: 1099ms
Sum of all benchmark exceeds: 1214ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 23 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

@Unik0rnMaggie Unik0rnMaggie requested a review from a team June 27, 2025 16:43
cursor[bot]

This comment was marked as outdated.

@Unik0rnMaggie
Copy link
Contributor Author

Hi @chloeYue ! thank you very much for the review! The new added functions are renamed and will make sure to remember to follow the best practices doc, moving forward.

@metamaskbot
Copy link
Collaborator

Builds ready [52b12be]
UI Startup Metrics (1171 ± 79 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1171106015647912341289
load99485313157510471115
domContentLoaded98784713117410391107
domInteractive18135871637
firstPaint693142114739110221106
backgroundConnect84303812
firstReactRender2516145182244
getState1565592233
initialActions001001
loadScripts78464693568840907
setupStore95254921
WebpackHomeuiStartup22661730282620723572694
load17381288213817418242022
domContentLoaded17321284211817318202012
domInteractive191297181468
firstPaint1726360087198361
backgroundConnect21105082339
firstReactRender23191425104349394
getState14577111432
initialActions218134
loadScripts17291283210717118182000
setupStore207312312139
FirefoxBrowserifyHomeuiStartup14551273208414714951798
load1265108215289213241454
domContentLoaded1265108215279213241454
domInteractive1243952085128332
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2413120142550
firstReactRender26224942732
getState155299311042
initialActions001001
loadScripts1244106515039313031439
setupStore957611833
WebpackHomeuiStartup16371384221520217432115
load14061176186615815251680
domContentLoaded14061175186615815241679
domInteractive109344958196315
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23154762638
firstReactRender42335534447
getState155121141334
initialActions002111
loadScripts13871158183415715091661
setupStore13525027848
Benchmark value 25 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 16 exceeds gate value 15 for chrome browserify home mean getState
Benchmark value 21 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 2266 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1739 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1733 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 1730 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2694 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2012 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 68 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 361 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 394 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 2001 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 1455 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1266 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1265 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 124 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 27 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 16 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 1245 exceeds gate value 1230 for firefox browserify home mean loadScripts
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1798 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 332 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 42 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 33 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1638 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1407 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1406 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 110 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 43 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1387 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 14 exceeds gate value 13 for firefox webpack home mean setupStore
Benchmark value 2115 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1680 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1679 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 315 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 34 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1661 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 48 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 418ms | Sum of p95 exceeds: 1074ms
Sum of all benchmark exceeds: 1492ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 23 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [eac233c]
UI Startup Metrics (1210 ± 64 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1210106113836412581325
load103392011765810631143
domContentLoaded102691511675810581133
domInteractive18144761728
firstPaint67276117241310441139
backgroundConnect84294915
firstReactRender23184462437
getState1674382332
initialActions001001
loadScripts81770895757846923
setupStore95224920
WebpackHomeuiStartup21811718275323923002674
load16471306205319317631991
domContentLoaded16411302204219117591985
domInteractive1912126181462
firstPaint1656238769204311
backgroundConnect309299482452
firstReactRender25088456127388409
getState13473101526
initialActions318135
loadScripts16381301203218917581974
setupStore187202212033
FirefoxBrowserifyHomeuiStartup14221250193712114901675
load1250106715409513161428
domContentLoaded1249106715409513161427
domInteractive1203748468131263
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2515206252339
firstReactRender26215652632
getState12511115936
initialActions002001
loadScripts1227104914839012951398
setupStore10419520828
WebpackHomeuiStartup16081374232220217112064
load13841192203016214791703
domContentLoaded13831191203016214781703
domInteractive103324837390295
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect25165362640
firstReactRender41325344447
getState12582111133
initialActions002111
loadScripts13631172199916114621682
setupStore12416521935
Benchmark value 17 exceeds gate value 15 for chrome browserify home mean getState
Benchmark value 20 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 250 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 2675 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 62 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 409 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 1975 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 1423 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1250 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1250 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 120 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 12 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 11 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1675 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 263 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 36 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 28 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1384 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1384 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 104 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1364 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 2064 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1703 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1703 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 295 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 33 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1682 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 35 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 86ms | Sum of p95 exceeds: 783ms
Sum of all benchmark exceeds: 869ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 33 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

@Unik0rnMaggie Unik0rnMaggie requested a review from chloeYue July 1, 2025 12:52
pnarayanaswamy
pnarayanaswamy previously approved these changes Jul 1, 2025
@@ -93,6 +107,10 @@ class Confirmation {
);
}

async clickFooterCancelButtonAndWaitToDisappear() {
await this.driver.clickElementAndWaitToDisappear(this.footerCancelButton);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I think here, we want clickElementAndWaitForWindowToClose, as the dialog closes once the button is clicked. Just a nit, as the above could also serve as flakiness mitigation, but we rather use this method when we are dealing with winow management flakiness, and the other one, when we are remain at the same window, if that makes sense

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you very much! I tried to update it to clickElementAndWaitForWindowToClose , but the test was failing with this error: Error: waitForWindowToClose timed out waiting for window handle to close.

I tried using it before, and got the same error.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, you can dismiss my suggestion 🙏 I see what's happening, so this method is used both by the dialog view and for the full view, so in the full view, the window will never be closed. That's why the spec fails.
Thanks for looking into it ❤️

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.

thank you for the changes!! I added a couple of small nits, just as small improvements if you want to take them.

Great work!!

@seaona seaona self-requested a review July 1, 2025 15:23
@metamaskbot
Copy link
Collaborator

Builds ready [97d9cfc]
UI Startup Metrics (1184 ± 56 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1184107513565612291274
load100391111705110331093
domContentLoaded99589911625110271086
domInteractive17134051729
firstPaint674133116839110111082
backgroundConnect94355924
firstReactRender23175162340
getState1563482130
initialActions001001
loadScripts79069993749822880
setupStore95284919
WebpackHomeuiStartup22231689274520323122670
load17041213207618417992018
domContentLoaded16981209204818317942014
domInteractive191289161566
firstPaint1616867891170336
backgroundConnect2712305382546
firstReactRender21891415108360402
getState154307301527
initialActions217135
loadScripts16951207203718217932004
setupStore187278272029
FirefoxBrowserifyHomeuiStartup14321243211913514791665
load12591084173410113181419
domContentLoaded12591084173410113161418
domInteractive1293653983138305
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect211379102245
firstReactRender25225042631
getState11589131031
initialActions001001
loadScripts12411071170810113011395
setupStore12422127833
WebpackHomeuiStartup16771396231719717682150
load14431182187716015421771
domContentLoaded14421182187616015421771
domInteractive1123250478103317
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2615242252643
firstReactRender44345744652
getState145186201134
initialActions002111
loadScripts14181158185415515181695
setupStore16625234965
Benchmark value 25 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 19 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 2224 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 2670 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2014 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 66 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 337 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 402 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 2005 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 1433 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1260 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1259 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 129 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 12 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 1241 exceeds gate value 1230 for firefox browserify home mean loadScripts
Benchmark value 12 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1665 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 305 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 31 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 33 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1678 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1443 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1443 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 112 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 27 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 44 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1418 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 17 exceeds gate value 13 for firefox webpack home mean setupStore
Benchmark value 2150 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1771 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1771 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 317 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 52 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 34 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1695 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 65 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 400ms | Sum of p95 exceeds: 1145ms
Sum of all benchmark exceeds: 1545ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 267 Bytes (0%)
  • ui: 35.78 KiB (0.49%)
  • common: 2.72 KiB (0.03%)

@metamaskbot
Copy link
Collaborator

Builds ready [adbf51b]
UI Startup Metrics (1216 ± 72 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1216111715707212611329
load103293513246310651129
domContentLoaded102593213196210601122
domInteractive18144761733
firstPaint65183112639910271102
backgroundConnect85152911
firstReactRender23175062340
getState1574492033
initialActions001000
loadScripts816729109260846917
setupStore96374916
WebpackHomeuiStartup22751708287023323832811
load17141282215919918372089
domContentLoaded17071277213719718332085
domInteractive181282141553
firstPaint1677137464193291
backgroundConnect24135792944
firstReactRender25293447117380419
getState16595131844
initialActions217134
loadScripts17041274212619618252083
setupStore227313312343
FirefoxBrowserifyHomeuiStartup13841198191414214501669
load1204104714669712511422
domContentLoaded1204104614669712511421
domInteractive1113544055121184
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect221293132352
firstReactRender24216042431
getState16527838980
initialActions001001
loadScripts1186103414469612351393
setupStore144219301067
WebpackHomeuiStartup16931400232819617942110
load14591210204115815791730
domContentLoaded14591210204015815791730
domInteractive104343816496295
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23156092643
firstReactRender44345344651
getState1144471030
initialActions001011
loadScripts14381189201815815521707
setupStore15526932932
Benchmark value 24 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 16 exceeds gate value 15 for chrome browserify home mean getState
Benchmark value 2276 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1715 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1708 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 253 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 1705 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2812 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2090 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2085 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 419 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 2083 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 112 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 16 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 15 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1669 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 80 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 67 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1694 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1460 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1460 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 104 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 44 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1438 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 15 exceeds gate value 13 for firefox webpack home mean setupStore
Benchmark value 2110 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1730 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1730 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 295 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 51 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 1707 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 32 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 460ms | Sum of p95 exceeds: 1301ms
Sum of all benchmark exceeds: 1761ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 33 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Dropdown Dismissal Broken in Firefox

The saveName method now calls driver.fill() and driver.press() directly with a selector, whereas the original implementation first found the element and then called these methods on the element object. This change in API usage (from element.method() to driver.method(selector)) may cause incorrect behavior, potentially breaking the dropdown dismissal functionality in Firefox that relies on the Enter key press.

test/e2e/page-objects/pages/confirmations/redesign/confirmation.ts#L203-L209

if (name) {
await this.driver.fill(this.formComboFieldInputSelector, name);
// Pressing enter before saving is needed for firefox to get the dropdown to go away.
await this.driver.press(
this.formComboFieldInputSelector,
this.driver.Key.ENTER,
);

Fix in Cursor


Was this report helpful? Give feedback by reacting with 👍 or 👎

@metamaskbot
Copy link
Collaborator

Builds ready [0e75957]
UI Startup Metrics (1164 ± 71 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1164105616207111951273
load99490314096310231090
domContentLoaded98789813946310171080
domInteractive1914145141740
firstPaint66115514073939961074
backgroundConnect84335819
firstReactRender22154552235
getState1463572029
initialActions001001
loadScripts782694115060813869
setupStore95414814
WebpackHomeuiStartup21811648279123623012630
load16401236212020417412057
domContentLoaded16321232211519817352037
domInteractive1912195251457
firstPaint1636788899172339
backgroundConnect239301292339
firstReactRender26288423122385400
getState174313411430
initialActions216134
loadScripts16281230210519717342027
setupStore1673761926
FirefoxBrowserifyHomeuiStartup13831193176711214261620
load1211106314088012741352
domContentLoaded1210106314078012741352
domInteractive1183544462131216
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2413116182175
firstReactRender25215352533
getState13524828924
initialActions001001
loadScripts1191104813937812541326
setupStore12426632826
WebpackHomeuiStartup16271347238520817482101
load14021146187316015231725
domContentLoaded14011146187316015221724
domInteractive1073947672101291
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect241576112646
firstReactRender42305244448
getState165207311031
initialActions002111
loadScripts13791126184215815061665
setupStore11510314837
Benchmark value 19 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 262 exceeds gate value 235 for chrome webpack home mean firstReactRender
Benchmark value 2630 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2058 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2038 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 340 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 400 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 2027 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 118 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 13 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 13 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 216 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 75 exceeds gate value 70 for firefox browserify home p95 backgroundConnect
Benchmark value 1628 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1402 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1402 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 108 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 16 exceeds gate value 15 for firefox webpack home mean getState
Benchmark value 1379 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 2101 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1725 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1724 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 291 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 1665 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Benchmark value 37 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 130ms | Sum of p95 exceeds: 831ms
Sum of all benchmark exceeds: 961ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 33 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 15 Bytes (0%)

@Unik0rnMaggie Unik0rnMaggie added this pull request to the merge queue Jul 3, 2025
Merged via the queue into main with commit 2ed7142 Jul 3, 2025
146 checks passed
@Unik0rnMaggie Unik0rnMaggie deleted the migrate-petnames-sig branch July 3, 2025 11:01
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2025
@metamaskbot metamaskbot added the release-12.23.0 Issue or pull request that will be included in release 12.23.0 label Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.23.0 Issue or pull request that will be included in release 12.23.0 team-qa QA team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants