-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 Adding dedicated aiAssistant page, more tests
- Loading branch information
1 parent
d182541
commit 6b05687
Showing
5 changed files
with
131 additions
and
91 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"sessionId": "f9130bd7-c078-4862-a38a-369b27b0ff20-e96eb9f7-d581-4684-b6a9-fd3dfe9fe1fb-XCldJLlusGrEVku5I9cYT", | ||
"messages": [ | ||
{ | ||
"role": "assistant", | ||
"type": "agent-suggestion", | ||
"title": "Glad to Help", | ||
"text": "I'm glad I could help. If you have any more questions or need further assistance with your n8n workflows, feel free to ask!" | ||
}, | ||
{ | ||
"role": "assistant", | ||
"type": "event", | ||
"eventName": "end-session" | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { BasePage } from '../base'; | ||
|
||
export class AIAssistant extends BasePage { | ||
url = '/workflows/new'; | ||
|
||
getters = { | ||
askAssistantFloatingButton: () => cy.getByTestId('ask-assistant-floating-button'), | ||
askAssistantSidebar: () => cy.getByTestId('ask-assistant-sidebar'), | ||
askAssistantSidebarResizer: () => this.getters.askAssistantSidebar().find('[class^=_resizer][data-dir=left]').first(), | ||
askAssistantChat: () => cy.getByTestId('ask-assistant-chat'), | ||
placeholderMessage: () => cy.getByTestId('placeholder-message'), | ||
closeChatButton: () => cy.getByTestId('close-chat-button'), | ||
chatInputWrapper: () => cy.getByTestId('chat-input-wrapper'), | ||
chatInput: () => cy.getByTestId('chat-input'), | ||
sendMessageButton: () => cy.getByTestId('send-message-button'), | ||
chatMessagesAll: () => cy.get('[data-test-id^=chat-message]'), | ||
chatMessagesAssistant: () => cy.getByTestId('chat-message-assistant'), | ||
chatMessagesUser: () => cy.getByTestId('chat-message-user'), | ||
chatMessagesSystem: () => cy.getByTestId('chat-message-system'), | ||
quickReplies: () => cy.getByTestId('quick-replies').find('button'), | ||
newAssistantSessionModal: () => cy.getByTestId('new-assistant-session-modal'), | ||
codeDiffs: () => cy.getByTestId('code-diff-suggestion'), | ||
applyCodeDiffButtons: () => cy.getByTestId('replace-code-button'), | ||
undoReplaceCodeButtons: () => cy.getByTestId('undo-replace-button'), | ||
codeReplacedMessage: () => cy.getByTestId('code-replaced-message'), | ||
nodeErrorViewAssistantButton: () => | ||
cy.getByTestId('node-error-view-ask-assistant-button').find('button').first(), | ||
}; | ||
} |
This file contains 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
This file contains 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