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 Create BTC Account cannot create multiple BTC accounts... #25861

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

seaona
Copy link
Contributor

@seaona seaona commented Jul 16, 2024

Description

The Create BTC Account test is flaky as after clicking Create for creating a BTC account the popover remains some seconds visible, making that the subsequent click is obscured by it.
We fix this by using the clickElementAndWaitToDisappear method, which ensures that the popup is closed before proceeding.

driver] Called 'clickElement' with arguments [{"text":"Create","tag":"button"}]
[driver] Called 'delay' with arguments [500]
[driver] Called 'clickElement' with arguments ["[data-testid=\"account-menu-icon\"]"]
Failure on testcase: 'Create BTC Account cannot create multiple BTC accounts', for more information see the artifacts tab in CI

ElementClickInterceptedError: Element <button class="mm-box mm-text mm-button-base mm-button-base--size-sm mm-button-base--ellipsis multichain-account-picker mm-text--body-md-medium mm-text--ellipsis mm-box--padding-0 mm-box--padding-right-2 mm-box--padding-left-2 mm-box--display-inline-flex mm-box--gap-2 mm-box--justify-content-center mm-box--align-items-center mm-box--color-text-default mm-box--background-color-transparent mm-box--rounded-lg"> is not clickable at point (576,112) because another element <label class="mm-box mm-text mm-label mm-label--html-for mm-form-text-field__label mm-text--body-md mm-text--font-weight-medium mm-box--display-inline-flex mm-box--align-items-center mm-box--color-text-default"> obscures it


Executing testcase: 'Create BTC Account can cancel the removal of BTC acc

Open in GitHub Codespaces

Related issues

Fixes: #25862

Manual testing steps

  1. Check ci

Screenshots/Recordings

See artifacts, where the popup is still open

image

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.

@seaona seaona added team-extension-platform flaky tests area-qa Relating to QA work (Quality Assurance) labels Jul 16, 2024
@seaona seaona self-assigned this Jul 16, 2024
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.

Copy link

@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Jul 16, 2024
@seaona seaona marked this pull request as ready for review July 16, 2024 12:56
@seaona seaona requested a review from a team as a code owner July 16, 2024 12:56
@seaona seaona removed the team-confirmations Push issues to confirmations team label Jul 16, 2024
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 ! Thanks for the quick fix !

Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.77%. Comparing base (2d416bf) to head (963a758).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25861   +/-   ##
========================================
  Coverage    69.77%   69.77%           
========================================
  Files         1398     1398           
  Lines        49165    49165           
  Branches     13574    13574           
========================================
  Hits         34304    34304           
  Misses       14861    14861           

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

@metamaskbot
Copy link
Collaborator

Builds ready [963a758]
Page Load Metrics (70 ± 8 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint8311498115
domContentLoaded106029157
load5110070168
domInteractive106029157
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@hjetpoluru hjetpoluru self-requested a review July 16, 2024 14:09
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.

LGTM

@hjetpoluru hjetpoluru merged commit 29baa61 into develop Jul 16, 2024
99 checks passed
@hjetpoluru hjetpoluru deleted the fix-flaky-btc-multi-actt branch July 16, 2024 14:10
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2024
@metamaskbot metamaskbot added the release-12.3.0 Issue or pull request that will be included in release 12.3.0 label Jul 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-qa Relating to QA work (Quality Assurance) flaky tests 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.

flaky test: Create BTC Account cannot create multiple BTC accounts...
4 participants