Skip to content

Fix calendar e2e tests for month-end boundary#210

Open
p-jackson wants to merge 1 commit intoDioxusLabs:mainfrom
p-jackson:calendar-e2e-month-boundary
Open

Fix calendar e2e tests for month-end boundary#210
p-jackson wants to merge 1 commit intoDioxusLabs:mainfrom
p-jackson:calendar-e2e-month-boundary

Conversation

@p-jackson
Copy link
Contributor

The calendar e2e tests are flaky depending on which day of they month they are run on. It already accounts for wrapping when pressing ArrowDown, I've just done the same for clicking ArrowRight.

It would be more robust to select a known date before testing keyboard operations so we would know whether it would wrap or not. But the test also checks that today's date is the default focused date when you first tab into the control. Which is a good thing to check, so I've left as is.

- Handle right arrow wrapping to next month when at last day
- Use focusedDay instead of firstDay for back-navigation assertions
@github-actions
Copy link

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.

1 participant