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

tests: added interaction tests for DatePickerInput #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thetaungg
Copy link
Contributor

No description provided.


// the modal should show up
await expect(
within(canvasElement.ownerDocument.body).getByText('SELECT DATE'),
Copy link
Contributor

Choose a reason for hiding this comment

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

What should be the expected selected date in the picker? Checking for Select Date is okay.
Checking for the selected date value is even better!!

Copy link
Contributor

Choose a reason for hiding this comment

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

In a separate date picker related test, I want to see what happens when you click on the edit icon

Copy link
Contributor

Choose a reason for hiding this comment

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

On changing the date, a test should validate that the date in the picker is also correct.

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