import { BasePage } from './BasePage'; export class AIAssistantPage extends BasePage { getAskAssistantFloatingButton() { return this.page.getByTestId('ask-assistant-floating-button'); } getAskAssistantCanvasActionButton() { return this.page.getByTestId('ask-assistant-canvas-action-button'); } getAskAssistantChat() { return this.page.getByTestId('ask-assistant-chat'); } getPlaceholderMessage() { return this.page.getByTestId('placeholder-message'); } getChatInput() { return this.page.getByTestId('chat-input'); } getSendMessageButton() { return this.page.getByTestId('send-message-button'); } getCloseChatButton() { return this.page.getByTestId('close-chat-button'); } getAskAssistantSidebarResizer() { return this.page .getByTestId('ask-assistant-sidebar') .locator('[class*="_resizer"][data-dir="left"]') .first(); } getNodeErrorViewAssistantButton() { return this.page.getByTestId('node-error-view-ask-assistant-button').locator('button').first(); } getChatMessagesAll() { return this.page.locator('[data-test-id^="chat-message"]'); } getChatMessagesAssistant() { return this.page.getByTestId('chat-message-assistant'); } getChatMessagesUser() { return this.page.getByTestId('chat-message-user'); } getChatMessagesSystem() { return this.page.getByTestId('chat-message-system'); } getQuickReplyButtons() { return this.page.getByTestId('quick-replies').locator('button'); } getNewAssistantSessionModal() { return this.page.getByTestId('new-assistant-session-modal'); } }