graphdb-workbench-tests 2.8.0-TR8 → 2.8.0-TR9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fixtures/locale-en.json
CHANGED
|
@@ -303,10 +303,11 @@
|
|
|
303
303
|
|
|
304
304
|
},
|
|
305
305
|
"query_name": {
|
|
306
|
-
"
|
|
306
|
+
"sparql_query":"SPARQL",
|
|
307
307
|
"fts_search": "Full-text search",
|
|
308
308
|
"similarity_search": "Similarity search",
|
|
309
|
-
"retrieval_search": "ChatGPT retrieval connector"
|
|
309
|
+
"retrieval_search": "ChatGPT retrieval connector",
|
|
310
|
+
"iri_discovery": "Full-text search in labels for IRI discovery"
|
|
310
311
|
},
|
|
311
312
|
"dialog": {
|
|
312
313
|
"confirm_repository_change": {
|
|
@@ -28,21 +28,24 @@ describe('Ttyg ChatPanel', () => {
|
|
|
28
28
|
// Then I expect chat history to be displayed
|
|
29
29
|
ChatPanelSteps.getChatDetailsElements().should('have.length', 2);
|
|
30
30
|
// and only the actions for the last message are visible.
|
|
31
|
-
ChatPanelSteps.getChatDetailActions(0).should('not.be.visible');
|
|
32
|
-
ChatPanelSteps.getChatDetailActions(1).should('be.visible');
|
|
31
|
+
ChatPanelSteps.getChatDetailActions(0, 0).should('not.be.visible');
|
|
32
|
+
ChatPanelSteps.getChatDetailActions(1, 0).should('be.visible');
|
|
33
33
|
|
|
34
34
|
// When I hover over the hidden answer actions.
|
|
35
|
-
ChatPanelSteps.getChatDetailActions(0).realHover();
|
|
35
|
+
ChatPanelSteps.getChatDetailActions(0, 0).realHover();
|
|
36
36
|
|
|
37
37
|
// Then I expect answer actions to be visible.
|
|
38
|
-
ChatPanelSteps.getChatDetailActions(0).should('be.visible');
|
|
38
|
+
ChatPanelSteps.getChatDetailActions(1, 0).should('be.visible');
|
|
39
39
|
|
|
40
40
|
// When the new question input is empty.
|
|
41
41
|
// The "Ask" button must be disabled.
|
|
42
42
|
ChatPanelSteps.getAskButtonElement().should('be.disabled');
|
|
43
43
|
|
|
44
44
|
// When I type a question
|
|
45
|
-
ChatPanelSteps.getQuestionInputElement()
|
|
45
|
+
ChatPanelSteps.getQuestionInputElement()
|
|
46
|
+
.should('be.visible')
|
|
47
|
+
.and('not.be.disabled')
|
|
48
|
+
.type('Who is Han Solo?');
|
|
46
49
|
|
|
47
50
|
// Then I expect the "Ask" button be not active because agent is not selected
|
|
48
51
|
ChatPanelSteps.getAskButtonElement().should('not.be.enabled');
|
|
@@ -62,9 +65,13 @@ describe('Ttyg ChatPanel', () => {
|
|
|
62
65
|
ChatPanelSteps.getChatDetailsElements().should('have.length', 3);
|
|
63
66
|
ChatPanelSteps.getChatDetailQuestionElement(2).contains('Who is Han Solo?');
|
|
64
67
|
// and input field be empty,
|
|
68
|
+
ChatPanelSteps.getQuestionInputElement().should('be.enabled');
|
|
65
69
|
ChatPanelSteps.getQuestionInputElement().should('have.value', '');
|
|
66
70
|
// and "Ask" button be disabled.
|
|
67
71
|
ChatPanelSteps.getAskButtonElement().should('be.disabled');
|
|
72
|
+
// and only the actions for the last message are visible.
|
|
73
|
+
ChatPanelSteps.getChatDetailActions(2, 0).should('not.be.visible');
|
|
74
|
+
ChatPanelSteps.getChatDetailActions(2, 1).should('be.visible');
|
|
68
75
|
|
|
69
76
|
// When I click on regenerate button.
|
|
70
77
|
TTYGStubs.stubAnswerQuestion();
|
|
@@ -21,10 +21,14 @@ describe('TTYG edit an agent', () => {
|
|
|
21
21
|
openMode: 0
|
|
22
22
|
}
|
|
23
23
|
}, () => {
|
|
24
|
+
TTYGStubs.stubChatsListGet();
|
|
24
25
|
TTYGStubs.stubAgentListGet();
|
|
26
|
+
TTYGStubs.stubChatGet();
|
|
25
27
|
// Given I have opened the ttyg page
|
|
26
28
|
TTYGViewSteps.visit();
|
|
29
|
+
cy.wait('@get-chat-list');
|
|
27
30
|
cy.wait('@get-agent-list');
|
|
31
|
+
cy.wait('@get-chat');
|
|
28
32
|
// When I select an agent that don't have activated additional extraction method
|
|
29
33
|
TTYGViewSteps.openAgentsMenu();
|
|
30
34
|
TTYGViewSteps.selectAgent(0);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphdb-workbench-tests",
|
|
3
|
-
"version": "2.8.0-
|
|
3
|
+
"version": "2.8.0-TR9",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "graphdb-workbench-tests",
|
|
9
|
-
"version": "2.8.0-
|
|
9
|
+
"version": "2.8.0-TR9",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"cypress": "^13.3.1",
|
package/package.json
CHANGED
|
@@ -12,8 +12,8 @@ export class ChatPanelSteps {
|
|
|
12
12
|
return ChatPanelSteps.getChatDetailsElements().eq(index).scrollIntoView();
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
static getChatDetailActions(
|
|
16
|
-
return ChatPanelSteps.getChatDetailElement(
|
|
15
|
+
static getChatDetailActions(chatDetailIndex = 0, answerIndex = 0) {
|
|
16
|
+
return ChatPanelSteps.getChatDetailElement(chatDetailIndex).find('.actions').eq(answerIndex);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
static getQuestionInputElement() {
|
|
@@ -28,12 +28,12 @@ export class ChatPanelSteps {
|
|
|
28
28
|
return ChatPanelSteps.getChatDetailElement(index).find('.question');
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
static regenerateQuestion(index) {
|
|
32
|
-
ChatPanelSteps.getChatDetailActions(index).find('.regenerate-question-btn').scrollIntoView().click();
|
|
31
|
+
static regenerateQuestion(index, answerIndex = 0) {
|
|
32
|
+
ChatPanelSteps.getChatDetailActions(index, answerIndex).find('.regenerate-question-btn').scrollIntoView().click();
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
static copyAnswer(index) {
|
|
36
|
-
ChatPanelSteps.getChatDetailActions(index).find('.copy-answer-btn').click({force: true});
|
|
35
|
+
static copyAnswer(index, answerIndex = 0) {
|
|
36
|
+
ChatPanelSteps.getChatDetailActions(index, answerIndex).find('.copy-answer-btn').click({force: true});
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
static getAgentInfoMessages() {
|
package/stubs/ttyg/ttyg-stubs.js
CHANGED
|
@@ -147,12 +147,29 @@ export class TTYGStubs extends Stubs {
|
|
|
147
147
|
const requestBody = req.body;
|
|
148
148
|
|
|
149
149
|
const answer = {
|
|
150
|
-
id:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
id: requestBody.conversationId,
|
|
151
|
+
name: "Han Solo is a character",
|
|
152
|
+
timestamp: Math.floor(Date.now() / 1000),
|
|
153
|
+
messages: [
|
|
154
|
+
{
|
|
155
|
+
id: "msg_Bn07kVDCYT1qmgu1G7Zw0KNe_" + Date.now(),
|
|
156
|
+
conversationId: requestBody.conversationId,
|
|
157
|
+
role: 'assistant',
|
|
158
|
+
agentId: requestBody.agentId,
|
|
159
|
+
message: `Reply to '${requestBody.question}'`,
|
|
160
|
+
timestamp: Math.floor(Date.now() / 1000),
|
|
161
|
+
name: null
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: "msg_Bn07kVDCYT1qmgu1G7Zw0KNeс_" + Date.now(),
|
|
165
|
+
conversationId: requestBody.conversationId,
|
|
166
|
+
role: 'assistant',
|
|
167
|
+
agentId: requestBody.agentId,
|
|
168
|
+
message: `Reply to '${requestBody.question}' Second`,
|
|
169
|
+
timestamp: Math.floor(Date.now() / 1000),
|
|
170
|
+
name: null
|
|
171
|
+
}
|
|
172
|
+
]
|
|
156
173
|
};
|
|
157
174
|
|
|
158
175
|
req.reply({
|