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

refactoring: move show more count tests to common suite #5638

Conversation

dhayab
Copy link
Member

@dhayab dhayab commented May 22, 2023

This is a stacked PR for #5593 that moves unit tests into the common suite.

Vue tests are expected to fail until implementation works on base branch.

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 22, 2023

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 245aa81:

Sandbox Source
InstantSearch.js Configuration
react-instantsearch-app Configuration
algolia/instantsearch Configuration
algolia/instantsearch Configuration

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

this makes sense, but I wonder if putting the conditions in the tests instead of the setup would be simpler / cleaner

tests/common/widgets/refinement-list/show-more.ts Outdated Show resolved Hide resolved
@dhayab dhayab requested a review from Haroenv May 23, 2023 07:49
@@ -61,7 +61,6 @@ export function createShowMoreTests(setup: HierarchicalMenuSetup, act: Act) {
limit,
showMoreLimit,
showMore: true,
// InstantSearch.js
templates: {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is good, but should the source of truth be templates or translations? I guess it's fine either way though, depends where we consider the translation

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

👍 although I would have based it on translations

@mikedavis77 mikedavis77 merged commit 825f8be into feat/refinement-list-show-more-count Jan 26, 2024
@mikedavis77 mikedavis77 deleted the feat/refinement-list-show-more-count-common-tests branch January 26, 2024 00:01
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