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

Dashboard: Fix countries/regions/cities tooltips #4580

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

macobo
Copy link
Contributor

@macobo macobo commented Sep 16, 2024

Previously these tooltips said Add filter: Country is undefined because new labels were yet to be in query.

cc @apata - curious on your thoughts on if or how best test this

Basecamp: https://3.basecamp.com/5308029/buckets/36789884/card_tables/cards/7816925449

Previously these tooltips said `Add filter: Country is undefined`
because new labels were yet to be in `query`.
@macobo macobo requested a review from a team September 16, 2024 06:44
Copy link
Contributor

@apata apata left a comment

Choose a reason for hiding this comment

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

On testing, besides unit tests for adding and subtracting all kinds of filters, for this particular case I'd probably go one level up and render the ListReport with react test library, then expect the links to be present with the appropriate title. See query-dates.test.tsx for an example how to use react testing library for this.

@macobo macobo added this pull request to the merge queue Sep 30, 2024
Merged via the queue into master with commit 7f361cf Sep 30, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants