[Remove Vuetify from Studio] Convert 'Create an account' unit tests to Vue Testing Library #5634
+122
−149
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactored the accounts/pages/tests/create.spec.js test suite to use Vue Testing Library (VTL) and align tests with real user interactions instead of component internals.
The new tests focus on core user workflows:
Visiting the Create Account page
Interacting with form fields and checkboxes
Submitting the form with missing data
Handling URL-prefilled email values
Tests that depend on Vuetify-specific components (e.g. dropdowns) are explicitly skipped with clear comments, following Testing Library principles and keeping the suite resilient ahead of the planned Vuetify removal.
Manual verification
Ran the updated test suite locally using pnpm test accounts/pages/tests/create.spec.js (from the frontend folder)
Verified all non-skipped tests pass
Confirmed skipped tests are documented and justified
No UI layout or visual changes were made.
References
Closes #5633
Refactors: accounts/pages/tests/create.spec.js
Reviewer guidance
To review:
Navigate to accounts/pages/tests/create.spec.js
Verify tests:
Use @testing-library/vue
Follow Testing Library query priority (roles, labels)
Describe behavior from a user’s point of view
Run:
pnpm test accounts/pages/tests/create.spec.js (from the frontend folder)
Notes for reviewers
Skipped tests are intentional and documented due to known limitations with Vuetify components in VTL
No production code was changed
This PR is scoped strictly to test refactoring, per the issue’s out-of-scope requirements