Skip to content

DataGrid - AI Assistant: regenerate e2e tests#33808

Open
Alyar666 wants to merge 4 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_regenerate_26_1
Open

DataGrid - AI Assistant: regenerate e2e tests#33808
Alyar666 wants to merge 4 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_regenerate_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 — the Regenerate button — visibility after pre-execution failures, absence after command execution, resend-and-replace behavior and in-flight disabling (plan §1.12, §3.8.2).

Part of splitting the AI Assistant e2e suite into per-area pull requests.

How did you achieve this?

aiAssistant.aiIntegration.sendRequest is mocked to return deterministic responses; assertions check chat status and grid state via POM accessors. The PR also includes the shared testHelpers.ts and AI Assistant testcafe-models POM accessors the suite depends on.

How can we verify these changes?

pnpm nx test devextreme-testcafe-tests -- --componentFolder dataGrid/common/aiAssistant --file regenerate.functional --browsers 'chrome:headless' --concurrency 1

the Regenerate button — visibility after pre-execution failures, absence after command execution, resend-and-replace behavior and in-flight disabling (plan §1.12, §3.8.2)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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/extends the DataGrid AI Assistant (chat) TestCafe page models and introduces a new e2e suite covering Regenerate-button behavior across failure/success/abort scenarios, as part of splitting the AI Assistant e2e coverage into per-area PRs.

Changes:

  • Added a new regenerate.functional.ts TestCafe suite validating Regenerate visibility, replacement behavior, and in-flight state handling.
  • Extended devextreme-testcafe-models DataGrid/AI Assistant chat POMs with additional selectors/accessors (messages, input, suggestions, abort-confirm dialog).
  • Introduced shared ai-assistant test helpers (testHelpers.ts) for common constants and client-side utilities.

Reviewed changes

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

Show a summary per file
File Description
packages/testcafe-models/dataGrid/index.ts Adds DataGrid POM API helper for reading datasource sort and a helper to focus the AI Assistant button.
packages/testcafe-models/dataGrid/aiAssistantChat.ts Expands AI Assistant chat POM to expose input, message grouping, suggestions, and abort-confirm dialog accessors.
packages/testcafe-models/chat.ts Adds a reusable getMessageBubbles() accessor and reuses it in getMessage().
e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/testHelpers.ts Adds shared constants and ClientFunctions for AI-assistant DataGrid tests.
e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/regenerate.functional.ts New e2e tests for DataGrid AI Assistant Regenerate scenarios and sequential regeneration behavior.

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts
Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts Outdated
Copilot AI review requested due to automatic review settings June 5, 2026 00:43
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
Comment thread e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/testHelpers.ts Outdated
Add grid-state assertions (apiColumnOption) to every regenerate test so each
case confirms whether the command applied or not, and verify 1.12.8 resends the
same prompt with a freshly-built context. Switch 1.12.4 to getErrorMessages for
consistency. Move the mock factory into the test file and drop POM/testHelpers
members unused by this PR.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_regenerate_26_1 branch from 73b42b7 to e092d3d Compare June 5, 2026 08:12
Copilot AI review requested due to automatic review settings June 5, 2026 08:53
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 1 comment.

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