-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test: Add e2e
test for transfer
confirmations
#15346
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
Conversation
app/components/Views/confirmations/components/info/transfer/transfer.tsx
Outdated
Show resolved
Hide resolved
e2e
test for transfer
confirmations e2e
test for transfer
confirmations
|
|
|
|
As last commit already passed e2e here : #15346 (comment) |
|
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.
small feedback, your code looks 👨🍳
@@ -0,0 +1,50 @@ | |||
import { ConfirmationRowComponentIDs } from '../../../selectors/Confirmation/ConfirmationView.selectors'; |
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.
We are working on migrating from js to ts. Can you convert this file to ts so its one less file we need to worrk about?
@@ -0,0 +1,14 @@ | |||
import { ConfirmationUIType } from '../../../selectors/Confirmation/ConfirmationView.selectors'; |
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.
We are working on migrating from js to ts. Can you convert this file to ts so its one less file we need to worrk about?
@@ -0,0 +1,87 @@ | |||
import { SMART_CONTRACTS } from '../../../../app/util/test/smart-contracts'; |
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.
Can you convert your new tests to ts instead
Description
This PR aims to adjust e2e tests and infrastructure.
E2e tests changes:
e2e/specs/confirmations-redesigned/transactions/wallet-initiated-transfer.spec.js
e2e/specs/confirmations-redesigned/transactions/dapp-initiated-transfer.spec.js
e2e/specs/confirmations-redesigned/transactions/contract-interaction.spec.js
Infrastructure changes:
ignoreFields
support tomock-server
in case if we want to ignore fields from request - this gives us flexibility of mocking requests.Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4874
Fixes: #15726
Manual testing steps
N/A
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist