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

Datepicker tests #807

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Datepicker tests #807

merged 2 commits into from
Oct 1, 2024

Conversation

chrispymm
Copy link
Contributor

@chrispymm chrispymm commented Sep 30, 2024

This PR adds tests for all functionality of the datepicker with default config options. This includes keyboard navigation and axe accessibility checks.

During testing a couple of small issues were found and fixed:

  • Date was initialized with an odd format order causing issues during testing
  • Calculation of the first and last day of the week was incorrect when the last day of the week was a Sunday
  • We were using aria-selected to mark the currently selected day, however aria-selected is not permitted on buttons, so changed to using aria-current="date" instead.

This PR adds tests for all functionality of the datepicker with
default config options. This includes keyboard navigation
and axe accessibility checks.

During testing a couple of small issues were found and fixed:
 * Date was initialized with an odd format order causing
issues during testing
 * Calculation of the first and last day of the week was
incorreect when the last day of the week was a Sunday
@chrispymm chrispymm requested a review from a team as a code owner September 30, 2024 10:25
@chrispymm chrispymm requested review from gregtyler and a team September 30, 2024 10:28
@chrispymm chrispymm merged commit 4f74c30 into main Oct 1, 2024
18 checks passed
@chrispymm chrispymm deleted the datepicker-tests branch October 1, 2024 08:10
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.

2 participants