chore(atomic): E2E tests for analytics triggered actions for Search Agent#7899
Open
SimonMilord wants to merge 43 commits into
Open
chore(atomic): E2E tests for analytics triggered actions for Search Agent#7899SimonMilord wants to merge 43 commits into
SimonMilord wants to merge 43 commits into
Conversation
…quent test navigations in the describe block
Co-authored-by: SimonMilord <73316533+SimonMilord@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
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. |
alexprudhomme
approved these changes
Jun 30, 2026
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.
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:
To make sure analytics are sending the answerId of the given answer and not always the head answer.