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 Full-size View Setting @no-mmi opens the extension in popup view when opened from a dapp after enabling it in Advanced Settings #25295

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

seaona
Copy link
Contributor

@seaona seaona commented Jun 13, 2024

Description

This PR fixes the flaky test Full-size View Setting @no-mmi opens the extension in popup view when opened from a dapp after enabling it in Advanced Settings.
The problem is that it can take some time to load the window title, making the test fail.
Now, we've added some retry logic, to prevent such cases. See video below

This is a follow-up on @hjetpoluru 's work and investigation, so all credit to her 🙌

#25150

Open in GitHub Codespaces

Related issues

Fixes: #24642

Manual testing steps

  1. Check ci
  2. Run test locally multiple times

Screenshots/Recordings

See how now we enter in the retry loop and the test passes

window-title-retries.mp4

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.

@seaona seaona marked this pull request as ready for review June 13, 2024 13:31
@seaona seaona requested a review from a team as a code owner June 13, 2024 13:31
@metamaskbot
Copy link
Collaborator

Builds ready [fa0c05c]
Page Load Metrics (61 ± 17 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint70217913015
domContentLoaded9191121
load42206613517
domInteractive9191121
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.61%. Comparing base (59a805a) to head (fa0c05c).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25295   +/-   ##
========================================
  Coverage    65.61%   65.61%           
========================================
  Files         1373     1373           
  Lines        54523    54523           
  Branches     14282    14282           
========================================
  Hits         35774    35774           
  Misses       18749    18749           

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

@hjetpoluru hjetpoluru self-requested a review June 13, 2024 18:51
Copy link
Contributor

@hjetpoluru hjetpoluru left a comment

Choose a reason for hiding this comment

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

Thanks Mariona.

@hjetpoluru hjetpoluru merged commit 8141ff2 into develop Jun 13, 2024
85 checks passed
@hjetpoluru hjetpoluru deleted the flaky-fix-full-size-setting branch June 13, 2024 18:53
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flaky tests release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-extension-platform
Projects
None yet
4 participants