-
Notifications
You must be signed in to change notification settings - Fork 119
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: added tests for category sidebar component #1028
test: added tests for category sidebar component #1028
Conversation
579981a
to
add53f5
Compare
fe461c0
to
0dcdfb3
Compare
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.
@Diegoalbag
A few additional things to do
-
Please, rework all scripts from js to ts, I know it might be misleading that most tests are in js but this is in most cases a legacy code and was not updated yet. All new tests/mocks/utils/scripts-in-general are in TS.
-
Please, add additional tests:
- if the user click on a category without children he will be redirected to that category
- if the user click on a category with children deeper categories will be revealed
- if the user click on the back arrow (not the go back button) menu will be hidden
...og/category/components/sidebar/MobileCategorySidebar/__tests__/MobileCategorySidebar.spec.js
Outdated
Show resolved
Hide resolved
...og/category/components/sidebar/MobileCategorySidebar/__tests__/MobileCategorySidebar.spec.js
Outdated
Show resolved
Hide resolved
...og/category/components/sidebar/MobileCategorySidebar/__tests__/MobileCategorySidebar.spec.js
Outdated
Show resolved
Hide resolved
...og/category/components/sidebar/MobileCategorySidebar/__tests__/MobileCategorySidebar.spec.js
Outdated
Show resolved
Hide resolved
0dcdfb3
to
7f50a09
Compare
@bartoszherba if you have a chance, please re-review this one, thanks! |
Description
Added unit tests for packages/theme/modules/catalog/category/components/sidebar/CategorySidebar.vue
Related Issue
https://vsf.atlassian.net/jira/software/c/projects/M2/boards/51?modal=detail&selectedIssue=M2-441
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: