Skip to content

Add component tests for create-form.tsx's client-side validation logic #653

Description

@Austinaminu2

Description

No React Testing Library test exercises `app/app/create/create-form.tsx`'s validation logic — required-field errors, invalid-recipient-address errors, or the cliff-amount-exceeds-total-amount error. This is distinct from the existing `e2e/create-stream.spec.ts`, which drives the full flow through a browser rather than isolating validation logic.

Task

Add a test file covering: submitting with required fields empty shows the expected errors, entering an invalid recipient address shows an address-format error, and setting a cliff amount greater than the total amount shows the expected validation error.

Good for contributors because

Clear, enumerable validation rules to test in isolation, complementary to (not a replacement for) the existing e2e coverage.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programhelp wantedExtra attention is neededtestingTests and QA

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions