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: Remove unused fixtures and fix test name in smart swaps disabled spec #25616

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

plasmacorral
Copy link
Contributor

@plasmacorral plasmacorral commented Jul 1, 2024

Description

Test name was not being captured correctly and recently came to appreciate that some of the snap account related fixtures were not actually needed for this test.

Updated test name and removed accountSnapFixtures

Open in GitHub Codespaces

Related issues

Fixes: 505

Manual testing steps

Firefox:
yarn build:test:mv2 then ENABLE_MV3=false yarn test:e2e:single test/e2e/accounts/smart-swap-disabled.spec.ts --browser=firefox
Chrome:
yarn build:test then yarn test:e2e:single test/e2e/accounts/smart-swap-disabled.spec.ts --browser=chrome

Screenshots/Recordings

Before

After

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.

@plasmacorral plasmacorral self-assigned this Jul 1, 2024
Copy link
Contributor

github-actions bot commented Jul 1, 2024

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.

@plasmacorral plasmacorral added team-accounts e2e-test End to end test for the MetaMask extension type-bug labels Jul 1, 2024
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.60%. Comparing base (198bedd) to head (52bc178).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25616   +/-   ##
========================================
  Coverage    69.60%   69.60%           
========================================
  Files         1364     1364           
  Lines        48172    48172           
  Branches     13291    13291           
========================================
  Hits         33526    33526           
  Misses       14646    14646           

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

@metamaskbot
Copy link
Collaborator

Builds ready [cedb87c]
Page Load Metrics (152 ± 187 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6311992188
domContentLoaded95124115
load391850152390187
domInteractive95124115
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@plasmacorral plasmacorral marked this pull request as ready for review July 1, 2024 20:27
@plasmacorral plasmacorral requested a review from a team as a code owner July 1, 2024 20:27
@plasmacorral plasmacorral added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jul 1, 2024
Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

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

Since you're already changing this file, lets update the name of the test

describe('Snap Account - Smart Swaps', function (this: Suite) {
  it('checks if smart swaps are disabled for snap accounts', async function () {
    ...
  }
}

test/e2e/accounts/smart-swap-disabled.spec.ts Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Jul 2, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [52bc178]
Page Load Metrics (65 ± 8 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6712390157
domContentLoaded94824126
load4310265168
domInteractive94824126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@plasmacorral plasmacorral requested a review from gantunesr July 2, 2024 01:50
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 adjusting this !

@plasmacorral plasmacorral merged commit 95407cc into develop Jul 2, 2024
73 checks passed
@plasmacorral plasmacorral deleted the fix-e2e-test-name-smart-swap-disabled branch July 2, 2024 14:30
@github-actions github-actions bot locked and limited conversation to collaborators Jul 2, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jul 2, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e2e-test End to end test for the MetaMask extension release-12.2.0 Issue or pull request that will be included in release 12.2.0 team-accounts type-bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants