-
Notifications
You must be signed in to change notification settings - Fork 5k
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: Add ui_customizations
metric for transactions
#25736
Conversation
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. |
c933486
to
42b7b28
Compare
@@ -256,6 +311,7 @@ describe('Confirmation Redesign Contract Interaction Component', function () { | |||
}, | |||
); | |||
}); | |||
<<<<<<< Updated upstream:test/e2e/tests/confirmations/transactions/contract-interaction-redesign.spec.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess this is forgotten.
}: { | ||
driver: Driver; | ||
contractRegistry: GanacheContractAddressRegistry; | ||
}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we could've create a small interface for this repetitive argument type.
@@ -402,3 +458,97 @@ async function assertAdvancedGasDetailsWithL2Breakdown(driver) { | |||
await driver.waitForSelector({ css: 'p', text: 'Speed' }); | |||
await driver.waitForSelector({ css: 'p', text: 'Max fee' }); | |||
} | |||
======= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed this one as well.
}); | ||
}); | ||
}); | ||
>>>>>>> Stashed changes:test/e2e/tests/confirmations/transactions/contract-interaction-redesign.spec.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this
099f087
to
0d8b061
Compare
uiCustomizations.push( | ||
MetaMetricsEventUiCustomization.RedesignedConfirmation, | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should also include check to see if user has enabled re-designs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 50e5516
0d8b061
to
49e33f9
Compare
@@ -978,6 +979,13 @@ async function buildEventFragmentProperties({ | |||
uiCustomizations.push(MetaMetricsEventUiCustomization.GasEstimationFailed); | |||
} | |||
|
|||
if ( | |||
REDESIGN_TRANSACTION_TYPES.includes(transactionMeta.type as TransactionType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the developer settings PR, this will be static and not based on the ENV, so do we also want to temporarily check the env / preference here? @pnarayanaswamy
Depends which PR goes in first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 50e5516
smartContract, | ||
); | ||
async ({ driver, contractRegistry }: TestSuiteArguments) => { | ||
const contractAddress = await ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, is this worth a small function to avoid the duplication?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in c326fdb8d3
} = require('../../../helpers'); | ||
const FixtureBuilder = require('../../../fixture-builder'); | ||
|
||
describe('Metrics', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since integration tests are now merged, would this be a great use case for one, rather than adding more E2E tests for functionality that won't directly impact the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this is a use case, but I would prefer to avoid deleting working e2e tests in this PR
53533cf
to
3aeb614
Compare
9d62aa9
to
e5bb603
Compare
Quality Gate passedIssues Measures |
Builds ready [cd1c1d8]
Page Load Metrics (63 ± 7 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25736 +/- ##
===========================================
+ Coverage 69.77% 69.96% +0.18%
===========================================
Files 1376 1390 +14
Lines 48403 48904 +501
Branches 13348 13455 +107
===========================================
+ Hits 33773 34212 +439
- Misses 14630 14692 +62 ☔ View full report in Codecov by Sentry. |
all feedback has been addressed
Missing release label release-12.2.0 on PR. Adding release label release-12.2.0 on PR and removing other release labels(release-12.3.0), as PR was added to branch 12.2.0 when release was cut. |
Description
This PR also includes an e2e test, and migrates existing transaction redesign e2e tests to TypeScript.
Related issues
Fixes: #24486
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist