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 NaN issue in Product Tour Popover #23100

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

vthomas13
Copy link
Contributor

@vthomas13 vthomas13 commented Feb 21, 2024

Description

The Popover is displaying NaN because the '/' was not being treated as a string.
Fixed that and added a test to help prevent it in the future.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/metamask-extension/pull/22905/files#r1498090474

Manual testing steps

  1. Fresh install of metamask, open popup
  2. Verify that the product tour popover starts by displaying 1/3
  3. run tests with yarn jest ui/components/multichain/product-tour-popover/product-tour-popover.test.js
  4. Verify new test passes 'should render correct steps' or fails under the right circumstances

Screenshots/Recordings

Before

After

image

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.

@vthomas13 vthomas13 requested a review from a team as a code owner February 21, 2024 20:03
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.

@darkwing darkwing added team-wallet-ux needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. labels Feb 21, 2024
@vthomas13 vthomas13 added team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead needs-ux-ds-review labels Feb 21, 2024
@vthomas13 vthomas13 force-pushed the fix-product-tour-popover branch from 67cb46c to 916cfda Compare February 22, 2024 13:17
@metamaskbot
Copy link
Collaborator

Builds ready [916cfda]
Page Load Metrics (1925 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1154752158943
domContentLoaded1385362110
load15552442192520699
domInteractive1385362110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 49 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (afb1b66) 68.49% compared to head (916cfda) 68.49%.
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #23100   +/-   ##
========================================
  Coverage    68.49%   68.49%           
========================================
  Files         1090     1090           
  Lines        43133    43133           
  Branches     11501    11501           
========================================
  Hits         29541    29541           
  Misses       13592    13592           

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

@darkwing darkwing merged commit 7fcddff into develop Feb 22, 2024
66 checks passed
@darkwing darkwing deleted the fix-product-tour-popover branch February 22, 2024 16:16
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
@metamaskbot metamaskbot added the release-11.12.0 Issue or pull request that will be included in release 11.12.0 label Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. release-11.12.0 Issue or pull request that will be included in release 11.12.0 team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead team-wallet-ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants