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

Added jest tests for calendar component #459

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

bennyv8
Copy link
Member

@bennyv8 bennyv8 commented Oct 20, 2023

Fixes #301

Changes

  • Added a data test id for calendar

Unit Tests

  • Calendar Renders
  • Accessibility labels are applied // test created based off of ProgressBar.test.tsx

Integration Tests

  • Able to select and unselect availability

Screenshots, if applicable

Unit Tests
- Calendar Renders
- Accessibility Labels applied

Integration Tests
- Able to drag select and unselect availability
Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job with the logic for firing a click and drag mouse event and the tidy iteration through the calendar matrix that verifies accessibility! 👍

frontend/tests/components/Calendar.test.tsx Outdated Show resolved Hide resolved
@bennyv8 bennyv8 merged commit 2169dc2 into hackforla:main Oct 21, 2023
5 checks passed
@bennyv8 bennyv8 deleted the add-testing-calendar branch October 21, 2023 23:20
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

Successfully merging this pull request may close these issues.

Add jest tests for Calendar component
2 participants