algolia / instantsearch

⚡️ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/
MIT License
3.73k stars 527 forks source link

test(dynamic-widgets): common test suite #6240

Closed aymeric-giraudet closed 5 months ago

aymeric-giraudet commented 5 months ago

Summary

FX-2510

Result

Tried to test as much as possible, but we're limited due to the implems being very different, notably the lack of fallback mechanism in Vue.

Still these test the order to render widgets, whether a widget should render or not, and makes sure that certain params are correctly forwarded to the search request.

I didn't remove any pre-existing tests for now.

codesandbox-ci[bot] commented 5 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 62ab67c71099113ede4e15136bddf364308b444f:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration