Skip to content

Conversation

@seaona
Copy link
Member

@seaona seaona commented Mar 28, 2025

Description

In some of the change language specs, we change the language and immediately click the close settings button. This action can have no effect, if we click before the language is changes, as then there's a re-render and we are still in the settings page.

We need to wait until the language has been changed before proceeding with the next action. For that, we add a check to make sure the language has changed, every time we perform a changeLanguage action.

Screenshot from 2025-03-28 10-16-42

ci failure: https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/134139/workflows/c284f602-6903-4a81-a0ac-48a05f987ee7/jobs/4696447/tests

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Check ci

Screenshots/Recordings

See in the failure artifacts, how after clicking close settings, we still remain in the settings page. The click was performed but took no effect, as after that the page was re-rendered with the new language.
Then we try to look for an element from the home page but that can't be found as we are still in settings

image

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.

@github-actions
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 Mar 28, 2025
@seaona seaona marked this pull request as ready for review March 28, 2025 09:29
@seaona seaona self-assigned this Mar 28, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [c3d11c0]
UI Startup Metrics (1204 ± 61 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1204108514426112401326
load10519461221571184989
domContentLoaded10459401215571187984
domInteractive16133241627
firstPaint803791222393248984
backgroundConnect106334910
firstReactRender18143231924
getState11532768
initialActions001001
loadScripts83072798356872932
setupStore7517278
WebpackHomeuiStartup955777128688966982
load816648102461850896
domContentLoaded810644101160843891
domInteractive16127191436
firstPaint450611015339833871
backgroundConnect16103971536
firstReactRender14123141325
getState7411179
initialActions001000
loadScripts808643100159842890
setupStore7414279
FirefoxBrowserifyHomeuiStartup13491177198016213661748
load12121047179315212471591
domContentLoaded12121046179315212471591
domInteractive9840168229098
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2515206222234
firstReactRender23187672530
getState6321277
initialActions001001
loadScripts11891030175514712281563
setupStore6312267
WebpackHomeuiStartup9928321546180895974
load8707281370159819930
domContentLoaded8697281370159818930
domInteractive11236207256097
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect221297152362
firstReactRender18162421823
getState8467779
initialActions001001
loadScripts8527151340155805916
setupStore8464878
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

Copy link
Contributor

@chloeYue chloeYue left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix !

@seaona seaona added this pull request to the merge queue Mar 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 28, 2025
@seaona seaona added this pull request to the merge queue Mar 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 28, 2025
@seaona seaona added this pull request to the merge queue Mar 28, 2025
Merged via the queue into main with commit 38fc088 Mar 28, 2025
149 checks passed
@seaona seaona deleted the flaky-test-lang branch March 28, 2025 12:20
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Mar 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

flaky tests release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-qa QA team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants