Repository navigation
# test(e2e): add goal lifecycle create progress delete and empty state tests (#3804) - #3829
Open
KartikeyG-world wants to merge 4 commits into
Open
KartikeyG-world wants to merge 4 commits into
KartikeyG-world wants to merge 4 commits into
Conversation
KartikeyG-world
requested a review
from Priyanshu-byte-coder
as a code owner
November 26, 2026 06:58
Priyanshu-byte-coder
requested changes
Nov 26, 2026
Priyanshu-byte-coder
left a comment
Owner
There was a problem hiding this comment.
The test itself is solid and passes in CI. One small thing: the block comment cites "Per Section 4.4 (No artificial implementation)", which isn't a document in this repo, so it will confuse the next reader. Please keep the useful part (there is no edit-target control in GoalTracker, so this test doesn't cover editing) and drop the Section 4.4 line. Then it's ready.
|
Thanks for the PR, @KartikeyG-world! ❄️ This PR is tracked for Winter of Code Social 2026.
See CONTRIBUTING.md for the details. |
Contributor
Author
|
@Priyanshu-byte-coder |
Priyanshu-byte-coder
approved these changes
Nov 26, 2026
Priyanshu-byte-coder
left a comment
Owner
There was a problem hiding this comment.
Thanks for the cleanup, ready to go.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #3804
Description
Adds comprehensive Playwright end-to-end test coverage for the Goal Tracker widget exercising the full goal lifecycle from creation to deletion.
Key Changes
[Goals E2E] full lifecycle: create goal, mark progress, delete via confirmation modal, and verify empty stateine2e/goals.spec.ts.hours).+1button (Increment "[title]" progress by 1).0/5 hours->1/5 hours->2/5 hours) and progress bar states.ConfirmModalcomponent ("Delete Tracking Goal" -> "Permanently Delete").Architectural Note for Maintainers
PATCH /api/goals/[id]accepts{ target }, the React componentsrc/components/GoalTracker.tsxonly provides a target input during creation (setTarget) and does not expose an edit-target interface or button. In adherence to the repository's rule against fabricating fake UI or calling endpoints viapage.evaluate(), the test exercises the complete user-facing lifecycle and documents this frontend gap in comments.Testing & Verification
pnpm run type-check: Passed with 0 errors.git diff --check: 0 whitespace issues.Contributor Notes (WOCS 2026)
test/issue-3804-goals-e2e->main