-
Notifications
You must be signed in to change notification settings - Fork 529
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
test(pagination): add common test suite #5836
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 f61c43f:
|
<div v-if="state" :class="suit()"> | ||
<div | ||
v-if="state" | ||
:class="{ [suit()]: true, [suit('', 'noRefinement')]: state.nbPages <= 1 }" |
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 additive, so it shouldn't be considered breaking IMO.
Worst case, if users have snapshot tests they can break, but this won't break production.
.replace(/(\s+)?<!---->(\s+)?/g, '') // Vue 2 | ||
.replace(/(\s+)?<!--v-if-->(\s+)?/g, '') // Vue 3 |
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.
Vue also adds space after :table-flip:
ac05f17
to
3557c75
Compare
@@ -168,6 +168,7 @@ function PaginationLink({ | |||
rootTagName="span" | |||
rootProps={{ | |||
className: cssClasses.link, | |||
'aria-label': ariaLabel, |
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 additive, so it shouldn't be considered breaking IMO.
Worst case, if users have snapshot tests they can break, but this won't break production.
3557c75
to
451140d
Compare
This reworks the tests for the
pagination
widget to move them in the common test suite and reduce flavor-specific tests.https://algolia.atlassian.net/browse/FX-2516