[Visual testing]: Add visual tests for KDropdownMenu #926
Labels
Component: KDropdownMenu
help wanted
Open source contributors welcome
type: task
Something that needs to be done
Visual testing
🌱 Are you new to the codebase? Welcome! Please see the contributing guidelines.
Context
We recently introduced a new visual testing system in KDS to prevent visual regressions and ensure UI consistency, and we want to start populating our KDS components with visual tests.
If you are not familiar yet with our visual testing system. Please refer to our Visual Testing Guide. You can also check the existing tests for KButton as an example.
Additionally, see the KDropdownMenu documentation for reference.
Desired behavior
KDropdownMenu
should have visual tests to cover at least these snapshots:hasIcons
prop to true)header
slot)Note
Since we currently dont have a test file for KDropdownMenu. Please move the current
KDropdownMenu.vue
file to be a folderKDropdownMenu/index.vue
and create the test file inKDropdownMenu/__tests__/KDropdownMenu.spec.js
Acceptance criteria
KDropdownMenu
.The text was updated successfully, but these errors were encountered: