studio icon indicating copy to clipboard operation
studio copied to clipboard

Convert assessment item editor unit tests to Vue Testing Library

Open MisRob opened this issue 7 months ago • 14 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

See https://github.com/learningequality/studio/issues/5789

The Change

Refactor channelEdit/components/AssessmentItemEditor/AssessmentItemEditor.spec.js test suite to use Vue Testing Library (VTL) and write tests in a way that reflects how a user interacts with the application. In the pull request description, include a screenshot or screen recording of the feature covered by these tests.

Do not refactor any other areas of the codebase.

How to Get There

  • Login as [email protected] with password a
  • Go to Channels > My Channels > Published Channel > Topic 1
  • Click Options > Edit details for Sample Exercise
  • Navigate to the Questions tab
  • Add or edit a question

Out of Scope

Do not refactor any other areas of the codebase.

Acceptance Criteria

  • [ ] Cover all major workflows while avoiding excessive testing of details
  • [ ] Pull request description includes a screenshot or screen recording of the feature covered by these tests
  • [ ] Concise but explicit test descriptions that describe what's tested from a user point of view
  • [ ] Migrated tests should use render, screen queries, and userEvent. Follow Testing Library principles and Testing Library query priority recommendation
  • [ ] Follow our Unit testing guide and Testing template, where you will also find how we mock router, store, composables, and more.
  • [ ] No residual @vue/test-utils imports should remain in migrated files
  • [ ] All migrated tests must pass pnpm test <filename>

References

Sub-issue of https://github.com/learningequality/studio/issues/5789

AI usage

Issue drafted & iteratively adjusted in collaboration with Claude. Final version carefully reviewed by @MisRob.

MisRob avatar Apr 06 '26 12:04 MisRob

Can I work on this ?

Swoyamjeetcodes avatar Apr 06 '26 12:04 Swoyamjeetcodes

Yes thank you @Swoyamjeetcodes

MisRob avatar Apr 06 '26 12:04 MisRob

Hi! I noticed this issue hasn’t had recent activity - if it’s still available, I’d like to take it on.

J-man-2408 avatar Apr 30 '26 11:04 J-man-2408

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 Apr 30 '26 11:04 learning-equality-bot

Hi! I noticed this issue hasn’t had recent activity - if it’s still available, I’d like to take it on.

I am still working :D, will raise PR soon

Swoyamjeetcodes avatar Apr 30 '26 11:04 Swoyamjeetcodes

@MisRob I dont want to work on this anymore, could you assign this to someone else?. Thanks

Swoyamjeetcodes avatar May 14 '26 14:05 Swoyamjeetcodes

hii maintaininers can you assign this to me, i can try to fix

Rajeev529 avatar May 14 '26 14:05 Rajeev529

Can I get assign i could love to work on this .

rohitt-pandey avatar May 14 '26 14:05 rohitt-pandey

Hi @rohitt-pandey! I'll assign the issue to @Rajeev529 based on who requested for it first. Thank you both!

akolson avatar May 14 '26 14:05 akolson

@Rajeev529 do let us know incase you have any questions in the course of working on the issue. Thank you

akolson avatar May 14 '26 14:05 akolson

sorry for delay, within last week i create pr. ThankYou

Rajeev529 avatar May 23 '26 16:05 Rajeev529

Hey @MisRob @akolson, if Rajeev is quite busy with something let me know to fix this.

vtushar06 avatar Jun 10 '26 04:06 vtushar06

Hi Tushar, You're right, I've been a bit busy. I'll try to make it as soon as possible. If I can't, I'll let you know soon.

Rajeev529 avatar Jun 10 '26 05:06 Rajeev529

Thanks @Rajeev529 for the confirmation.

@vtushar06, just a heads-up that there is review feedback awaiting your action on this open PR that you authored.

akolson avatar Jun 10 '26 05:06 akolson

Hi @vtushar06, you can pick up this issue if you're still interested in it. I wasn't able to make all the test cases pass. Thank you.

Rajeev529 avatar Jun 22 '26 18:06 Rajeev529

Thanks @Rajeev529 for your confirmation--unassigning you. @vtushar06 are you able to pick this up?

akolson avatar Jun 22 '26 18:06 akolson

Hi @akolson and @vtushar06 👋 Tushar, I know you expressed interest in this a couple of weeks ago, so please go ahead if you still have the bandwidth! But if you happen to be tied up with your other PR right now, I have my local environment all set up and would be more than happy to step in and take this over. Just let me know what works best for you both!

Shlok1729 avatar Jun 23 '26 13:06 Shlok1729