DataGrid - AI Assistant: chat experience e2e tests#33805
Open
Alyar666 wants to merge 6 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds TestCafe e2e coverage for the DevExtreme DataGrid AI Assistant chat experience, including chat history behavior, suggestions, response customization, and persistence across popup reopen, alongside required TestCafe page-object model (POM) enhancements.
Changes:
- Added a new
chatExperience.functional.tse2e suite covering AI Assistant chat history, suggestions,customizeResponseText/title(init + runtime), and history preservation after popup reopen. - Introduced shared AI Assistant e2e utilities (
testHelpers.ts) and extended TestCafe POMs for DataGrid/AI chat interactions (messages, suggestions, focus helper, data source sort access).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/testcafe-models/dataGrid/index.ts | Adds DataGrid POM helpers for reading data source sort params and focusing the AI Assistant button. |
| packages/testcafe-models/dataGrid/aiAssistantChat.ts | Extends AI Assistant chat POM with input/messages/suggestions accessors and dialog helpers. |
| packages/testcafe-models/chat.ts | Adds getMessageBubbles() accessor and reuses it in getMessage(). |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/testHelpers.ts | Adds shared constants and ClientFunctions for AI Assistant e2e tests. |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/chatExperience.functional.ts | New e2e suite validating AI Assistant chat UX and request payload behavior. |
cf68a09 to
3021eb5
Compare
chat behavior — history accumulation and latest-message-only payload, suggestions, `customizeResponseText`/`customizeResponseTitle` (init and runtime) and history preservation across popup reopen (plan §1.5, §1.6, §1.8, §1.9, §3.12) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Align chatExperience e2e tests with the command-execution suite: shared local helpers (setupAIState/aiGridOptions/createGridWithAIAssistant, threeRows/twoRows), strict mock that rejects unexpected AI calls, plain fixture (no disablePageReloads), and unified global names. Strengthen assertions to verify the command was actually applied to the grid, add user-message and failure-default checks (1.5.1, 1.8.2), and use undefined in 1.8.3 per the scenario doc. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bd5444a to
86e3e98
Compare
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.
What does the PR change?
Adds e2e TestCafe tests for the DataGrid AI Assistant — chat behavior — history accumulation and latest-message-only payload, suggestions,
customizeResponseText/customizeResponseTitle(init and runtime) and history preservation across popup reopen (plan §1.5, §1.6, §1.8, §1.9, §3.12).Part of splitting the AI Assistant e2e suite into per-area pull requests.