Repository navigation
# test(e2e): add settings persistence and failure handling tests (#3805) - #3830
Conversation
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
Good coverage: the stateful mock makes the reload check meaningful, and the 500 path asserts there's no false success message. Thanks!
You mentioned WOCS 2026 in the description but used a custom PR body, so the template's WOCS checkbox isn't there. I've added wocs and level 2 for you; next time keep the template and tick the box.
|
Thanks for the PR, @KartikeyG-world! ❄️ This PR is tracked for Winter of Code Social 2026.
See CONTRIBUTING.md for the details. |
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
Re-approving after updating with main.
596bb04
into
Priyanshu-byte-coder:main
|
🎉 Merged! Thanks for contributing to DevTrack. If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers. Keep an eye on open issues for your next contribution! |
Closes #3805
Description
Implements complete Playwright E2E coverage for user settings changes, state persistence across page reloads, and error handling when persistence fails.
Key Changes
e2e/settings.spec.jsto statefully support bio and timezone alongside existing visibility settings.#profile-bio-> "Save Bio"), timezone selection (#timezone-select-> "Asia/Kolkata"), and public profile visibility toggle.bio,timezone,is_public) persist accurately afterpage.reload().PATCH /api/user/settingsreturns HTTP 500, appropriate error feedback is rendered, no false success message is shown, and unsaved changes are not persisted on reload.Testing & Verification
pnpm run type-check: Passed with 0 errors.git diff --check: 0 whitespace issues.Contributor Notes (WOCS 2026)
test/issue-3805-settings-e2e->main