test: wallet/pdf services + home_bloc onboarding flow (+17 tests)#335
Merged
Conversation
…7 tests) Stage 11 of the coverage push. - real_unit_wallet_service (3): getWalletStatus GET shape with the Bearer JWT + parses both isRegistered branches; ApiException on non-200 - real_unit_pdf_service (9): getBalanceReport POSTs the BalancePdfDto payload (address + currency + uppercased language code); accepts 201; ApiException on non-2xx; getTransactionsReceipt (multi) posts txHashes + currency, defaults to CHF, ApiException on non-2xx; getTransactionReceipt (single) posts txHash + currency, defaults to CHF, ApiException on non-2xx - home_bloc (5): initial CheckWalletExistsEvent for three branches (no wallet → onboardingCompleted forced false; wallet+terms → onboardingCompleted true; wallet without terms → onboardingCompleted false); CompleteOnboardingEvent writes termsAccepted=true and emits; AcceptSoftwareTermsEvent writes softwareTermsAccepted=true and emits The other home_bloc handlers (LoadCurrentWallet, DeleteCurrentWallet, LoadWallet, SyncWalletServices, DebugAuthComplete) all touch BalanceService.startSync / TransactionHistoryService.apiBasedSync / DfxWidgetService.getAuthToken plus AppStore.wallet mutation, which deserves a dedicated PR with proper integration of those dependencies.
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.
Summary
Stage 11 of the coverage push.
What each file covers
Notes
Excluded (and why)
Test plan