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

Fix #4934: ✅ Fix the broken test case in datepicker_test.test.js #4935

Merged

Conversation

balajis-qb
Copy link

Closes #4934

Pass the default date to the getOnInputKeyDownStuff to avoid switching to the next month view when the current date is in the last row of the current month

  • Apply this fix as the render fails to rerender days to the next month view

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

@balajis-qb balajis-qb changed the title Fix #4934: ✅ Fix the test case failing issue Fix #4934: ✅ Fix the broken test case in datepicker_test.test.js Jun 24, 2024
@balajis-qb balajis-qb force-pushed the issue-4934/fix/datepicker-test-case branch from 088f817 to 5b660c7 Compare June 24, 2024 10:52
…ing to the next month view when the current date is in the last row of the current month

- Apply this fix as the render fails to rerender days to the next month view

Closes Hacker0x01#4934
@balajis-qb balajis-qb force-pushed the issue-4934/fix/datepicker-test-case branch from 5b660c7 to 6efffd8 Compare June 24, 2024 11:00
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ This pull request was sent to the PullRequest network for review. Expert reviewers are now being matched to your request based on the code's requirements. Stay tuned!

What to expect from this code review:
  • Comments posted to any areas of potential concern or improvement.
  • Detailed feedback or actions needed to resolve issues that are found.
  • Turnaround times vary, but we aim to be swift.

@balajis-qb you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest Breakdown

Reviewable lines of change

+ 7
- 3

100% TSX (tests)

Type of change

Fix - These changes are likely to be fixing a bug or issue.

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.66%. Comparing base (c8c9f6f) to head (6efffd8).
Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4935   +/-   ##
=======================================
  Coverage   96.66%   96.66%           
=======================================
  Files          28       28           
  Lines        3264     3264           
  Branches     1343     1343           
=======================================
  Hits         3155     3155           
  Misses        109      109           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

Looks like an easy enough change. I can see that a selected date was added.

Image of Steven S Steven S


Reviewed with ❤️ by PullRequest

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.

A test inside datepicker_test.test.js is failing when it's executed on the last week of a month
2 participants