Rename kebab-cased frontend test files to match their source filenames
The original scope — two competing test locations (test/ mirroring src/ vs __tests__/ alongside source) — is resolved: all plugin/core tests now live in __tests__/, codified in the dev docs by #14144 (<Name of the file being tested>.spec.js). The remaining flat test/ dirs (packages/kolibri-sandbox/, packages/kolibri-zip/) are standalone npm packages, where that layout is conventional.
What's left is the filename-case codicil. Spec filenames should match the case of their source, but 24 specs are kebab-cased against PascalCase component sources, e.g. FacilityAppBarPage.vue → facility-app-bar-page.spec.js. It's inconsistent even within a folder: facility/frontend/views/__tests__/ holds both FacilityAllPasswordsPage.spec.js and facility-app-bar-page.spec.js.
Scope
Rename these 24 files to match their PascalCase source, updating any references:
kolibri/plugins/facility/frontend/views/__tests__/facility-app-bar-page.spec.js
kolibri/plugins/facility/frontend/views/__tests__/facility-config-page.spec.js
kolibri/plugins/learn/frontend/views/__tests__/assessment-wrapper.spec.js
kolibri/plugins/learn/frontend/views/__tests__/bookmark-page.spec.js
kolibri/plugins/learn/frontend/views/__tests__/browse-resource-metadata.spec.js
kolibri/plugins/learn/frontend/views/__tests__/completion-modal.spec.js
kolibri/plugins/learn/frontend/views/__tests__/course-welcome-page.spec.js
kolibri/plugins/learn/frontend/views/__tests__/currently-viewed-resource-metadata.spec.js
kolibri/plugins/learn/frontend/views/__tests__/device-connection-status.spec.js
kolibri/plugins/learn/frontend/views/__tests__/explore-libraries-page.spec.js
kolibri/plugins/learn/frontend/views/__tests__/learn-index.spec.js
kolibri/plugins/learn/frontend/views/__tests__/learning-activity-bar.spec.js
kolibri/plugins/learn/frontend/views/__tests__/library-and-channel-browser-main-content-grid.spec.js
kolibri/plugins/learn/frontend/views/__tests__/library-page.spec.js
kolibri/plugins/learn/frontend/views/__tests__/resumable-content-grid.spec.js
kolibri/plugins/learn/frontend/views/__tests__/search-results-grid.spec.js
kolibri/plugins/learn/frontend/views/__tests__/topic-content.spec.js
kolibri/plugins/learn/frontend/views/__tests__/topic-row.spec.js
kolibri/plugins/learn/frontend/views/__tests__/topics-page.spec.js
kolibri/plugins/user_auth/frontend/views/__tests__/auth-base.spec.js
kolibri/plugins/user_auth/frontend/views/__tests__/auth-select-page.spec.js
kolibri/plugins/user_auth/frontend/views/__tests__/sign-in-page.spec.js
kolibri/plugins/user_auth/frontend/views/__tests__/sign-up-page.spec.js
kolibri/plugins/user_auth/frontend/views/__tests__/user-page.spec.js
Confirm each source is PascalCase before renaming; some may name a component differently than the kebab slug suggests.
Hi @nucleogenesis , Can I work on this issue?
Hi, @Abhishek-Punhani, as I usually say, 'help wanted' issues are the way to go ;) This issue also seems to be in need of decisions.
Sure @MisRob , I will wait for new issues to be lined up. I just found this doable so just checked in for assignment .
Plan: Rename 24 kebab-case spec files to PascalCase to match their source component names, with no content changes.
- [ ] Rename facility plugin spec files
- [ ] Rename learn plugin spec files
- [ ] Rename user_auth plugin spec files
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
- Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
- Ran the project's full test suite and linter before committing
- For UI changes: captured live screenshots to verify rendering
- For backend changes: verified with example API/CLI output