Skip to content

DataGrid - AI Assistant: interruption & cancellation e2e tests#33810

Open
Alyar666 wants to merge 3 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_interruption_26_1
Open

DataGrid - AI Assistant: interruption & cancellation e2e tests#33810
Alyar666 wants to merge 3 commits into
DevExpress:26_1from
Alyar666:ai_assistant_e2e_interruption_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 — interruption and cancellation — closing the popup mid-request (abort, ignored late resolution) and disposing the grid mid-request/mid-execution (plan §5.2, §5.5).

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 interruption.functional --browsers 'chrome:headless' --concurrency 1

interruption and cancellation — closing the popup mid-request (abort, ignored late resolution) and disposing the grid mid-request/mid-execution (plan §5.2, §5.5)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 2, 2026 22:31
@Alyar666 Alyar666 requested a review from a team as a code owner June 2, 2026 22:31
@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 new TestCafe e2e coverage for the DataGrid AI Assistant “interruption & cancellation” scenarios (closing the AI chat mid-request and disposing the grid mid-request/mid-execution), plus the necessary TestCafe Page Object Model (POM) extensions to observe chat/grid state during these flows.

Changes:

  • Added a new functional e2e suite (interruption.functional.ts) covering popup-close abort behavior and grid dispose safety during in-flight AI work.
  • Extended devextreme-testcafe-models POMs (DataGrid + AI Assistant Chat + Chat) with accessors needed by the new tests.
  • Introduced shared AI Assistant test helpers (testHelpers.ts) for page URL + localization formatting.

Reviewed changes

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

Show a summary per file
File Description
packages/testcafe-models/dataGrid/index.ts Adds DataGrid-side POM helpers for reading dataSource sort params and focusing the AI Assistant button.
packages/testcafe-models/dataGrid/aiAssistantChat.ts Adds AI Assistant chat POM accessors for input, abort confirmation dialog, message bubbles, suggestions, and disabled-state checks.
packages/testcafe-models/chat.ts Adds getMessageBubbles() helper and reuses it from getMessage().
e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/testHelpers.ts Adds shared constants and ClientFunction helpers (page URL, localization message formatting).
e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/interruption.functional.ts New e2e tests for abort-on-close and dispose-during-flight scenarios.

Comment thread packages/testcafe-models/dataGrid/aiAssistantChat.ts
Align interruption.functional.ts with the commands suite (33804): extract
shared setup/integration helpers above the fixtures, unify api* await style,
assert the integration abort is invoked on popup-close, drop redundant re-open.
Trim testHelpers and POM accessors down to what this PR actually uses.
Copilot AI review requested due to automatic review settings June 5, 2026 10:34
@Alyar666 Alyar666 force-pushed the ai_assistant_e2e_interruption_26_1 branch from 9c9a3bd to abc3cb1 Compare June 5, 2026 10:34
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
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