Refactored the tests on fileUpoadItem.spec.js to Vue Testing Library …#6010
Refactored the tests on fileUpoadItem.spec.js to Vue Testing Library …#6010harrisonoakess wants to merge 1 commit into
Conversation
|
👋 Hi @harrisonoakess, thanks for contributing! For the review process to begin, please verify that the following is satisfied:
Also check that issue requirements are satisfied & you ran Pull requests that don't follow the guidelines will be closed. Reviewer assignment can take up to 2 weeks. |
Summary
Refactored channelEdit/views/files/tests/fileUploadItem.spec.js to use Vue Testing Library (VTL). Tests are rewritten to reflect how a user interacts with the file upload feature rather than testing implementation details.
References
Closes #5811
Sub-issue of #5789
Reviewer guidance
Ran the docker instance and verified the upload process.
Ran 'pnpm test fileUploadItem' and passed 1/1 test suites and 9/9 tests in 2.5 s
Code changes should not affect UI, these changes are only tests
The tests make sure the upload files section works correctly. channels --> my channels --> click on the channel card or create a new channel) --> Add --> Upload files
AI usage
I used Claude Code for some code generation and final review. For the code I wrote, I had Claude Code review. For the code that Claude wrote, I reviewed the code, made edits, and removed excessive lines.
I am new to open-source contribution, so let me know if you have any suggestions.