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

Auth-Stack Integration Testing #104

Open
cfiguer055 opened this issue Jun 18, 2024 · 0 comments
Open

Auth-Stack Integration Testing #104

cfiguer055 opened this issue Jun 18, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation Testing Tasks related to testing of React Native application

Comments

@cfiguer055
Copy link
Collaborator

cfiguer055 commented Jun 18, 2024

Description:

This issue focuses on integration testing for Auth-Stack components. Auth-Stack handles the authentication flows such as sign-in and sign-up. The integration tests ensure that the components within the Auth-Stack work together seamlessly.

The Auth-Stack is triggered when the app starts and decides whether to open the Auth-Stack or the Main-Tab based on the presence of a UUID. The components involved in this process include App, AppRouter, SignInScreen, SignUpScreen, AppHeader, appActions, userActions, etc. This issue aims to integrate these components thoroughly, providing comprehensive tests to cover their interactions.

Planning and Documentation

General Test Planning:

The integration tests will focus on the interactions between various components within the Auth-Stack. This includes:

  1. Screen Integration Tests: Verify the proper functioning of screens such as SignInScreen and SignUpScreen.
  2. Navigation Integration Tests: Ensure smooth navigation flows between screens.
  3. Auth Integration Tests: Confirm the authentication logic and transitions are correctly implemented.
  4. Component Integration Tests: Validate the interactions between smaller components like AppHeader, appActions, and userActions.

Documentation for How Tests Should Be Done:

Each type of test should be documented with clear guidelines on how to implement and execute them. Documentation should include:

  1. Purpose
  2. Goal
  3. Testing Requirements (Scope & Components)
  4. Imports and Mocks

Troubleshooting Document:

Complete section 8 - Integration Test:

  1. Screen-Integration
  2. Navigation-Integration
  3. Authentication-Integration
  4. Component-Integation

Smart Wearable Test Documentation

Planned Testing Coverage (1st Iteration)

Screen Integration:

  • SignInScreen and SignUpScreen: Verify correct rendering and component interaction.

Navigation Integration:

  • SignInScreen to HomeScreen: Ensure seamless navigation from sign-in to home screen.
  • SignUpScreen to HomeScreen: Verify smooth navigation from sign-up to home screen.
  • SignInScreen to SignUpScreen : Ensure seamless back-to-back navigation between sign-in and sign-up.
  • SignInScreen to ForgotPasswordScreen: Ensure seamless navigation between sign-in and forgot password.

Authentication Integration:

  • SignInAuth: Ensure solid and perfect authentication logic to ensure sign-in is secure.
  • SignUpAuth : Ensure solid and perfect authentication logic to ensure sign-up is secure.

Component Integration:

  • AppRouter and AuthStack: Verify correct rendering and transitions based on UUID state.
  • SignInScreen and AppHeader: Ensure SignInScreen correctly integrates with AppHeader.
  • SignUpScreen and userActions: Verify interaction between SignUpScreen and userActions.

Will add more...

Comments:

  • Reducers: It is recommended to include tests for reducers in a separate stores and state management test suite. This is because reducers cover broader application state management. Ensure there are no critical integrations between auth-stack components and reducers that need immediate attention within the auth-stack context.
  • Components to look into: appActions, ForgotPass, HeroSection, LoadingOverlay, localStorage, store, ToSModal, and more.

References:

@cfiguer055 cfiguer055 added documentation Improvements or additions to documentation Testing Tasks related to testing of React Native application labels Jun 18, 2024
@cfiguer055 cfiguer055 self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Testing Tasks related to testing of React Native application
Projects
None yet
Development

No branches or pull requests

1 participant