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

Implement Unit Tests for UI Components #15

Open
GreenWizard2015 opened this issue May 27, 2024 · 0 comments
Open

Implement Unit Tests for UI Components #15

GreenWizard2015 opened this issue May 27, 2024 · 0 comments

Comments

@GreenWizard2015
Copy link
Collaborator

GreenWizard2015 commented May 27, 2024

Description:

We need to implement unit tests for the UI components in our Tea System UI project. These tests are crucial to ensure the robustness and reliability of our user interface. The following components should be covered by unit tests:

  1. APIAddressField: Test the functionality of updating the API host.
  2. CurrentOperationInfoArea: Test the display of the current operation information.
  3. HoldToPour: Test the continuous pouring functionality and handle user interactions.
  4. NotificationsArea: Test the display and dismissal of notifications.
  5. PourTimeField: Test the functionality of updating the pouring time.
  6. PowerLevel: Test the functionality of updating the power level.
  7. SystemControls: Test the start and stop functionality of the system controls.
  8. SystemStatusArea: Test the display of the system status.
  9. TimerArea: Test the countdown timer functionality.

Requirements:

  • Write unit tests for each component listed above.
  • Ensure the tests cover various edge cases and user interactions.
  • Use Jest and React Testing Library for implementing the tests.
  • Ensure the tests are integrated into the existing test suite and can be run using the npm test command.
  • Ensure the tests are integrated into the CI.
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

No branches or pull requests

1 participant