-
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
test: add e2e to swap with snap account #25558
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. |
Builds ready [70bf3c0]
Page Load Metrics (82 ± 12 ms)
Bundle size diffs
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25558 +/- ##
========================================
Coverage 69.60% 69.60%
========================================
Files 1364 1364
Lines 48172 48172
Branches 13291 13291
========================================
Hits 33526 33526
Misses 14646 14646 ☔ View full report in Codecov by Sentry. |
Overall looks good 🔥 Just added a small suggestion. |
Builds ready [b5c4601]
Page Load Metrics (361 ± 431 ms)
Bundle size diffs
|
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.
The code looks good, in general is a good practice to not have in-values inside the code since it helps to prevent bugs because of typos. For example,
const DAI = 'DAI';
const TEST_ETH = 'TESTETH';
...
await checkActivityTransaction(driver, {
index: 0,
amount: '0.001',
swapFrom: TEST_ETH,
swapTo: DAI,
});
Quality Gate passedIssues Measures |
Updated. Thank you! |
Builds ready [c43a05e]
Page Load Metrics (149 ± 173 ms)
Bundle size diffs
|
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.
LGTM !
Description
Related issues
Fixes: 469
Manual testing steps
yarn build:test:mv2
thenENABLE_MV3=false yarn test:e2e:single test/e2e/accounts/snap-account-eth-swap.spec.ts --browser=firefox
yarn build:test
thenyarn test:e2e:single test/e2e/accounts/snap-account-eth-swap.spec.ts --browser=chrome
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist