Skip to content

Conversation

@seaona
Copy link
Member

@seaona seaona commented Aug 5, 2025

Description

This test uses an anti-pattern that we should avoid. See more context on this issue here:
#19870

There's a work being done to avoid this as a lint rule, but it hasn't been finished yet

Open in GitHub Codespaces

Changelog

CHANGELOG entry:

Related issues

Fixes: #34798

Manual testing steps

  1. yarn test:e2e:single --browser chrome test/e2e/tests/multichain/aggregated-balances.spec.ts --leave-running=true

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.

Description

Open in GitHub Codespaces

Changelog

CHANGELOG entry:

Related issues

Fixes:

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.

…ted balance when "Current Network" is selected` (#34856)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

This test uses an anti-pattern that we should avoid.
See more context on this issue here:
#19870

There's a work being done to avoid this as a lint rule, but it hasn't
been finished yet

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/34856?quickstart=1)

## **Changelog**

<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`

If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`

(This helps the Release Engineer do their job more quickly and
accurately)
-->

CHANGELOG entry:

## **Related issues**

Fixes: #34798

## **Manual testing steps**

1. `yarn test:e2e:single --browser chrome
test/e2e/tests/multichain/aggregated-balances.spec.ts
--leave-running=true`

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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 requested a review from a team as a code owner August 5, 2025 15:30
@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

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 Aug 5, 2025
@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/qa (1 files, +4 -8)
  • 📁 test/
    • 📁 e2e/
      • 📁 page-objects/
        • 📁 pages/
          • 📁 send/
            • 📄 send-token-page.ts +4 -8

@metamaskbot
Copy link
Collaborator

Builds ready [939db78]
UI Startup Metrics (1234 ± 48 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1234111113984812641312
load106197611844310881134
domContentLoaded105497311544210821128
domInteractive18145371735
firstPaint70176116342510721138
backgroundConnect2202092386224229
firstReactRender19143752033
getState84325919
initialActions20183210
loadScripts84175493841867913
setupStore63263710
WebpackHomeuiStartup24101825285716724812745
load19141329245016619992207
domContentLoaded19041323227115919902186
domInteractive1912197231542
firstPaint1646548567180287
backgroundConnect74133049845290
firstReactRender1419031650178219
getState204248441437
initialActions6255679
loadScripts18971320225615419862174
setupStore2462584915186
FirefoxBrowserifyHomeuiStartup14711225187411415461678
load1269107515478813331412
domContentLoaded1268107415468813331412
domInteractive1064938349111230
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect3115156203167
firstReactRender26215352737
getState11321823739
initialActions608414340
loadScripts1246105715308813031384
setupStore836910725
WebpackHomeuiStartup16181389221114216921907
load13691188199812514241604
domContentLoaded13691188199712514241604
domInteractive973331656104245
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect33246493560
firstReactRender52436855562
getState823971223
initialActions40214314
loadScripts13441166197512313941570
setupStore11412017822
Benchmark value 1235 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 220 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 3 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 841 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 230 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 10 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 2411 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1915 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1904 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 74 exceeds gate value 40 for chrome webpack home mean backgroundConnect
Benchmark value 1897 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2745 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2207 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2186 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 290 exceeds gate value 90 for chrome webpack home p95 backgroundConnect
Benchmark value 9 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 2174 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 186 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 1471 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1269 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1269 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 31 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 6 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 1246 exceeds gate value 1230 for firefox browserify home mean loadScripts
Benchmark value 1678 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 230 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 39 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 40 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 1619 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 34 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 53 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 4 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 245 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 60 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 62 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 14 exceeds gate value 2 for firefox webpack home p95 initialActions
Sum of mean exceeds: 1257ms | Sum of p95 exceeds: 1626.8ms
Sum of all benchmark exceeds: 2883.8ms

Copy link
Contributor

@gauthierpetetin gauthierpetetin left a comment

Choose a reason for hiding this comment

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

LGTM

@gauthierpetetin gauthierpetetin merged commit c7af70f into Version-v13.1.0 Aug 6, 2025
25 checks passed
@gauthierpetetin gauthierpetetin deleted the cp-e2e-multichain-aggregated branch August 6, 2025 11:07
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2025
await this.driver.waitForSelector({
css: this.assetValue,
text: value,
});
Copy link

Choose a reason for hiding this comment

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

Bug: Refactoring Hides Specific Test Failures

The refactored checkAccountValueAndSuffix method removes detailed error reporting. It replaces an explicit assertion that provided specific "expected vs. actual" value messages with waitForSelector's text matching. This change results in generic timeout errors instead of informative messages, making it significantly harder to debug test failures when the element exists but contains unexpected text.

Fix in Cursor Fix in Web

@gauthierpetetin gauthierpetetin changed the title fix: flaky test `Multichain Aggregated Balances shows correct aggrega… fix: flaky test Multichain Aggregated Balances shows correct aggregated balance when "Current Network" is selected (#34856) Aug 6, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [75c0cd7]
UI Startup Metrics (1271 ± 65 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1271114415556512961383
load109397513516111221204
domContentLoaded108697013356011151191
domInteractive18134661735
firstPaint70397134444511101178
backgroundConnect2242112617227236
firstReactRender20144352228
getState1033261226
initialActions2013217
loadScripts869755110059900968
setupStore6413279
WebpackHomeuiStartup23481838279316824162707
load18571338236619119302282
domContentLoaded18431330235017619252132
domInteractive2012193281479
firstPaint1726241565208277
backgroundConnect701139110142291
firstReactRender1618837380189338
getState154248341523
initialActions7217517712
loadScripts18361327225916919222119
setupStore146230221525
FirefoxBrowserifyHomeuiStartup13961182185410914681568
load1204104014758112691338
domContentLoaded1204104014748112681338
domInteractive983424440105201
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2615108152862
firstReactRender25206072642
getState827911635
initialActions40518221
loadScripts1183102413747712411311
setupStore9310813728
WebpackHomeuiStartup15981376198713616831851
load13501171171311614211571
domContentLoaded13501171171311614211571
domInteractive93292825092229
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect3218105113152
firstReactRender50416555461
getState9387111228
initialActions5010211414
loadScripts13261147169211413981539
setupStore124210221225
Benchmark value 1272 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1093 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1086 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 224 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 2 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 869 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 1384 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1204 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1191 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 237 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 7 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 969 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 2348 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1858 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1843 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 71 exceeds gate value 40 for chrome webpack home mean backgroundConnect
Benchmark value 1836 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2707 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2283 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2133 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 79 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 292 exceeds gate value 90 for chrome webpack home p95 backgroundConnect
Benchmark value 12 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 2119 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 27 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 4 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 201 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 35 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 21 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 28 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 32 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 51 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 229 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 52 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 61 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 14 exceeds gate value 2 for firefox webpack home p95 initialActions
Sum of mean exceeds: 979ms | Sum of p95 exceeds: 1445.8ms
Sum of all benchmark exceeds: 2424.8ms

@metamaskbot metamaskbot added the release-13.1.0 Issue or pull request that will be included in release 13.1.0 label Aug 19, 2025
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-13.1.0 on PR, as PR was added to branch 13.1.0 when release was cut.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.1.0 Issue or pull request that will be included in release 13.1.0 team-qa QA team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants