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

Improve Account Details E2E tests #20183

Merged
merged 2 commits into from
Jul 27, 2023
Merged

Conversation

darkwing
Copy link
Contributor

Explanation

With the account details functionality being available from multiple places, we should improve E2Es. These tests ensure the basic functionality works, and that the proper account key is shown when launched from the account menu and global menu.

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@darkwing darkwing requested a review from a team as a code owner July 25, 2023 19:29
@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.

@metamaskbot
Copy link
Collaborator

Builds ready [f46a1f4]
Page Load Metrics (1503 ± 23 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1061811272010
domContentLoaded1426161815034823
load1426161815034823
domInteractive1426161815034823
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 36 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #20183 (f46a1f4) into develop (98279b6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop   #20183   +/-   ##
========================================
  Coverage    68.69%   68.69%           
========================================
  Files          986      986           
  Lines        37815    37815           
  Branches     10116    10116           
========================================
  Hits         25977    25977           
  Misses       11838    11838           
Files Changed Coverage Δ
.../multichain/account-details/account-details-key.js 85.71% <ø> (ø)

<Text
data-testid="account-details-key"
variant={TextVariant.bodySm}
style={{ wordBreak: 'break-word' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use the overflowWrap property here instead of inline style

Suggested change
style={{ wordBreak: 'break-word' }}
overflowWrap={OverflowWrap.BreakWord}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested and that does not work -- the text breaks well out of the box.

@NidhiKJha NidhiKJha added team-extension-client team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead labels Jul 26, 2023
Copy link
Contributor

@vthomas13 vthomas13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@darkwing darkwing merged commit e5ec120 into develop Jul 27, 2023
11 checks passed
@darkwing darkwing deleted the improve-account-details-e2es branch July 27, 2023 14:22
@github-actions github-actions bot locked and limited conversation to collaborators Jul 27, 2023
@metamaskbot metamaskbot added the release-10.36.0 Issue or pull request that will be included in release 10.36.0 label Jul 27, 2023
@Gudahtt Gudahtt added release-11.1.0 Issue or pull request that will be included in release 11.1.0 and removed release-10.36.0 Issue or pull request that will be included in release 10.36.0 labels Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.1.0 Issue or pull request that will be included in release 11.1.0 team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants