DataGrid - AI Assistant: toolbar & popup e2e tests#33803
Open
Alyar666 wants to merge 8 commits into
Open
Conversation
Adds e2e TestCafe tests for the DataGrid AI Assistant toolbar button and popup lifecycle (plan §1.1, §1.10): button visibility, popup open, grid state preserved on close, custom title and toolbar keyboard a11y. Includes the shared testHelpers and AI Assistant POM accessors the suite depends on. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds new TestCafe e2e coverage for the DataGrid AI Assistant entry points (toolbar button + popup lifecycle) and basic keyboard interaction, along with supporting page-object helpers in devextreme-testcafe-models.
Changes:
- Added a new
toolbarAndPopup.functional.tssuite validating toolbar button presence, popup opening/closing behavior, sort action application, and Enter-key activation. - Extended DataGrid and AI Assistant chat TestCafe models with additional API helpers/selectors (sort params accessor, focus helper, chat message/suggestion helpers).
- Introduced shared AI Assistant TestCafe helpers for the AI integration container page URL and common ClientFunctions.
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 helpers for reading dataSource sort and programmatically focusing the AI Assistant toolbar button. |
| packages/testcafe-models/dataGrid/aiAssistantChat.ts | Extends AI Assistant chat POM with input, message grouping, suggestions, disabled-state checks, and popup title accessor. |
| packages/testcafe-models/chat.ts | Adds a getMessageBubbles() helper and refactors getMessage() to reuse it. |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/toolbarAndPopup.functional.ts | New functional e2e tests for DataGrid AI Assistant toolbar + popup behavior and keyboard activation. |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/testHelpers.ts | Shared constants and ClientFunctions for the AI integration test page and request/localization helpers. |
Fixes intermittent CI failures (`Cannot read properties of undefined (reading 'AIIntegration')`): the `dx.ai-integration.js` global can be defined a beat after navigation, so each `before` hook now awaits `aiIntegrationReady` before instantiating the mocked AIIntegration. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…elper Replace the repeated 'await aiIntegrationReady() + createWidget' pattern in before hooks with a single createWidgetWithAIIntegration helper. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…tors - Anchor clear-chat button to dx-ai-chat__clear-button toolbar class - Return nested .dx-button from getClearChatButton and check disabled directly - Select confirm-dialog Yes button by position (locale-independent) - Fix comment typo Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Deduplicate widget config into per-scenario option factories. - 1.1.3: assert grid state is unchanged when the popup opens. - 1.10.2: verify activation via both Enter and Space, with focus check. - Remove redundant 1.10.1 click-open test (covered by 1.1.3 and 1.10.2). - Drop AIAssistantChat POM helpers unused in this PR; add GridCore.apiState() and remove unused DataGrid.apiGetDataSourceSortParams(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
added 2 commits
June 3, 2026 22:22
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.
No description provided.