Skip to content

fix: Flaky test to support changes introduced in PR 23155#24195

Merged
hjetpoluru merged 11 commits intodevelopfrom
fix-flaky-test-1722
Apr 23, 2024
Merged

fix: Flaky test to support changes introduced in PR 23155#24195
hjetpoluru merged 11 commits intodevelopfrom
fix-flaky-test-1722

Conversation

@hjetpoluru
Copy link
Copy Markdown
Contributor

@hjetpoluru hjetpoluru commented Apr 23, 2024

Description

Change in the PR fixes the flaky test CircleCI job - test-e2e-chrome-vault-decryption
https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/77436/workflows/983b4b1c-104a-4acc-ad35-36fe09a03a29/jobs/2685234

Open in GitHub Codespaces

Related issues

Fixes:
#24180
#1722

Manual testing steps

Run the test in codespace or locally --> Checkout to the branch
yarn
yarn dist
yarn test:e2e:single test/e2e/vault-decryption-chrome.spec.js --browser=chrome

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.

@hjetpoluru hjetpoluru added team-swaps-deprecated DEPRECATED: please use "team-swaps-and-bridge" instead team-extension-platform Extension Platform team INVALID-PR-TEMPLATE PR's body doesn't match template labels Apr 23, 2024
@hjetpoluru hjetpoluru self-assigned this Apr 23, 2024
@hjetpoluru hjetpoluru requested a review from a team as a code owner April 23, 2024 14:52
@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.

@HowardBraham
Copy link
Copy Markdown
Contributor

@hjetpoluru I think it makes more sense to use driver.clickElementSafe instead of if driver.isElementPresent driver.clickElement

@hjetpoluru
Copy link
Copy Markdown
Contributor Author

@HowardBraham Thank you, that actually works and it's faster. Also, I thought that function was only for scroll bars but now I've learned it's for any elements. I am pushing the change.

@HowardBraham
Copy link
Copy Markdown
Contributor

@hjetpoluru I think you don't even need the try/catch now. Have not actually tested myself.

@hjetpoluru
Copy link
Copy Markdown
Contributor Author

@HowardBraham , yes I agree and tested locally.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [0a8596e]
Page Load Metrics (1303 ± 649 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint721791162813
domContentLoaded1096292110
load54331713031351649
domInteractive1096292110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [9944376]
Page Load Metrics (1075 ± 596 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint592041003014
domContentLoaded8442184
load47300810751241596
domInteractive8442184
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.46%. Comparing base (6428b33) to head (9944376).
Report is 94 commits behind head on develop.

❗ Current head 9944376 differs from pull request most recent head 3ddc4a4. Consider uploading reports for the commit 3ddc4a4 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #24195      +/-   ##
===========================================
- Coverage    67.56%   67.46%   -0.11%     
===========================================
  Files         1246     1258      +12     
  Lines        48888    49236     +348     
  Branches     12746    12818      +72     
===========================================
+ Hits         33031    33213     +182     
- Misses       15857    16023     +166     

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

@hjetpoluru hjetpoluru merged commit 5efc5c7 into develop Apr 23, 2024
@hjetpoluru hjetpoluru deleted the fix-flaky-test-1722 branch April 23, 2024 18:41
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2024
@metamaskbot metamaskbot added the release-11.16.0 Issue or pull request that will be included in release 11.16.0 label Apr 23, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [42bbee2]
Page Load Metrics (1048 ± 579 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint681411022412
domContentLoaded108125178
load57314910481206579
domInteractive108125178
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot metamaskbot added release-11.15.0 Issue or pull request that will be included in release 11.15.0 and removed release-11.16.0 Issue or pull request that will be included in release 11.16.0 labels Apr 23, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

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

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.15.0 Issue or pull request that will be included in release 11.15.0 team-extension-platform Extension Platform team team-swaps-deprecated DEPRECATED: please use "team-swaps-and-bridge" instead

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants