Skip to content

01a033fb - test(buy): pin EUR quotes to the EUR settlement IBAN - #938

Merged
TaprootFreak merged 2 commits into
stagingfrom
test/buy-eur-iban-from-quote
Aug 24, 2026
Merged

01a033fb - test(buy): pin EUR quotes to the EUR settlement IBAN#938
TaprootFreak merged 2 commits into
stagingfrom
test/buy-eur-iban-from-quote

Conversation

@TaprootFreak

@TaprootFreak TaprootFreak commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

EN:
These tests pin that a EUR buy sends currency EUR and shows the EUR settlement IBAN from the quote, not a leftover CHF IBAN.
Production buy code is unchanged: it already forwards the selected currency and renders the IBAN the API returns.
The confirm button is not locked; an EUR quote can still be tapped to confirm.

DE:
Diese Tests stellen sicher, dass ein EUR-Kauf die Währung EUR sendet und die EUR-IBAN aus der Quote zeigt, nicht eine übrig gebliebene CHF-IBAN.
Der Produktionscode bleibt unverändert: er leitet die gewählte Währung bereits weiter und zeigt die IBAN der API.
Der Bestätigen-Button wird nicht gesperrt; eine EUR-Quote lässt sich weiterhin bestätigen.

Details

Pins the EUR vs CHF buy-quote IBAN contract in existing test files:

  • Request body for PUT /v1/realunit/buy with Currency.eur is currency: EUR and maps the EUR IBAN from the mock response.
  • Default/CHF path maps the CHF settlement IBAN.
  • RealUnitBuyPaymentInfoDto.fromJson parses EUR IBAN + EUR currency.
  • BuyPaymentInfoCubit success for EUR keeps the EUR IBAN.
  • After converter settlement in EUR, BuyView refetches the quote with Currency.eur.
  • On an EUR BuyPaymentInfoSuccess, BuyConfirmButton receives the EUR IBAN (not the CHF leftover).
  • Tapping confirm on an EUR quote still calls confirmPayment.
  • Payment details (after confirm) render the formatted EUR IBAN and amount-in EUR.

IBANs used as distinct fixtures:

  • CHF: CH2208307000560946309CH22 0830 7000 5609 4630 9
  • EUR: CH9708307000560946317CH97 0830 7000 5609 4631 7

No production lib/ changes.

EUR buy quotes must send currency EUR and display the EUR IBAN from the
API response, not a leftover CHF IBAN. Tests now pin that contract from
the DTO through confirm to the payment-details card.
The EUR IBAN display tests injected success without pressing confirm.
A tap on the EUR quote now verifies confirmPayment is still invoked.
@TaprootFreak

Copy link
Copy Markdown
Contributor Author

EN:
Ready after 2 review passes.
Tests pin EUR buy quotes to the EUR settlement IBAN from the API instead of a leftover CHF IBAN.

DE:
Bereit nach 2 Review-Durchläufen.
Die Tests stellen sicher, dass EUR-Käufe die EUR-IBAN aus der Quote zeigen und nicht eine übrig gebliebene CHF-IBAN.

Details

Review rounds until 0 findings: 2 (first pass asked for an EUR confirm tap; second pass was clean).

Gates:

  • Mergeable: MERGEABLE against staging
  • Open review threads: none
  • Commits verified
  • Draft CI is skipped in this repo; marking ready starts Analyze & Test, Coverage Floor Gate, and Visual Regression

@TaprootFreak
TaprootFreak marked this pull request as ready for review August 24, 2026 15:06
@TaprootFreak
TaprootFreak merged commit 42dea71 into staging Aug 24, 2026
10 checks passed
@TaprootFreak
TaprootFreak deleted the test/buy-eur-iban-from-quote branch August 24, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant