-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
P1-high-betaHigh priority - should fix before beta for best experienceHigh priority - should fix before beta for best experiencebugSomething isn't workingSomething isn't workingtestingux
Description
Problem
The "Approve Tasks" button is not visible for projects in the planning phase with pending tasks, causing E2E test failures.
Failing Test
test_task_approval.spec.ts:149 - should handle 422 validation error gracefully
Error
Error: expect(locator).toBeVisible() failed
Locator: getByRole('button', { name: /approve/i })
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Context
- Test uses project ID 2 which is seeded in 'planning' phase with 4 pending tasks
- The approve button should appear when there are pending tasks awaiting approval
- Task approval flow test sequence depends on this button being visible
Possible Root Causes
- TaskReview component not rendering for planning phase
- Approve button conditional logic incorrect (checking wrong phase/status)
- Pending tasks not being loaded from API correctly
- Button visibility depends on some other UI state not met
Seeding Verification
π Seeding issues for project 2 (planning phase task approval)...
β
Seeded 3/3 issues for project 2
β
Seeded 4 tasks for project 2
Expected Behavior
When a project is in planning phase with pending tasks:
- User navigates to project dashboard
- Tasks tab shows pending tasks awaiting approval
- "Approve Tasks" or similar button is visible
- Clicking the button triggers the approval API
Affected Files
web-ui/src/components/TaskReview.tsx(or equivalent)web-ui/src/components/Dashboard.tsxtests/e2e/test_task_approval.spec.ts
coderabbitai
Metadata
Metadata
Assignees
Labels
P1-high-betaHigh priority - should fix before beta for best experienceHigh priority - should fix before beta for best experiencebugSomething isn't workingSomething isn't workingtestingux