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.
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,
});
|
Updated. Thank you! |
Builds ready [c43a05e]
Page Load Metrics (149 ± 173 ms)
Bundle size diffs
|



Description
Related issues
Fixes: 469
Manual testing steps
yarn build:test:mv2thenENABLE_MV3=false yarn test:e2e:single test/e2e/accounts/snap-account-eth-swap.spec.ts --browser=firefoxyarn build:testthenyarn test:e2e:single test/e2e/accounts/snap-account-eth-swap.spec.ts --browser=chromeScreenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist