Skip to content

feat(atomic): Add E2E coverage for agent follow-up error handling#7909

Merged
SimonMilord merged 62 commits into
mainfrom
SFINT-6775
Jul 8, 2026
Merged

feat(atomic): Add E2E coverage for agent follow-up error handling#7909
SimonMilord merged 62 commits into
mainfrom
SFINT-6775

Conversation

@SimonMilord

@SimonMilord SimonMilord commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

SFINT-6775

Adds comprehensive E2E test coverage for follow-up answer analytics and error handling in the atomic-generated-answer component.

Tested analytics on the following:

- like/dislike
- copy-to-clipboard
- hover citation (generatedAnswerSourceHover)
- click citation (generatedAnswerFollowupOpenSource)
- follow-up request body
  • Added a step verifying that interacting with the 2nd answer (after generating a 3rd and expanding via "show previous") sends analytics with the correct answer-scoped IDs

New tests for:
- Network failure → displays generic error message
- SSE turn-limit error (KNOWLEDGE:SSE_TURN_LIMIT_REACHED) → displays distinct turn-limit message
- SSE internal error (KNOWLEDGE:SSE_INTERNAL_ERROR) → displays generic error message

Storybook stories

  • FollowUpNetworkError, FollowUpTurnLimitError, FollowUpGenericError dedicated stories that mock the follow-up endpoint to return each error type

@erocheleau erocheleau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mmitiche

mmitiche commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

what's the goal of this PR? adding E2E or adding storybook stories?

@SimonMilord

Copy link
Copy Markdown
Contributor Author

what's the goal of this PR? adding E2E or adding storybook stories?

tests were removed in a merge for some reason, I re-added them

Comment thread packages/platform-mock-api/src/agent/generate-response.ts Outdated

@mmitiche mmitiche left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just a portion that can be refactored to avoid duplicating logic.

@SimonMilord SimonMilord enabled auto-merge July 8, 2026 13:59
@SimonMilord SimonMilord added this pull request to the merge queue Jul 8, 2026
Merged via the queue into main with commit a37dca8 Jul 8, 2026
69 checks passed
@SimonMilord SimonMilord deleted the SFINT-6775 branch July 8, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants