test(editor): Add AI Assistant e2e tests (no-changelog) (#10476)

This commit is contained in:
Milorad FIlipović
2024-08-20 13:05:09 +02:00
committed by GitHub
parent d0fc9dee0e
commit eecb80400d
14 changed files with 513 additions and 13 deletions

View File

@@ -0,0 +1,23 @@
{
"sessionId": "1",
"messages": [
{
"role": "assistant",
"type": "message",
"text": "Hi there! Here is my top solution to fix the error in your **Code** node 👇"
},
{
"type": "code-diff",
"description": "Fix the syntax error by changing '1asd' to a valid value. In this case, it seems like '1' was intended.",
"suggestionId": "1",
"codeDiff": "@@ -2,2 +2,2 @@\n item.json.myNewField = 1asd;\n+ item.json.myNewField = 1;\n",
"role": "assistant",
"quickReplies": [
{
"text": "Give me another solution",
"type": "new-suggestion"
}
]
}
]
}