kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Migrate Device settings tests to Vue Testing Library

Open rtibbles opened this issue 9 months ago • 10 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 settings and welcome components 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 device settings:

  • kolibri/plugins/device/frontend/views/DeviceSettingsPage/__tests__/DeviceSettingsPage.spec.js
  • kolibri/plugins/device/frontend/views/__tests__/WelcomeModel.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-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

Can I work on this ?

Swoyamjeetcodes avatar Mar 07 '26 04:03 Swoyamjeetcodes

You have an assigned issue with an associated PR with unresolved issues, I would prefer not to assign any new issues until that is resolved: https://github.com/learningequality/kolibri/pull/14197

rtibbles avatar Mar 07 '26 04:03 rtibbles

@rtibbles can i work on this issue?

curiouscoder-cmd avatar Mar 07 '26 04:03 curiouscoder-cmd

@rtibbles , sir please assign this issue to me

MANDEep22332 avatar Mar 07 '26 05:03 MANDEep22332

@curiouscoder-cmd I have assigned you.

rtibbles avatar Mar 07 '26 05:03 rtibbles

@curiouscoder-cmd I have assigned you.

Thanks for assigning ! I have started working .

curiouscoder-cmd avatar Mar 07 '26 05:03 curiouscoder-cmd

Hi @rtibbles , I have raised a PR #14376 , it seems the bot is checking the previous commit instead of latest. or I may have missed something from the requirements. Pls review it whenever possible. Thanks!

curiouscoder-cmd avatar Mar 14 '26 07:03 curiouscoder-cmd

can i work on this issue?

sebinbabu5555 avatar Mar 24 '26 17:03 sebinbabu5555

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 24 '26 17:03 learning-equality-bot

can i work on this issue?

Hi @sebinbabu5555, I already raised a PR for this, and it is under review! Thanks for the interest :)

curiouscoder-cmd avatar Mar 24 '26 17:03 curiouscoder-cmd