Skip to content

Conversation

@seaona
Copy link
Member

@seaona seaona commented Feb 13, 2024

Description

In this PR we fix some flaky tests. The main issue seems to be that the validation takes some seconds until it ends, and now we are displaying the intermediate state with a loading spinner.
For fixing it, we add the await driver.waitForElementNotPresent('.loading-indicator'); to wait for the Blockaid loading spinner to disappear, and then search for the Blockaid warning

Related issues

Fixes:

Manual testing steps

  1. Check circle ci runs (ignore the deps-audit failing job, as it's unrelated)
    https://app.circleci.com/pipelines/github/MetaMask/metamask-extension?branch=test-fix-flaky-ppom-spinner
  • 🟢 Run 1
  • 🟢 Run 2
  • 🟢 Run 3 (phishing detection test failed here, but it's not related to this PR)
  • 🟢 Run 4

Screenshots/Recordings

Screenshot from 2024-02-13 12-14-39

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • 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.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@github-actions
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 added the team-confirmations-secure-ux-PR PRs from the confirmations team label Feb 13, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [bcf07f5]
Page Load Metrics (1192 ± 55 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1415982279345
domContentLoaded11280645527
load10181485119211655
domInteractive11280645527
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

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

Builds ready [bcf07f5]
Page Load Metrics (1087 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1192531913416
domContentLoaded1075322512
load7801618108720799
domInteractive1075322512
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@hjetpoluru hjetpoluru self-requested a review February 13, 2024 14:26
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!

@metamaskbot
Copy link
Collaborator

Builds ready [6757954]
Page Load Metrics (1193 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1312691954522
domContentLoaded12116503014
load9211429119314368
domInteractive12116503014
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@HowardBraham HowardBraham merged commit dc312cd into develop Feb 13, 2024
@HowardBraham HowardBraham deleted the test-fix-flaky-ppom-spinner branch February 13, 2024 18:34
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2024
@metamaskbot metamaskbot added the release-11.12.0 Issue or pull request that will be included in release 11.12.0 label Feb 13, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [4c7cb31]
Page Load Metrics (1088 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1162751814019
domContentLoaded968312110
load8851409108811354
domInteractive968312110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

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

Labels

release-11.12.0 Issue or pull request that will be included in release 11.12.0 team-confirmations-secure-ux-PR PRs from the confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants