-
Notifications
You must be signed in to change notification settings - Fork 658
✨AI Column: Cover leftovers and write e2e tests #31945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 25_2
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive end-to-end TestCafe tests for the AI Column feature in both DataGrid and TreeList components. The changes include new TestCafe page object models for AI-related UI elements, consolidation of HTML test fixtures, and extensive functional tests covering AI column operations.
Key changes:
- Added TestCafe models for AI-specific UI components (
getAIHeaderButton()in HeaderCell, new AIPromptEditor model with methods for interacting with the prompt editor dialog) - Consolidated test HTML files by creating a shared
container-ai-integration.htmlfixture and updating test file imports - Added 6 functional tests for DataGrid AI column covering: displaying AI results, regenerating requests via dropdown and prompt editor, clearing data, aborting requests, and changing prompts
- Added 6 equivalent functional tests for TreeList AI column to ensure feature parity between DataGrid and TreeList
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/testcafe-models/dataGrid/headers/cell.ts | Added getAIHeaderButton() method to HeaderCell model for accessing the AI header button |
| packages/testcafe-models/dataGrid/aiPromptEditor.ts | New TestCafe model for AI Prompt Editor with methods to access textarea and control buttons (regenerate, stop, apply) |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/virtualScrolling.functional.ts | Updated to use consolidated HTML fixture path |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/pages/containerWithAIIntegration.html | Deleted duplicate HTML fixture in favor of consolidated version |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/functional.ts | Added 6 comprehensive e2e tests for AI column functionality and updated fixture path |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/adaptivity.functional.ts | Updated to use consolidated HTML fixture path |
| e2e/testcafe-devextreme/tests/container-ai-integration.html | New consolidated HTML test fixture with AI integration support, replacing per-test duplicates |
| e2e/testcafe-devextreme/tests/common/treeList/aiColumn/functional.ts | New file with 6 comprehensive e2e tests for TreeList AI column functionality, mirroring DataGrid tests |
There was a problem hiding this 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 9 out of 9 changed files in this pull request and generated no new comments.
There was a problem hiding this 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 11 out of 11 changed files in this pull request and generated no new comments.
No description provided.