Skip to content

fix: keep the max-buy gate test from performing a real buy#482

Open
raulriera wants to merge 1 commit into
mainfrom
account-creation-test-errors-f67f4f
Open

fix: keep the max-buy gate test from performing a real buy#482
raulriera wants to merge 1 commit into
mainfrom
account-creation-test-errors-f67f4f

Conversation

@raulriera

Copy link
Copy Markdown
Collaborator

The max-buy gate test added in #470 seeds everything the buy flow needs, so after clearing the balance gate it performed a real buy — submitting an account-creation intent to production that the antispam guard denied. Every unit-test run fired two of these, which is what re-triggered the Critical SubmitIntent Failure alerts. The test now seeds a daily send limit below the entered amount, so the flow clears the gate and stops at the limit check, and a new assertion pins that exit point so any future path back to the network buy fails the test. #457 remains the structural backstop for test sessions reaching production at all.

Test plan:

  • BuyAmountViewModelTests passes with no IntentCreateAccount submissions in the simulator app log
  • FlipcashTests + FlipcashCoreTests pass

The gate test seeded a fresh verified state and generous limits, so
after clearing the gate it ran the real session.buy — submitting an
IntentCreateAccount to production that the antispam guard denied,
firing the Critical SubmitIntent Failure alert on every unit run.
Seed a daily limit below the entered amount instead, so the flow
stops at the limit check, and assert that exit point.
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