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

fix: remove check for changeX token from test #29752

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented Jan 16, 2025

Description

PR to temporarily fix flakey test in CI.

The error suggests that its looking for token "Changex" in the UI; while looking at the screenshot from CI the token imported is "changeX";
So the check in the test should be more like
await tokenList.check_tokenIsDisplayed('ChangeX');
and not
await tokenList.check_tokenIsDisplayed('Changex');
In this PR i have removed the check from the test to unblock CI.

Open in GitHub Codespaces

Related issues

Fixes:

Related: #29750

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.

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
Copy link
Collaborator

Builds ready [62079e0]
Page Load Metrics (2123 ± 83 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29627001849651313
domContentLoaded18522657208917785
load18812679212317383
domInteractive31124582512
backgroundConnect67922199
firstReactRender22106533316
getState8105422813
initialActions01000
loadScripts13841988155514268
setupStore792282914
uiStartup223631972557259124
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -3 Bytes (-0.00%)
  • ui: -1 Bytes (-0.00%)
  • common: -1 Bytes (-0.00%)

@sahar-fehri sahar-fehri marked this pull request as ready for review January 16, 2025 16:30
@sahar-fehri
Copy link
Contributor Author

sahar-fehri commented Jan 16, 2025

The list we get from the api has this token

  {
    "address": "0x7051faed0775f664a0286af4f75ef5ed74e02754",
    "symbol": "CHANGE",
    "decimals": 18,
    "name": "Changex",
    "iconUrl": "https://assets.coingecko.com/coins/images/26487/thumb/Changex-mark-200x200.png?1696525560",
    "type": "erc20",
    "aggregators": [
      "coinGecko",
      "oneInch",
      "socket",
      "sonarwatch",
      "coinmarketcap",
      "rango"
    ],
    "occurrences": 6
  },

Which as you can see has the name changex instead of changeX.
Changex is the name i see when run the test locally; wondering if the API used to return changeX at some point and this a cache issue?

gambinish
gambinish previously approved these changes Jan 16, 2025
Copy link
Contributor

@gambinish gambinish left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe we should comment out the line of code rather than remove. Just as a reminder for later.

gambinish
gambinish previously approved these changes Jan 16, 2025
chloeYue
chloeYue previously approved these changes Jan 16, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [42fcfa0]
Page Load Metrics (1628 ± 49 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15041909162910551
domContentLoaded14881899161110852
load15071904162810349
domInteractive26165503115
backgroundConnect76718168
firstReactRender1576422411
getState545884
initialActions01000
loadScripts10721493119110249
setupStore56512168
uiStartup16732079183811053
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

DDDDDanica
DDDDDanica previously approved these changes Jan 16, 2025
@sahar-fehri sahar-fehri dismissed stale reviews from DDDDDanica, gambinish, and chloeYue via 5fb877c January 16, 2025 18:09
@sahar-fehri sahar-fehri enabled auto-merge January 16, 2025 18:10
@metamaskbot
Copy link
Collaborator

Builds ready [5fb877c]
Page Load Metrics (1772 ± 80 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14702164177816880
domContentLoaded14592094174915876
load14812168177216780
domInteractive266839136
backgroundConnect67120189
firstReactRender17104573517
getState580172110
initialActions01000
loadScripts10091668130314771
setupStore678322713
uiStartup172826302210241116
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@sahar-fehri sahar-fehri added this pull request to the merge queue Jan 16, 2025
Merged via the queue into main with commit e825061 Jan 16, 2025
72 checks passed
@sahar-fehri sahar-fehri deleted the fix/fix-import-tokens-flaky-test branch January 16, 2025 19:35
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
@metamaskbot metamaskbot added the release-12.11.1 Issue or pull request that will be included in release 12.11.1 label Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.11.1 Issue or pull request that will be included in release 12.11.1 team-assets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants