Skip to content

chore(atomic): E2E tests for analytics triggered actions for Search Agent#7899

Open
SimonMilord wants to merge 43 commits into
mainfrom
SFINT-6840
Open

chore(atomic): E2E tests for analytics triggered actions for Search Agent#7899
SimonMilord wants to merge 43 commits into
mainfrom
SFINT-6840

Conversation

@SimonMilord

@SimonMilord SimonMilord commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

SFINT-6840

Added checks for analytics for the interactions in the search agent.

Also added a test to check the following:

After generating the 3rd answer, come back and interact with the 2nd answer and test these interactions:

  • like/dislike
  • copy-to-clipboard
  • follow-up
  • hover citations
  • click citations

To make sure analytics are sending the answerId of the given answer and not always the head answer.

Copilot AI 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.

Pull request overview

Adds Playwright E2E assertions to ensure Search Agent “generated answer” interactions emit the correct analytics payloads (notably the correct answerId when interacting with older thread items), aligning with SFINT-6840’s goal of validating analytics correctness in multi-turn conversations.

Changes:

  • Added page-object helpers to wait for follow-up requests and specific legacy custom analytics events.
  • Extended the Search Agent follow-up E2E scenario to validate analytics for copy/like/dislike/hover/click (including revisiting the 2nd answer after generating a 3rd).
  • Added a changeset for @coveo/atomic (patch).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
packages/atomic/src/components/search/atomic-generated-answer/e2e/page-object.ts Adds request-wait helpers for follow-up and custom analytics events.
packages/atomic/src/components/search/atomic-generated-answer/e2e/atomic-generated-answer.e2e.ts Adds analytics assertions for multiple follow-up interactions and revisiting prior answers.
.changeset/sixty-jokes-cheat.md Declares a patch release for @coveo/atomic for these E2E additions.

Comment thread .changeset/sixty-jokes-cheat.md Outdated
@SimonMilord SimonMilord marked this pull request as draft June 30, 2026 13:44
@SimonMilord SimonMilord marked this pull request as ready for review June 30, 2026 15:14
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.

5 participants