Repository navigation
test(e2e): complete BioForest transfer flow tests with mockService - #99
Merged
Merged
Conversation
- Add bioforest-mock.ts to simulate BioForest API responses - Update indexeddb-helper.ts with correct localStorage format for migration - Enhance bioforest-transfer.spec.ts with full transfer flow tests - Generate comprehensive screenshots for both Desktop and Mobile Chrome: - Home page with BFM balance - Send page with balance display - Transfer flow: address input, amount input, continue button, confirm dialog - Pay password settings entry All 17 tests pass for Desktop Chrome and Mobile Chrome.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
完善 BioForest Chain 转账流程的 e2e 测试和 mockService。
主要更改
新增文件
e2e/utils/bioforest-mock.ts: BioForest API 模拟服务/address/asset端点返回资产数据/address/balance端点/address/info端点/lastblock端点/transactions/query端点/broadcast端点修改文件
e2e/utils/indexeddb-helper.ts: 修正 localStorage 格式以匹配migrateFromLocalStorage期望e2e/bioforest-transfer.spec.ts: 完善转账全流程测试截图(每个步骤)
转账流程(Desktop & Mobile)
transfer-step1-send-page.png- 进入发送页面transfer-step2-address-filled.png- 填写收款地址transfer-step3-amount-filled.png- 填写转账金额transfer-step4-continue-enabled.png- 继续按钮可用transfer-step5-confirm-dialog.png- 确认转账弹窗transfer-step6-password-dialog.png- 密码输入支付密码设置(Desktop & Mobile)
pay-password-step1-settings.png- 设置页面pay-password-step2-entry.png- 支付密码入口测试结果
相关