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: Flaky test 4byte setting #26111

Merged
merged 6 commits into from
Jul 26, 2024
Merged

fix: Flaky test 4byte setting #26111

merged 6 commits into from
Jul 26, 2024

Conversation

hjetpoluru
Copy link
Contributor

@hjetpoluru hjetpoluru commented Jul 25, 2024

Description

This PR fixes a flaky test for the MMI build where clicking on the Settings menu option was problematic.
I've added a conditional check to wait for the 'Portfolio Dashboard' to load if the build is MMI.

Open in GitHub Codespaces

Related issues

Fixes:
#26110

Manual testing steps

Execute below commands local or in codespaces run in chrome the browser
yarn
yarn build:test:mmi
yarn test:e2e:single test/e2e/tests/settings/4byte-directory.spec.js --browser=chrome

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 metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jul 25, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [4d49b49]
Page Load Metrics (67 ± 8 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6212695188
domContentLoaded96531188
load389967188
domInteractive96531188
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@hjetpoluru hjetpoluru marked this pull request as ready for review July 25, 2024 14:45
@hjetpoluru hjetpoluru requested a review from a team as a code owner July 25, 2024 14:45
Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.94%. Comparing base (b27dd2b) to head (3872f1e).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26111   +/-   ##
========================================
  Coverage    69.94%   69.94%           
========================================
  Files         1409     1409           
  Lines        49794    49794           
  Branches     13773    13773           
========================================
  Hits         34826    34826           
  Misses       14968    14968           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [80004b2]
Page Load Metrics (240 ± 249 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint692931064722
domContentLoaded986292211
load451800240519249
domInteractive986292211
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

chloeYue
chloeYue previously approved these changes Jul 25, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [c7a77bf]
Page Load Metrics (164 ± 189 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint73142106178
domContentLoaded125527126
load531882164394189
domInteractive125527126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

sonarcloud bot commented Jul 26, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [3872f1e]
Page Load Metrics (211 ± 219 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint62187953014
domContentLoaded95320116
load401635211457219
domInteractive95320116
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

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 !

@hjetpoluru hjetpoluru merged commit f4f008a into develop Jul 26, 2024
76 checks passed
@hjetpoluru hjetpoluru deleted the fix-flaky-test-4byte branch July 26, 2024 14:57
@github-actions github-actions bot locked and limited conversation to collaborators Jul 26, 2024
@metamaskbot metamaskbot added the release-12.4.0 Issue or pull request that will be included in release 12.4.0 label Jul 26, 2024
@gauthierpetetin gauthierpetetin added release-12.3.0 Issue or pull request that will be included in release 12.3.0 and removed release-12.4.0 Issue or pull request that will be included in release 12.4.0 labels Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flaky tests INVALID-PR-TEMPLATE PR's body doesn't match template release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-extension-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants