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

feat: Migrate remaining e2e tests to redesigned confirmations #28780

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Nov 27, 2024

Description

Below are the test files that are migrated on this PR. This includes creating duplicate tests that rely on tempToggleSettingRedesignedTransactionConfirmations, removing it in those duplicates and making the necessary changes so that those tests pass.

  • test/e2e/json-rpc/eth_sendTransaction.spec.js
  • test/e2e/tests/account/add-account.spec.ts
  • test/e2e/tests/petnames/petnames-transactions.spec.js
  • test/e2e/tests/ppom/ppom-blockaid-alert-simple-send.spec.js
  • test/e2e/tests/responsive-ui/metamask-responsive-ui.spec.js
  • test/e2e/tests/tokens/custom-token-send-transfer.spec.js
  • test/e2e/tests/transaction/change-assets.spec.js
  • test/e2e/tests/transaction/edit-gas-fee.spec.js
  • test/e2e/tests/transaction/gas-estimates.spec.js
  • test/e2e/tests/transaction/multiple-transactions.spec.js
  • test/e2e/tests/transaction/navigate-transactions.spec.js
  • test/e2e/tests/transaction/send-edit.spec.js
  • test/e2e/tests/transaction/send-eth.spec.js
  • test/e2e/tests/transaction/send-hex-address.spec.js

On a subsequent ticket that removes the old confirmation flow (https://github.com/MetaMask/MetaMask-planning/issues/3030), the original tests that rely on tempToggleSettingRedesignedTransactionConfirmations to pass and to test the old confirmation flows will be deleted.

Additionally, the following e2e tests will not be migrated to redesigned confirmations, and will also be deleted on https://github.com/MetaMask/MetaMask-planning/issues/3030.

  • test/e2e/tests/dapp-interactions/contract-interactions.spec.js
  • test/e2e/tests/dapp-interactions/dapp-tx-edit.spec.js
  • test/e2e/tests/dapp-interactions/failing-contract.spec.js
  • test/e2e/tests/network/network-error.spec.js
  • test/e2e/tests/settings/4byte-directory.spec.js
  • test/e2e/tests/settings/show-hex-data.spec.js
  • test/e2e/tests/tokens/custom-token-add-approve.spec.js
  • test/e2e/tests/tokens/increase-token-allowance.spec.js
  • test/e2e/tests/transaction/simple-send.spec.ts
  • test/e2e/tests/tokens/nft/erc721-interaction.spec.js
  • test/e2e/tests/tokens/nft/erc1155-interaction.spec.js
  • test/e2e/tests/tokens/nft/send-nft.spec.js

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3700

Manual testing steps

N/A

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.

@pedronfigueiredo pedronfigueiredo added the team-confirmations Push issues to confirmations team label Nov 27, 2024
@pedronfigueiredo pedronfigueiredo self-assigned this Nov 27, 2024
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.

@pedronfigueiredo pedronfigueiredo force-pushed the pnf/3700 branch 3 times, most recently from a757334 to fb735c7 Compare November 28, 2024 17:07
@pedronfigueiredo pedronfigueiredo marked this pull request as ready for review November 28, 2024 17:13
@pedronfigueiredo pedronfigueiredo requested review from a team as code owners November 28, 2024 17:13
@pedronfigueiredo pedronfigueiredo force-pushed the pnf/3700 branch 2 times, most recently from bd6e4e0 to 2860219 Compare November 29, 2024 16:52
@metamaskbot
Copy link
Collaborator

Builds ready [f5fc220]
Page Load Metrics (1866 ± 73 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint31622551720488234
domContentLoaded15872245184215072
load16362257186615273
domInteractive258036136
backgroundConnect87223199
firstReactRender168725188
getState542051062713
initialActions01000
loadScripts11701741140914067
setupStore619931
uiStartup19272456214615675
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 107 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

OGPoyraz
OGPoyraz previously approved these changes Dec 3, 2024
jpuri
jpuri previously approved these changes Dec 3, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [913964d]
Page Load Metrics (2005 ± 133 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint156325552003280134
domContentLoaded155525081967259124
load156425652005278133
domInteractive25112452211
backgroundConnect10173363718
firstReactRender15252032
getState833151454321
initialActions01000
loadScripts115318901514218105
setupStore78313168
uiStartup184632942307352169
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 107 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

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

@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 5, 2024
Merged via the queue into main with commit bffd300 Dec 5, 2024
75 checks passed
@pedronfigueiredo pedronfigueiredo deleted the pnf/3700 branch December 5, 2024 14:58
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2024
@metamaskbot metamaskbot added the release-12.10.0 Issue or pull request that will be included in release 12.10.0 label Dec 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.10.0 Issue or pull request that will be included in release 12.10.0 skip-e2e-quality-gate team-confirmations Push issues to confirmations team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants