Migrate Device channel management 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 channel management pages 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 channel management:
kolibri/plugins/device/frontend/views/__tests__/AvailableChannelsPage.spec.jskolibri/plugins/device/frontend/views/__tests__/RearrangeChannelsPage.spec.jskolibri/plugins/device/frontend/views/__tests__/NewChannelVersionPage.spec.js
Do not refactor any other test files or areas of the codebase.
Acceptance Criteria
- [x]
ChannelTokenModal.spec.jsmigrated (PR #14883) - [ ] All three remaining 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 @rtibbles , please assign this issue to me, i already work on the similar issue before
@MANDEep22332 I have assigned you.
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.
Hi @MANDEep22332, Are you still actively working on this issue? Iβd be happy to help or take this forward if itβs free.
Hi @rtibbles , @MisRob I've read the contributing guidelines and GSoC guidelines carefully.I notice this has been assigned for 2 weeks with no PR yet. I have already studied the codebase and the VTL migration patterns. Could I be assigned or co-assigned?I'm ready to submit a PR quickly.
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.
From lack of responses on other issues too, I don't think that the assignee is around ~ removing assignment
Hi @MisRob, I see theres noon assigned to this one yet, I would like to take this one up too since Im almost done with the other one.
hi @MisRob, can i work on this one, as i have no open issues.
hi @MisRob , can you assign this to me.
Sure @sahibsiddiqui, I'll assign it to you since you asked first after removal of previous assignee! Thank you!
thanks for assigning, will share an update soon.
Hi @sahibsiddiqui. We've just merged few new conventions & related linting rules to develop (https://github.com/learningequality/kolibri/pull/14579). Please make sure to work from the latest develop, run lint & fix if anything is reported. Here is guidance on how to fix reported errors:
hi @MisRob and @akolson there is no update since a month, can you assign this issue to me?
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.
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.
Hi @soaebhasan12! Yes sure, I'll unassign @sahibsiddiqui as we've not heard from him for over a month now, and assign it to you. Thank you!
thanks @akolson for assigning this issue to me. i start working on this issue.
I am currently working on this issue. However, my exams are starting next week, so I won't be able to submit a PR right away. I will definitely raise the PR as soon as my exams are over. Could you please keep this issue assigned to me until then? Thank you!
Hi @soaebhasan12! Thank you for reaching out! Do you have a time frame within which you expect raise the pr? Good luck with your exams!