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

test: added tests for category sidebar component #1028

Conversation

Diegoalbag
Copy link
Contributor

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):

Screen Shot 2022-05-19 at 9 43 07 AM

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@Diegoalbag Diegoalbag force-pushed the test/m2-441-add-test-mobile-category-sidebar-component branch from 579981a to add53f5 Compare May 19, 2022 13:51
@Diegoalbag Diegoalbag changed the title test: Added tests for CategorySidebar component test: added tests for category sidebar component May 19, 2022
@Diegoalbag Diegoalbag force-pushed the test/m2-441-add-test-mobile-category-sidebar-component branch 3 times, most recently from fe461c0 to 0dcdfb3 Compare May 19, 2022 16:03
Copy link
Collaborator

@bartoszherba bartoszherba left a 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

  1. 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.

  2. 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

@Frodigo Frodigo added this to the 1.0.0-rc.8 milestone May 23, 2022
@Diegoalbag Diegoalbag force-pushed the test/m2-441-add-test-mobile-category-sidebar-component branch from 0dcdfb3 to 7f50a09 Compare May 23, 2022 17:51
@Diegoalbag Diegoalbag requested a review from bartoszherba May 24, 2022 17:44
@Frodigo Frodigo modified the milestones: 1.0.0-rc.8, 1.0.0-rc.9 May 26, 2022
@Frodigo
Copy link
Collaborator

Frodigo commented May 30, 2022

@bartoszherba if you have a chance, please re-review this one, thanks!

@Frodigo Frodigo merged commit 219ff60 into vuestorefront:develop May 31, 2022
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