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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-e2e-quality-gate team-confirmations Push issues to confirmations team
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

4 participants