Migrate Device transfer modal tests to Vue Testing Library
🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:
- Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
- Confirm that you’ve read the guidelines in your comment.
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.js
Do not refactor any other test files or areas of the codebase.
Acceptance Criteria
- [ ] Both files migrated to use
@testing-library/vue - [ ] No residual
@vue/test-utilsimports in migrated files - [ ] Cover all major workflows while avoiding excessive testing of details
- [ ] Concise but explicit test descriptions that describe what's tested from a user point of view
- [ ] Follow Testing Library principles and Testing Library query priority recommendation
- [ ] Use patterns consistent with existing VTL test suites (search for
from '@testing-library/vue') - [ ] All migrated tests pass:
pnpm run test-jest -- --testPathPattern device
References
- Reference VTL test:
packages/kolibri/components/CoreMenu/__tests__/CoreMenuOption.spec.js - Testing Library query priority
🤖 This issue was written with AI assistance, under supervision, review and final edits by @rtibbles 🤖
sir, please assign this issue to me , i want to work on this issue @rtibbles
i work on the similar issue before this
I have assigned you.
Hi @MANDEep22332, Are you still actively working on this issue? I’d be happy to help or take this forward if it’s free.
can i work on this issue?
/assign
I have assigned you.
Hi @rtibbles , I’d like to be assigned this issue.
I noticed that there hasn’t been any progress over the past 3 weeks from @MANDEep22332's side, so I would love to work on it if that’s okay.
I’m also applying for GSoC 2026 for the "Introduce user-generated UI themes" project. I’ve already set up Kolibri locally on WSL2 and have been exploring the Device plugin, since my proposed Theme model extends DeviceSettings. Working on this issue would really help me better understand the Device plugin’s component structure.
I’m familiar with Vue 2.x, Vuex, and Jest. @rtibbles , I’d be very grateful if you could assign this to me.
Hey @MANDEep22332 , just checking to see if you are still working on this? I finished the PDF viewer VTL migration, so I'd be glad to pick this up if you're busy with other stuff. Let me know !!!
Hi! 👋
Thanks so much for your interest! This issue is already assigned. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
The assignee didn't reply for weeks ~ I will go ahead and assign @soaebhasan12 who asked next recently. Thank you.
Thanks mam, for assigning this issue to me. I will start working on it.
On Mon, 6 Apr, 2026, 12:06 pm Michaela Robosova, @.***> wrote:
Assigned #14263 https://github.com/learningequality/kolibri/issues/14263 to @soaebhasan12 https://github.com/soaebhasan12.
— Reply to this email directly, view it on GitHub https://github.com/learningequality/kolibri/issues/14263#event-24216186280, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCPLQL5P3PZD47ZMFKBVIY34UNGABAVCNFSM6AAAAACWA2BFSWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRUGIYTMMJYGYZDQMA . You are receiving this because you were assigned.Message ID: @.***>
I have started working on the migration. I will submit a PR soon. @MisRob
Hi @MisRob , I am working on this issue. I have started migrating SelectDriveModal.spec.js to Vue Testing Library.
Progress so far:
- Removed all
@vue/test-utilsimports - Set up
renderComponenthelper using@testing-library/vue - 3 tests passing so far
Will complete remaining tests and submit PR soon.
I have migrated both test files to the Vue testing library:
-
SelectDriveModal.spec.js— 9 tests migrated -
SelectTransferSourceModal.spec.js— 2 tests migrated
All tests passed: Test Suite: 19 passes, total 19 Test: 461 passes, total 461
Now I will send a pull request. Please let me know if anything needs to be changed before doing this.