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

test: add e2e for transaction decoding #28204

Merged
merged 15 commits into from
Nov 27, 2024
Merged

Conversation

pnarayanaswamy
Copy link
Contributor

@pnarayanaswamy pnarayanaswamy commented Oct 31, 2024

Description

Adds test for checking transaction decoding for contract interaction from 4bytes, sourcify and uniswap
Also adds tests to verify when all of the above fails then it falls back to the raw hexdata
Adds a data-testId to make e2e easier

Open in GitHub Codespaces

Related issues

Fixes: #2877

Manual testing steps

  1. Go to this page...

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.

@pnarayanaswamy pnarayanaswamy requested a review from a team as a code owner October 31, 2024 10:18
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.

@github-actions github-actions bot added the team-confirmations Push issues to confirmations team label Oct 31, 2024
@pnarayanaswamy pnarayanaswamy requested a review from a team as a code owner November 1, 2024 10:02
@metamaskbot
Copy link
Collaborator

Builds ready [9da176e]
Page Load Metrics (1862 ± 43 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1706218618659144
domContentLoaded1697215518238742
load1706218618628943
domInteractive1798422210
backgroundConnect9113423014
firstReactRender51106772110
getState56015157
initialActions01000
loadScripts1224160113337436
setupStore1274292110
uiStartup1910241020499546
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 50 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

OGPoyraz
OGPoyraz previously approved these changes Nov 4, 2024
import { RawLocator } from '../../../common';
import TransactionConfirmation from './transaction-confirmation';

class AdvancedDetailsTransactionConfirmation extends TransactionConfirmation {
Copy link
Contributor

Choose a reason for hiding this comment

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

These properties and methods could live directly inside TransactionConfirmation, since all transaction confirmations have the advanced details related to this test.

This way, one could refer to the methods on this class directly, but also from any of the confirmation screen classes that extend it, such as SetApprovalForAllTransactionConfirmation or TokenTransferTransactionConfirmation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@metamaskbot
Copy link
Collaborator

Builds ready [57370e1]
Page Load Metrics (1872 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint17082266187814268
domContentLoaded16922244184514369
load17092258187214168
domInteractive28246876430
backgroundConnect97031199
firstReactRender47112952010
getState55317178
initialActions00000
loadScripts12071697136011656
setupStore56015189
uiStartup18572468207616579
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 50 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [744b726]
Page Load Metrics (1898 ± 91 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16992448190219292
domContentLoaded16392389185818790
load16472406189818991
domInteractive309761189
backgroundConnect992432411
firstReactRender54207993015
getState44712115
initialActions01000
loadScripts12111927137416177
setupStore560192010
uiStartup184326332107208100
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 50 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [5072011]
Page Load Metrics (2002 ± 112 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint178729102006247119
domContentLoaded172528251967234113
load178728342002234112
domInteractive28181493215
backgroundConnect10100342613
firstReactRender499866147
getState4510385199
initialActions01000
loadScripts126422471477208100
setupStore65112126
uiStartup202831592270257124
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 50 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

digiwand
digiwand previously approved these changes Nov 25, 2024
OGPoyraz
OGPoyraz previously approved these changes Nov 26, 2024
@pnarayanaswamy pnarayanaswamy added this pull request to the merge queue Nov 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 26, 2024
@pnarayanaswamy pnarayanaswamy added this pull request to the merge queue Nov 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 26, 2024
@pnarayanaswamy pnarayanaswamy added this pull request to the merge queue Nov 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 27, 2024
@pnarayanaswamy pnarayanaswamy added this pull request to the merge queue Nov 27, 2024
@pnarayanaswamy pnarayanaswamy removed this pull request from the merge queue due to a manual request Nov 27, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [209cb00]
Page Load Metrics (1776 ± 82 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint46521511710327157
domContentLoaded15372069173315072
load15512159177617182
domInteractive217237147
backgroundConnect9103392914
firstReactRender167432209
getState47121209
initialActions01000
loadScripts11241607127912057
setupStore75213136
uiStartup17392379198017383
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 50 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@pnarayanaswamy pnarayanaswamy added this pull request to the merge queue Nov 27, 2024
Merged via the queue into develop with commit ab394d0 Nov 27, 2024
75 checks passed
@pnarayanaswamy pnarayanaswamy deleted the transaction-decoding branch November 27, 2024 12:46
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants