Skip to content

fix: Remove unused fixtures and fix test name in smart swaps disabled spec#25616

Merged
plasmacorral merged 3 commits intodevelopfrom
fix-e2e-test-name-smart-swap-disabled
Jul 2, 2024
Merged

fix: Remove unused fixtures and fix test name in smart swaps disabled spec#25616
plasmacorral merged 3 commits intodevelopfrom
fix-e2e-test-name-smart-swap-disabled

Conversation

@plasmacorral
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown
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-framework Accounts team e2e-test End to end test for the MetaMask extension type-bug Something isn't working labels Jul 1, 2024
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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 () {
    ...
  }
}

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jul 2, 2024

@metamaskbot
Copy link
Copy Markdown
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
Copy Markdown
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
@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-framework Accounts team type-bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants