kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Migrate Device channel management tests to Vue Testing Library

Open rtibbles opened this issue 9 months ago β€’ 40 comments

πŸ™‚ 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.js
  • kolibri/plugins/device/frontend/views/__tests__/RearrangeChannelsPage.spec.js
  • kolibri/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.js migrated (PR #14883)
  • [ ] All three remaining files migrated to use @testing-library/vue
  • [ ] No residual @vue/test-utils imports 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

πŸ€– This issue was written with AI assistance, under supervision, review and final edits by @rtibbles πŸ€–

rtibbles avatar Feb 26 '26 17:02 rtibbles

sir @rtibbles , please assign this issue to me, i already work on the similar issue before

MANDEep22332 avatar Mar 07 '26 04:03 MANDEep22332

@MANDEep22332 I have assigned you.

rtibbles avatar Mar 07 '26 05:03 rtibbles

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.

learning-equality-bot avatar Mar 17 '26 14:03 learning-equality-bot

Hi @MANDEep22332, Are you still actively working on this issue? I’d be happy to help or take this forward if it’s free.

abhicodes0324 avatar Mar 17 '26 14:03 abhicodes0324

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.

AnoshaHafeez avatar Mar 21 '26 19:03 AnoshaHafeez

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.

learning-equality-bot avatar Mar 21 '26 19:03 learning-equality-bot

From lack of responses on other issues too, I don't think that the assignee is around ~ removing assignment

MisRob avatar Apr 06 '26 06:04 MisRob

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.

ketan0919 avatar Apr 06 '26 07:04 ketan0919

hi @MisRob, can i work on this one, as i have no open issues.

sahibsiddiqui avatar Apr 06 '26 13:04 sahibsiddiqui

hi @MisRob , can you assign this to me.

deepakmarudi avatar Apr 06 '26 13:04 deepakmarudi

Sure @sahibsiddiqui, I'll assign it to you since you asked first after removal of previous assignee! Thank you!

akolson avatar Apr 08 '26 11:04 akolson

thanks for assigning, will share an update soon.

sahibsiddiqui avatar Apr 08 '26 13:04 sahibsiddiqui

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:

MisRob avatar Apr 23 '26 08:04 MisRob

hi @MisRob and @akolson there is no update since a month, can you assign this issue to me?

soaebhasan12 avatar May 27 '26 00:05 soaebhasan12

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.

learning-equality-bot avatar May 27 '26 00:05 learning-equality-bot

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.

learning-equality-bot avatar May 27 '26 06:05 learning-equality-bot

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!

akolson avatar May 27 '26 07:05 akolson

thanks @akolson for assigning this issue to me. i start working on this issue.

soaebhasan12 avatar May 29 '26 16:05 soaebhasan12

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!

soaebhasan12 avatar Jun 17 '26 09:06 soaebhasan12

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!

akolson avatar Jun 17 '26 13:06 akolson