Skip to content

DataGrid - AI Assistant: chat experience e2e tests#33805

Open
Alyar666 wants to merge 6 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_chat_experience_26_1
Open

DataGrid - AI Assistant: chat experience e2e tests#33805
Alyar666 wants to merge 6 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_chat_experience_26_1

Conversation

@Alyar666
Copy link
Copy Markdown
Contributor

@Alyar666 Alyar666 commented Jun 2, 2026

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.

Copilot AI review requested due to automatic review settings June 2, 2026 22:30
@Alyar666 Alyar666 requested a review from a team as a code owner June 2, 2026 22:30
@Alyar666 Alyar666 self-assigned this Jun 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.ts e2e 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.

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts Outdated
Copilot AI review requested due to automatic review settings June 4, 2026 08:25
@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_chat_experience_26_1 branch from cf68a09 to 3021eb5 Compare June 4, 2026 08:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts Outdated
Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts Outdated
Alyar and others added 2 commits June 4, 2026 16:01
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>
Copilot AI review requested due to automatic review settings June 4, 2026 12:01
@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_chat_experience_26_1 branch from bd5444a to 86e3e98 Compare June 4, 2026 12:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts Outdated
Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts
Copilot AI review requested due to automatic review settings June 4, 2026 13:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts
Copilot AI review requested due to automatic review settings June 4, 2026 19:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

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.

2 participants