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

ui: Add tests for the TimeScaleDropdown component #81464

Merged
merged 1 commit into from
May 19, 2022

Conversation

jocrl
Copy link
Contributor

@jocrl jocrl commented May 18, 2022

This commit splits out tests in timescale.spec.tsx and adds additional tests
for the TimeScaleDropdown component, including testing that the custom time
picker is initialized to the currently selected time. This also adds
TimeScaleDropdown stories.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jocrl jocrl requested a review from a team May 18, 2022 17:21
@jocrl
Copy link
Contributor Author

jocrl commented May 18, 2022

Note: I attempted to write a test to test that selecting a new custom time works, but that got gnarly at figuring out how to close/unfocus the custom selector after selecting the new time. For that progress, see https://github.com/jocrl/cockroach/tree/time-picker-tests-attempt-to-test-select-with-custom-menu

Copy link
Contributor

@matthewtodd matthewtodd left a comment

Choose a reason for hiding this comment

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

🎉 Nice!

@jocrl jocrl force-pushed the time-picker-tests branch 2 times, most recently from cd269d4 to 397e48a Compare May 18, 2022 21:42
This commit splits out tests in `timescale.spec.tsx` and adds additional tests
for the TimeScaleDropdown component, including testing that the custom time
picker is initialized to the currently selected time. This also adds
TimeScaleDropdown stories.

Release note: None
@jocrl jocrl force-pushed the time-picker-tests branch from 397e48a to 4feee3f Compare May 18, 2022 21:51
@jocrl
Copy link
Contributor Author

jocrl commented May 19, 2022

bors r+

@craig
Copy link
Contributor

craig bot commented May 19, 2022

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented May 19, 2022

Build succeeded:

@craig craig bot merged commit bb3f07b into cockroachdb:master May 19, 2022
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.

3 participants