Skip to content

fix: Reduce appInstalledEvent timeout delay#24695

Merged
danjm merged 1 commit intodevelopfrom
fix-app-installed.spec.js
May 22, 2024
Merged

fix: Reduce appInstalledEvent timeout delay#24695
danjm merged 1 commit intodevelopfrom
fix-app-installed.spec.js

Conversation

@danjm
Copy link
Copy Markdown
Contributor

@danjm danjm commented May 21, 2024

Description

This improves on a flaky test. I noticed this when working on mv3 e2e tests, although I believe it is the same problem discussed here https://github.com/MetaMask/metamask-extension/pull/24016/files#r1580648050

app-installed.spec.js expects an api request to segment. It is possible for the test to get to the point where it checks for that request before the request has been made. Decreasing the timeout delay in background.js, means the request will be called sooner, in time for the test to correctly assert.

Open in GitHub Codespaces

Manual testing steps

e2e tests should pass

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

@danjm danjm requested a review from a team as a code owner May 21, 2024 20:41
@github-actions
Copy link
Copy Markdown
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 May 21, 2024
@danjm danjm changed the title Reduce appInstalledEvent timeout delay fix: Reduce appInstalledEvent timeout delay May 22, 2024
@danjm danjm added the team-extension-platform Extension Platform team label May 22, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.41%. Comparing base (c586d33) to head (d17b403).
Report is 13 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #24695   +/-   ##
========================================
  Coverage    67.41%   67.41%           
========================================
  Files         1288     1288           
  Lines        50233    50233           
  Branches     13014    13014           
========================================
  Hits         33863    33863           
  Misses       16370    16370           

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

@danjm danjm merged commit 6bd968b into develop May 22, 2024
@danjm danjm deleted the fix-app-installed.spec.js branch May 22, 2024 15:25
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [d17b403]
Page Load Metrics (1905 ± 952 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1304721937235
domContentLoaded289447189
load113496219051982952
domInteractive289447189
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot metamaskbot added release-11.16.6 Issue or pull request that will be included in release 11.16.6 and removed release-11.18.0 labels Jun 4, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Missing release label release-11.16.6 on PR. Adding release label release-11.16.6 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.16.6.

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

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-11.16.6 Issue or pull request that will be included in release 11.16.6 team-extension-platform Extension Platform team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants