Convert assessment item editor unit 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
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 passworda - 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,screenqueries, anduserEvent. 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-utilsimports 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.
Can I work on this ?
Yes thank you @Swoyamjeetcodes
Hi! I noticed this issue hasn’t had recent activity - if it’s still available, I’d like to take it on.
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! 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
@MisRob I dont want to work on this anymore, could you assign this to someone else?. Thanks
hii maintaininers can you assign this to me, i can try to fix
Can I get assign i could love to work on this .
Hi @rohitt-pandey! I'll assign the issue to @Rajeev529 based on who requested for it first. Thank you both!
@Rajeev529 do let us know incase you have any questions in the course of working on the issue. Thank you
sorry for delay, within last week i create pr. ThankYou
Hey @MisRob @akolson, if Rajeev is quite busy with something let me know to fix this.
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.
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.
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.
Thanks @Rajeev529 for your confirmation--unassigning you. @vtushar06 are you able to pick this up?
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!