Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
311 changes: 226 additions & 85 deletions e2e/testcafe-devextreme/tests/dataGrid/common/aiAssistant/visual.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ export const CLASSES = {
export const CLEAR_CHAT_ICON = 'clearhistory';
export const REGENERATE_ICON = 'restore';

export const SUCCESS_ITEM_EMOJI = '';
export const ERROR_ITEM_EMOJI = '';
export const ABORTED_ITEM_EMOJI = '⚠️';
export const SUCCESS_ITEM_EMOJI = '\u2705';
export const ERROR_ITEM_EMOJI = '\u274C';
export const ABORTED_ITEM_EMOJI = '\u26A0\uFE0F';
19 changes: 12 additions & 7 deletions packages/testcafe-models/dataGrid/aiAssistantChat.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Selector } from 'testcafe';
import Popup from '../popup';
import Button from '../button';
import Chat from '../chat';
Expand Down Expand Up @@ -28,32 +29,36 @@ const CLASS = {
};

export class AIAssistantChat extends Popup {
getWrapper(): Selector {
return this.element;
}

getChat(): Chat {
return new Chat(this.getWrapper().find(`.${CLASS.aiChatContent}`));
return new Chat(this.element.find(`.${CLASS.aiChatContent}`));
}

getCloseButton(): Button {
return new Button(this.getWrapper().find(`.${CLASS.closeButton}`));
return new Button(this.element.find(`.${CLASS.closeButton}`));
}

getClearChatButton(): Selector {
return this.getWrapper().find(`.${CLASS.clearChatButton}`);
return this.element.find(`.${CLASS.clearChatButton}`);
}

getMessages(): Selector {
return this.getWrapper().find(`.${CLASS.message}`);
return this.element.find(`.${CLASS.message}`);
}

getPendingMessages(): Selector {
return this.getWrapper().find(`.${CLASS.messagePending}`);
return this.element.find(`.${CLASS.messagePending}`);
}

getSuccessMessages(): Selector {
return this.getWrapper().find(`.${CLASS.messageSuccess}`);
return this.element.find(`.${CLASS.messageSuccess}`);
}

getErrorMessages(): Selector {
return this.getWrapper().find(`.${CLASS.messageError}`);
return this.element.find(`.${CLASS.messageError}`);
}

getMessage(index: number): Selector {
Expand Down
2 changes: 1 addition & 1 deletion packages/testcafe-models/dataGrid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ export default class DataGrid extends GridCore {
}

getAIAssistantChat(): AIAssistantChat {
return new AIAssistantChat(this.body.find(`.${CLASS.aiAssistantChat}`));
return new AIAssistantChat(this.body.find(`.${CLASS.overlayWrapper}.${CLASS.aiAssistantChat}`));
}

getAIAssistantButton(): Selector {
Expand Down
Loading