DevonGifford / DevReady

Fullstack open source initiative designed for ZTM students.
https://ztm-ready-portfolio-project.vercel.app
1 stars 0 forks source link

testing: Backlog Unit. Integration & E2E Testing #12

Open DevonGifford opened 10 months ago

DevonGifford commented 10 months ago

Part 1: Research Phase

Objective

The application's components need isolated functionality testing via unit and integration tests using Jest & RTL .

Tasks



Part 2: Implementation Phase

Objective

Verify component interactions via integration tests using React Testing Library (RTL).

Unit Tests


Components

Form Components: Test rendering, input handling, and form validation.

UI behaviour. Validate rendering and interactions.

Other Custom UI Components: Ensure correct rendering, interactions, and state changes.

Utilities



Integration Tests


Application Functionality

Form Submissions: Test form submissions, validations, and API interactions.

Navigation: Validate navigation between different routes and components.

Context Providers: Ensure correct context provisioning and updates to nested components.

Modals: Test modal behaviour, open/close functionality, and actions.



End-to-End Tests

User Flows

User Interaction Flow:

Validate complete user interaction cycles.

Persistence:

Error Handling

Application Error Scenarios:
DevonGifford commented 10 months ago

As I develop new features or update existing ones, I’ll concurrently write corresponding tests. If any additional backlog should incur, I will update this issue.

This ensures each functionality is tested as it’s developed. By the end of year, I’ll write any remaining tests for components not covered during development.

This approach integrates testing into the development workflow.