-
Notifications
You must be signed in to change notification settings - Fork 521
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
refactoring: move show more count tests to common suite #5638
Conversation
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:
|
There was a problem hiding this 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
@@ -61,7 +61,6 @@ export function createShowMoreTests(setup: HierarchicalMenuSetup, act: Act) { | |||
limit, | |||
showMoreLimit, | |||
showMore: true, | |||
// InstantSearch.js | |||
templates: { |
There was a problem hiding this comment.
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
There was a problem hiding this 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
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.