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

Add tests for search components #4462

Merged
merged 15 commits into from
Mar 17, 2023
Merged

Add tests for search components #4462

merged 15 commits into from
Mar 17, 2023

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Mar 9, 2023

This pull request adds tests for multiple search components.

All these components now also take a searchQuery object as property. This makes it easier to test without a global searchquery state involved. It improves the reusability of these components, as this allows multiple searchcomponents belonging to a different query on the same page.

@jorg-vr jorg-vr added the chore Repository/build/dependency maintenance label Mar 9, 2023
@jorg-vr jorg-vr self-assigned this Mar 9, 2023
Base automatically changed from chore/test-data-list-component to develop March 10, 2023 10:46
@jorg-vr jorg-vr marked this pull request as ready for review March 15, 2023 13:19
@jorg-vr jorg-vr requested a review from a team as a code owner March 15, 2023 13:19
@jorg-vr jorg-vr requested review from bmesuere and niknetniko and removed request for a team March 15, 2023 13:19
Copy link
Member

@niknetniko niknetniko left a comment

Choose a reason for hiding this comment

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

A bunch of small nitpicks from me, otherwise looking good.

test/javascript/components/search/dropdown_filter.test.ts Outdated Show resolved Hide resolved
test/javascript/components/search/dropdown_filter.test.ts Outdated Show resolved Hide resolved
test/javascript/components/search/dropdown_filter.test.ts Outdated Show resolved Hide resolved
test/javascript/components/search/dropdown_filter.test.ts Outdated Show resolved Hide resolved
test/javascript/components/search/search_field.test.ts Outdated Show resolved Hide resolved
test/javascript/components/search/search_field.test.ts Outdated Show resolved Hide resolved
test/javascript/components/search/search_field.test.ts Outdated Show resolved Hide resolved
test/javascript/components/search/sort_button.test.ts Outdated Show resolved Hide resolved
@jorg-vr jorg-vr requested a review from niknetniko March 15, 2023 14:31
Copy link
Member

@bmesuere bmesuere left a comment

Choose a reason for hiding this comment

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

👍

@jorg-vr jorg-vr merged commit 68130b6 into develop Mar 17, 2023
@jorg-vr jorg-vr deleted the chore/test-search branch March 17, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Repository/build/dependency maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants