Overview
Complexity: Low
Context
See #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
user@a.com 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
References
Sub-issue of #5789
AI usage
Issue drafted & iteratively adjusted in collaboration with Claude. Final version carefully reviewed by @MisRob.
Overview
Complexity: Low
Context
See #5789
The Change
Refactor
channelEdit/components/AssessmentItemEditor/AssessmentItemEditor.spec.jstest 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
user@a.comwith passwordaOut of Scope
Do not refactor any other areas of the codebase.
Acceptance Criteria
render,screenqueries, anduserEvent. Follow Testing Library principles and Testing Library query priority recommendation@vue/test-utilsimports should remain in migrated filespnpm test <filename>References
Sub-issue of #5789
AI usage
Issue drafted & iteratively adjusted in collaboration with Claude. Final version carefully reviewed by @MisRob.