test(activity-feed-v2): add TaskModalV2 stories and a11y visual tests#4673
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
WalkthroughAdds Storybook coverage for InteractiveTaskModal with reusable mocks and wrapper state, standard create/edit/error stories, and play-function stories that exercise keyboard focus and assignee listbox accessibility. ChangesTaskModalV2 Storybook coverage
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merge Queue Status
This pull request spent 33 minutes 27 seconds in the queue, with no time running CI. ReasonPull request #4673 has been dequeued Queue conditions are not satisfied:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Requeued — the merge queue status continues in this comment ↓. |
Seed a submit error so the SubmitError story renders the notice, assert due-date prefill and completion-rule state in the edit prefill test with a timezone-safe midday-UTC due_at, assert per-field invalid state in the validation test, disable inline docs previews for the visual test file, and use the Blueprint Button in the story wrapper.
Keep the tab-order and open-listbox stories, which need a real browser. Static end states and validation wiring are covered by the public TaskModalV2 stories and the jest suites.
Merge Queue Status
This pull request spent 15 minutes 29 seconds in the queue, including 4 seconds running CI. Required conditions to merge
|
|
@Mergifyio refresh |
✅ Pull request refreshed |
Summary
TaskModalV2(create general/approval, edit approval, submit error) driven by a self-containedInteractiveTaskModalwrapper with mockedfetchUsers/fetchAvatarUrls, so no MSW handlers are neededassigned_tocollectionTest plan
yarn start:storybookand verify the stories under Elements/ContentSidebar/TaskModalV2 render and play functions passyarn lintpasses (eslint + tsc)Summary by CodeRabbit
New Features
Tests