-
-
Notifications
You must be signed in to change notification settings - Fork 943
Migrate Device transfer modal tests to Vue Testing Library #14263
Copy link
Copy link
Labels
APP: DeviceRe: Device App (content import/export, facility-syncing, user permissions, etc.)Re: Device App (content import/export, facility-syncing, user permissions, etc.)DEV: frontendP3 - lowPriority: Stretch goalPriority: Stretch goalTAG: tech update / debtChange not visible to userChange not visible to usercommunity-contribution-in-progressgood first issueSelf-contained, straightforward, low-complexitySelf-contained, straightforward, low-complexityhelp wantedOpen source contributors welcomeOpen source contributors welcome
Metadata
Metadata
Assignees
Labels
APP: DeviceRe: Device App (content import/export, facility-syncing, user permissions, etc.)Re: Device App (content import/export, facility-syncing, user permissions, etc.)DEV: frontendP3 - lowPriority: Stretch goalPriority: Stretch goalTAG: tech update / debtChange not visible to userChange not visible to usercommunity-contribution-in-progressgood first issueSelf-contained, straightforward, low-complexitySelf-contained, straightforward, low-complexityhelp wantedOpen source contributors welcomeOpen source contributors welcome
🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:
Overview
Complexity: Low
Context
The test suites for the Device plugin's transfer source selection modals currently use
@vue/test-utils, which couples tests to component internals.The Change
Refactor these test files to use Vue Testing Library (VTL) and write tests that reflect how a user interacts with transfer modals:
kolibri/plugins/device/frontend/views/__tests__/SelectDriveModal.spec.jskolibri/plugins/device/frontend/views/__tests__/SelectTransferSourceModal.spec.jsDo not refactor any other test files or areas of the codebase.
Acceptance Criteria
@testing-library/vue@vue/test-utilsimports in migrated filesfrom '@testing-library/vue')pnpm run test-jest -- --testPathPattern deviceReferences
packages/kolibri/components/CoreMenu/__tests__/CoreMenuOption.spec.js🤖 This issue was written with AI assistance, under supervision, review and final edits by @rtibbles 🤖