Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Plan for Claim Escrow Earnings Form Component #10

Open
sasasamaes opened this issue Dec 12, 2024 · 7 comments
Open

Test Plan for Claim Escrow Earnings Form Component #10

sasasamaes opened this issue Dec 12, 2024 · 7 comments
Assignees
Labels
good first issue Good for newcomers ODHack11 Only Dust Hack 11

Comments

@sasasamaes
Copy link
Contributor

sasasamaes commented Dec 12, 2024

Description

Create tests for the Claim Escrow Earnings Form component, focusing on the shared component integration, translations, and form submission functionality.

Test Categories

1. Component Rendering

  • Verify the shared ClaimEscrowForm is rendered with correct props
  • Check if all required fields are present:
    • Contract ID
    • Engagement ID
  • Confirm title and subtitle are displayed
  • Verify submit button renders with correct text

2. Props Integration

  • Test fields array construction
  • Verify translation keys are correctly passed
  • Check form hook integration
  • Test onSubmit handler connection
  • Verify field configurations

3. Translation Testing

  • Test title translation
  • Test subtitle translation
  • Verify field labels translation
  • Check placeholder translations
  • Test button text translation

4. Form Hook Integration

  • Test form initialization
  • Verify form submission handling
  • Check hook state management
  • Test error handling
  • Verify data processing

5. Field Configuration

  • Verify correct field properties
  • Test field validation rules
  • Check field descriptions
  • Verify placeholder text
  • Test field interactions

Definition of Done

  • Component rendering verified
  • Translation functionality tested
  • Form submission tested
  • Field configurations checked
  • Integration with shared component verified

Test Prerequisites

  • Mock translation hook
  • Mock form submission handler
  • Mock shared ClaimEscrowForm component
  • Set up testing environment
@salazarsebas salazarsebas added good first issue Good for newcomers ODHack11 Only Dust Hack 11 labels Dec 12, 2024
@salazarsebas salazarsebas transferred this issue from another repository Dec 12, 2024
@salazarsebas salazarsebas added ODHack11 Only Dust Hack 11 and removed ODHack11 Only Dust Hack 11 labels Dec 12, 2024
@mimisavage
Copy link

Can I handle this task?

@ShantelPeters
Copy link

Can I jump on this task?

@Jagadeeshftw
Copy link

Hi, I’d love to work on this issue as I have strong experience with both Stellar and Rust. I’ve developed secure and efficient smart contracts, blockchain integrations, and high-performance backend systems. Please assign this to me, and I’ll ensure to deliver a robust and high-quality PR within 12-24 hours.

@Michaelkingsdev
Copy link

I’d like to work on this.

@Benjtalkshow
Copy link
Contributor

I am a Full Stack Developer with a strong background in blockchain and extensive experience in Next.js/React, TypeScript, and Rust. I’ve made over 49 contributions to over 17 projects in the OnlyDust ecosystem, solving complex issues and delivering efficient, scalable solutions.

I can handle this task.
ETA is 3days.

@wheval
Copy link

wheval commented Dec 12, 2024

I’d like to help with this.

ETA is 1 day.

@zleypner
Copy link

Hi! I’m Anwar a Software Developer with +3 years of experience, and I would love
make a contribution to this project and contribute to the project's success.

I will create tests for the Claim Escrow Earnings Form component, ensuring integration with the shared component, translations, and form submission functionality. These tests will cover component rendering, prop integration, translation validation, form hook functionality, and field configuration. Mock objects, including the translation hook, form submission handler, and shared ClaimEscrowForm component, will be set up to simulate dependencies. The tests will ensure that required fields, translations, and form submission processes work as expected. I will organize the testing files and maintain adherence to project standards, aiming to complete this task in 3-4 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ODHack11 Only Dust Hack 11
Projects
None yet
Development

No branches or pull requests

9 participants