Skip to content

DataGrid - AI Assistant: command execution e2e tests#33804

Merged
Alyar666 merged 14 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_commands_26_1
Jun 12, 2026
Merged

DataGrid - AI Assistant: command execution e2e tests#33804
Alyar666 merged 14 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_commands_26_1

Conversation

@Alyar666

@Alyar666 Alyar666 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

What does the PR change?

Adds e2e TestCafe tests for the DataGrid AI Assistant — command execution and grid-state edge cases — single/multi commands, local data parity, stacked operations, and empty/single-row/large/single-column/all-hidden/already-in-target-state grids (plan §1.2–§1.4, §3.1–§3.7).

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

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 a new TestCafe e2e suite validating DataGrid AI Assistant command execution across common scenarios and grid-state edge cases, plus the necessary TestCafe page-object (POM) accessors and shared helpers to support the tests.

Changes:

  • Added commands.functional.ts TestCafe coverage for single/multi-command execution, stacked operations, and empty/single-row/large/single-column/all-hidden/already-in-target-state grids.
  • Introduced shared AI Assistant TestCafe helpers (testHelpers.ts) for consistent page setup and client-side utilities.
  • Extended devextreme-testcafe-models DataGrid/AI Assistant chat models with new accessors to query AI chat state and interact with AI Assistant UI.

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 AI Assistant button focus and reading DataSource sort parameters.
packages/testcafe-models/dataGrid/aiAssistantChat.ts Expands AI Assistant chat POM with input/suggestions/message accessors and abort-confirm dialog selectors.
packages/testcafe-models/chat.ts Adds a reusable getMessageBubbles() accessor and refactors getMessage() to use it.
e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/testHelpers.ts Adds shared constants and client-side helpers for the AI Assistant e2e tests.
e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts New functional e2e suite covering AI Assistant command execution and edge-case grid states.

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts Outdated
Copilot AI review requested due to automatic review settings June 4, 2026 08:19
@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_commands_26_1 branch from bdf146c to 1b14a9f Compare June 4, 2026 08:19

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

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

Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts Outdated
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts Outdated
Copilot AI review requested due to automatic review settings June 4, 2026 12:01
@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_commands_26_1 branch from 6ff2765 to 1a3e2e5 Compare June 4, 2026 12:01

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts Outdated
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts Outdated
Copilot AI review requested due to automatic review settings June 8, 2026 09:42

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts
Copilot AI review requested due to automatic review settings June 8, 2026 10:38

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

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

Copilot AI review requested due to automatic review settings June 11, 2026 13:37

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

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

@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_commands_26_1 branch from f36f849 to 13c29f0 Compare June 11, 2026 16:20
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts Outdated
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts Outdated
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/commands.functional.ts Outdated
Alyar and others added 2 commits June 12, 2026 16:05
command execution and grid-state edge cases — single/multi commands, local data parity, stacked operations, and empty/single-row/large/single-column/all-hidden/already-in-target-state grids (plan §1.2–§1.4, §3.1–§3.7)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Extract a mocked-integration grid factory (local + remote) to remove the
  per-test aiIntegration boilerplate; replay canned responses in order.
- Unify assertion order (chat status first, then grid state) and the
  success accessor (getSuccessMessages + getSuccessActionItems) across tests.
- Verify remote-specific behavior in 1.4.2 via getDataSource().sort() load option.
- Fix filterValue mocks (3.1.2/3.5.3/3.7.2) to use the {rootId,nodes} tree
  shape the command schema expects (flat {type:'basic'} was rejected).
- Drop unused POM accessors added for sibling PRs (abort dialog, suggestions,
  input/clear-chat disabled state, getAIMessages, focusAIAssistantButton, etc.).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Alyar and others added 9 commits June 12, 2026 16:27
The selectByIndexes command schema now requires a `mode: 'select' | 'deselect'`
field (strict schema). The 3.2.2/3.2.3 mocks sent `{ indexes: [...] }` without
`mode`, so validateResponse rejected the response ("invalid response") and the
tests failed in CI. Add `mode: 'select'` to both payloads.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Use the canonical getMessages (chat bubbles) / getAIMessages semantics and keep
only the POM methods this PR's tests use (functional + visual), dropping unused ones.
Move the common test data and the queue-based sendRequest mock
(createGridWithAIAssistant / setupAIState / sentinels) into testHelpers so all
queue-based suites share one implementation instead of per-file duplicates.
Collapse the per-section fixtures into a single named fixture; keep the
// === §X === markers as in-file section dividers.
…ync grid reads to t.expect

Restore the scoped getWrapper override; drop await inside t.expect so TestCafe
retries async grid-state assertions (Copilot review).
Copilot AI review requested due to automatic review settings June 12, 2026 12:44
@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_commands_26_1 branch from 13c29f0 to 164ac9a Compare June 12, 2026 12:44

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread packages/testcafe-models/chat.ts
anna-shakhova
anna-shakhova previously approved these changes Jun 12, 2026
Copilot AI review requested due to automatic review settings June 12, 2026 13:43

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

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

@Alyar666 Alyar666 merged commit d0b3d12 into DevExpress:26_1 Jun 12, 2026
105 checks passed
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