graphdb-workbench-tests 3.4.0-migrated-guide-services → 3.4.0

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.
Files changed (40) hide show
  1. package/e2e-legacy/cluster/cluster-states.spec.js +3 -3
  2. package/e2e-legacy/explore/visual-graph/node-info-panel.spec.js +58 -0
  3. package/e2e-legacy/explore/visual-graph/visual-graph-links-limit.spec.js +167 -0
  4. package/e2e-legacy/explore/visual-graph/visual.graph.spec.js +55 -78
  5. package/e2e-legacy/graphql/graphql-in-remote-location.spec.js +49 -0
  6. package/e2e-legacy/guides/table-graph-explore/table-graph-explore-guide.spec.js +2 -1
  7. package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +34 -26
  8. package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +42 -58
  9. package/e2e-legacy/home/create-repository.spec.js +6 -0
  10. package/e2e-legacy/repository/attach-remote-location.spec.js +47 -12
  11. package/e2e-legacy/resource/resource.spec.js +33 -13
  12. package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +44 -0
  13. package/e2e-legacy/sparql-editor/actions/expand-results-over-sameas.spec.js +8 -8
  14. package/e2e-legacy/sparql-editor/actions/include-inferred-statements.spec.js +4 -4
  15. package/e2e-legacy/sparql-editor/actions/inferred-sameas.spec.js +3 -3
  16. package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +90 -36
  17. package/e2e-legacy/sparql-editor/yasr/yasr.spec.js +80 -0
  18. package/fixtures/graph/graph-configurations.json +59 -0
  19. package/fixtures/guides/ttyg/configure-agent/configure-ttyg-agent-guide.json +6 -1
  20. package/npm-shrinkwrap.json +32 -33
  21. package/package.json +1 -1
  22. package/steps/graphql/create-graphql-endpoint-steps.js +8 -0
  23. package/steps/graphql/graphql-endpoint-management-steps.js +8 -0
  24. package/steps/graphql/graphql-playground-steps.js +8 -0
  25. package/steps/guides/movies-guide-steps.js +2 -1
  26. package/steps/home-steps.js +4 -7
  27. package/steps/repositories/attach-repository-steps.js +16 -0
  28. package/steps/repository-steps.js +24 -0
  29. package/steps/resource/resource-steps.js +0 -8
  30. package/steps/setup/acl-management-steps.js +12 -0
  31. package/steps/sparql-editor-steps.js +18 -4
  32. package/steps/ttyg/ttyg-agent-settings-modal.steps.js +1 -1
  33. package/steps/visual-graph-split-button-steps.js +45 -0
  34. package/steps/visual-graph-steps.js +12 -0
  35. package/steps/yasgui/yasr-steps.js +30 -6
  36. package/stubs/cluster/remote-location-stubs.js +4 -0
  37. package/stubs/graph-config-stubs.js +17 -0
  38. package/support/commands.js +1 -0
  39. package/support/repository-commands.js +22 -3
  40. package/support/url-commands.js +13 -0
@@ -9,7 +9,8 @@ import {GuidesStubs} from "../../../../stubs/guides/guides-stubs.js";
9
9
  import {TTYGStubs} from "../../../../stubs/ttyg/ttyg-stubs.js";
10
10
  import {RepositoriesStubs} from "../../../../stubs/repositories/repositories-stubs.js";
11
11
 
12
- describe('ttyg configure agent guide', () => {
12
+ // TODO: there is some issue with the context side field focus that breaks the test. Should be fixed soon
13
+ describe.skip('ttyg configure agent guide', () => {
13
14
  let repositoryId;
14
15
 
15
16
  beforeEach(() => {
@@ -33,109 +34,116 @@ describe('ttyg configure agent guide', () => {
33
34
  })
34
35
 
35
36
  it('should create and configure TTYG agent with actions', () => {
36
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/29');
37
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 1/30');
37
38
  GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Talk to Your Graph view to create an agent.');
38
39
  GuideDialogSteps.clickOnNextButton();
39
40
 
40
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/29');
41
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 2/30');
41
42
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
42
43
  MainMenuSteps.clickOnMenuLab();
43
44
 
44
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 3/29');
45
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 3/30');
45
46
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Talk to Your Graph menu.');
46
47
  MainMenuSteps.clickOnTTYGSubmenu();
47
48
 
48
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 5/29');
49
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 5/30');
49
50
  GuideDialogSteps.assertDialogWithContentIsVisible('An agent is a helpful assistant that can answer your queries. You need to configure an agent in order to ask anything of Talk to Your Graph.');
50
51
  GuideDialogSteps.clickOnNextButton();
51
52
 
52
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 7/29');
53
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 7/30');
53
54
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create agent button to create a new agent.');
54
55
  TTYGViewSteps.clickCreateAgentButton();
55
56
 
56
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 9/29');
57
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 9/30');
57
58
  GuideDialogSteps.assertDialogWithContentIsVisible('Type a name for the agent. You will refer to it later.');
58
59
  TtygAgentSettingsModalSteps.typeAgentName('MyAgent');
59
60
  GuideDialogSteps.clickOnNextButton();
60
61
 
61
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 10/29');
62
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 10/30');
62
63
  GuideDialogSteps.assertDialogWithContentIsVisible('Here you can type the name of the OpenAI model to be used.');
63
64
  TtygAgentSettingsModalSteps.clearLLMModel();
64
65
  TtygAgentSettingsModalSteps.typeLLMModel('gpt-3.5-turbo');
65
66
  GuideDialogSteps.clickOnNextButton();
66
67
 
67
- GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 11/29');
68
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 11/30');
68
69
  GuideDialogSteps.assertDialogWithContentIsVisible('Sets the sampling temperature of the agent. Lower values result in more consistent, repetitive responses generated by the agent and higher values result in a wider variety of responses');
69
70
  TtygAgentSettingsModalSteps.setTemperature(0.8);
70
71
  GuideDialogSteps.clickOnNextButton();
71
72
 
72
- GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 12/29');
73
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 12/30');
73
74
  GuideDialogSteps.assertDialogWithContentIsVisible('Sets the nucleus sampling of the agent');
74
75
  TtygAgentSettingsModalSteps.setTopP(0.9);
75
76
  GuideDialogSteps.clickOnNextButton();
76
77
 
77
- GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 13/29');
78
+ GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 13/30');
78
79
  GuideDialogSteps.assertDialogWithContentIsVisible('Enabling SPARQL search allows the agent to answers questions by performing a SPARQL query.');
79
80
  GuideDialogSteps.clickOnNextButton();
80
81
 
81
- GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 14/29');
82
+ GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 14/30');
82
83
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable SPARQL search query method.');
83
84
  TtygAgentSettingsModalSteps.enableSparqlExtractionMethod();
84
85
 
85
- GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 15/29');
86
+ GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 15/30');
86
87
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable providing an ontology in a named graph.');
87
88
  TtygAgentSettingsModalSteps.selectSparqlMethodOntologyGraph();
88
89
 
89
- GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 16/29');
90
+ GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 16/30');
90
91
  GuideDialogSteps.assertDialogWithContentIsVisible('Type http://example.org/some/test/ontology as the named graph which contains the ontology.');
91
92
  TtygAgentSettingsModalSteps.clearSparqlMethodOntologyGraphField();
92
93
  TtygAgentSettingsModalSteps.typeSparqlMethodOntologyGraphField('http://example.org/some/test/ontology');
93
94
  GuideDialogSteps.clickOnNextButton();
94
95
 
95
- GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 17/29');
96
+ GuideDialogSteps.assertDialogWithTitleIsVisible('SPARQL search query method — 17/30');
96
97
  GuideDialogSteps.assertDialogWithContentIsVisible('Check to automatically add missing namespaces.');
97
98
  TtygAgentSettingsModalSteps.toggleAddMissingNamespacesCheckbox();
98
99
 
99
- GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 18/29');
100
+ GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 18/30');
100
101
  GuideDialogSteps.assertDialogWithContentIsVisible('Enabling FTS search allows the agent to answer questions by using full-text search in literals and IRIs.');
101
102
  GuideDialogSteps.clickOnNextButton();
102
103
 
103
- GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 19/29');
104
+ GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 19/30');
104
105
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable FTS search query method.');
105
106
  TtygAgentSettingsModalSteps.enableFtsExtractionMethod();
106
107
 
107
- GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 20/29');
108
+ GuideDialogSteps.assertDialogWithTitleIsVisible('FTS search query method — 20/30');
108
109
  GuideDialogSteps.assertDialogWithContentIsVisible('Type 100 as the maximum number of triples to retrieve per call.');
109
110
  TtygAgentSettingsModalSteps.setFtsSearchMaxTriples(100);
110
111
  GuideDialogSteps.clickOnNextButton();
111
112
 
112
- GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 21/29');
113
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 21/30');
113
114
  GuideDialogSteps.assertDialogWithContentIsVisible('Enabling Similarity search allows the agent to answer questions by using Similarity search.');
114
115
  GuideDialogSteps.clickOnNextButton();
115
116
 
116
- GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 22/29');
117
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 22/30');
117
118
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable Similarity search query method.');
118
119
  TtygAgentSettingsModalSteps.enableSimilaritySearchMethodPanel();
119
120
 
120
- GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 23/29');
121
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Similarity search query method — 23/30');
121
122
  GuideDialogSteps.assertDialogWithContentIsVisible('Select the index to use for Similarity search.');
122
123
  TtygAgentSettingsModalSteps.selectSimilarityIndex(0);
123
124
  GuideDialogSteps.clickOnNextButton();
124
125
 
125
- GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 24/29');
126
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 24/30');
126
127
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable Full-text search in labels for IRI discovery');
127
128
  TtygAgentSettingsModalSteps.checkIriDiscoverySearchCheckbox();
128
129
 
129
- GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 25/29');
130
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 25/30');
130
131
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the toggle to enable Autocomplete for IRI discovery.');
131
132
  TtygAgentSettingsModalSteps.checkAutocompleteSearchCheckbox();
132
133
 
133
- GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 26/29');
134
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 26/30');
134
135
  GuideDialogSteps.assertDialogWithContentIsVisible('Set the Max number of results (IRIs) per call to 15');
135
136
  TtygAgentSettingsModalSteps.setAutocompleteMaxResults(15);
136
137
  GuideDialogSteps.clickOnNextButton();
137
138
 
138
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 27/29');
139
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Talk to Your Graph — 27/30');
140
+ GuideDialogSteps.assertDialogWithContentIsVisible('Set Context Size to 4096 so the model can use the ontology and conversation history to answer correctly');
141
+ TtygAgentSettingsModalSteps.getContextSizeField().focus();
142
+ TtygAgentSettingsModalSteps.clearContextSize();
143
+ TtygAgentSettingsModalSteps.enterContextSize(4096);
144
+ GuideDialogSteps.clickOnNextButton();
145
+
146
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 28/30');
139
147
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following in the input:');
140
148
  TtygAgentSettingsModalSteps.clearUserInstructions();
141
149
  TtygAgentSettingsModalSteps.getCodeToCopy().then(code => {
@@ -143,7 +151,7 @@ describe('ttyg configure agent guide', () => {
143
151
  GuideDialogSteps.clickOnNextButton();
144
152
  });
145
153
 
146
- GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 28/29');
154
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Create an agent — 29/30');
147
155
  GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the agent settings');
148
156
  TtygAgentSettingsModalSteps.saveAgent();
149
157
  });
@@ -180,104 +180,96 @@ describe('Visual Graph', () => {
180
180
  });
181
181
 
182
182
  it('Should create a visual graph config (User interaction)', () => {
183
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/24');
183
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/22');
184
184
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
185
185
  GuideDialogSteps.clickOnNextButton();
186
186
 
187
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/24');
187
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/22');
188
188
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
189
189
  GuideDialogSteps.clickOnNextButton();
190
190
 
191
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/24');
191
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/22');
192
192
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create config button to Create graph config.');
193
193
  VisualGraphSteps.createCustomGraph();
194
194
 
195
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/24');
195
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/22');
196
196
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter a name for your visual graph configuration.');
197
197
  VisualGraphSteps.typeGraphConfigName('visual');
198
198
  GuideDialogSteps.clickOnNextButton();
199
199
 
200
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/24');
200
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/22');
201
201
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
202
202
  VisualGraphSteps.typeGraphConfigDescription('my description');
203
203
  GuideDialogSteps.clickOnNextButton();
204
204
 
205
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/24');
205
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/22');
206
206
  GuideDialogSteps.assertDialogWithContentIsVisible('Copy and use the following IRI as the starting point for the visual graph: my hint');
207
207
  VisualGraphSteps.typeGraphConfigHint('my hint');
208
208
  GuideDialogSteps.clickOnNextButton();
209
209
 
210
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 7/24');
210
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 7/22');
211
211
  GuideDialogSteps.assertDialogWithContentIsVisible('Starting point defines how the visual graph begins when it is opened. It determines the first resource or set of results that will appear in the graph and from which the visualization starts.');
212
212
  GuideDialogSteps.clickOnNextButton();
213
213
 
214
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 9/24');
214
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 9/22');
215
215
  GuideDialogSteps.assertDialogWithContentIsVisible('Select Start with a fixed node to always start the visual graph from a specific resource.')
216
216
  VisualGraphSteps.selectStartMode('node');
217
217
 
218
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/24');
218
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/22');
219
219
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
220
220
  VisualGraphSteps.searchForRdfResource('MerlotGrape');
221
221
  GuideDialogSteps.clickOnNextButton();
222
222
 
223
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/24');
223
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/22');
224
224
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#MerlotGrape');
225
225
  VisualGraphSteps.clickOnAutocompleteElement('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#MerlotGrape');
226
226
 
227
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/24');
227
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/22');
228
228
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
229
229
  VisualGraphSteps.openConfigTab(2);
230
230
 
231
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/24');
231
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/22');
232
232
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following SPARQL query:');
233
233
  GuideDialogSteps.assertDialogWithContentIsVisible('The graph expansion query defines what happens when a node is expanded in the visual graph. Expanding a node loads additional resources connected to it and adds them to the graph as new nodes and edges.');
234
234
  GuideDialogSteps.copyQueryToEditor();
235
235
  GuideDialogSteps.clickOnNextButton();
236
236
 
237
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 14/24');
237
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 14/22');
238
238
  GuideDialogSteps.assertDialogWithContentIsVisible('Include inferred data in results includes inferred statements produced by reasoning in the query results. Clicking the toggle disables this behavior.');
239
239
  GuideDialogSteps.clickOnNextButton();
240
240
 
241
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 15/24');
241
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 15/22');
242
242
  GuideDialogSteps.assertDialogWithContentIsVisible('Expand results over owl sameAs includes equivalent resources connected with owl:sameAs in the query results. Clicking the toggle disables this behavior.');
243
243
  GuideDialogSteps.clickOnNextButton();
244
244
 
245
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 16/24');
245
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 16/22');
246
246
  GuideDialogSteps.assertDialogWithContentIsVisible('The Sample queries includes example graph expansion queries. Unfiltered object properties shows all object property connections of a node, while Filtered object properties shows only selected ones.');
247
247
  GuideDialogSteps.clickOnNextButton();
248
248
 
249
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 17/24');
249
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 17/22');
250
250
  GuideDialogSteps.assertDialogWithContentIsVisible('Check the Share visual graph with other users box to make the visual graph configuration available to other users in the repository.');
251
251
  VisualGraphSteps.shareVisualGraphWithOtherUsers();
252
252
 
253
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/24');
253
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/22');
254
254
  GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
255
255
  VisualGraphSteps.saveConfig();
256
256
 
257
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/24');
257
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/22');
258
258
  GuideDialogSteps.assertDialogWithContentIsVisible('Click the visual graph you just created to open and explore it.');
259
259
  VisualGraphSteps.selectConfig('visual');
260
260
 
261
261
  Cypress._.times(4, () => cy.wait('@getNodes'));
262
262
 
263
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 20/24');
264
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on Graph settings.');
265
- VisualGraphSteps.openVisualGraphSettings();
266
-
267
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/24');
263
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 20/22');
268
264
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter 200 as the maximum number of links to show.');
269
265
  VisualGraphSteps.updateLinksLimitField(200);
270
266
  GuideDialogSteps.clickOnNextButton();
271
267
 
272
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/24');
273
- GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the graph settings.');
274
- VisualGraphSteps.saveSettings();
275
-
276
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 23/24');
268
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/22');
277
269
  GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
278
270
  VisualGraphSteps.dblclickOnNode('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#WineGrape')
279
271
 
280
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 24/24');
272
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/22');
281
273
  GuideDialogSteps.assertDialogWithContentIsVisible('Scrolling with the mouse wheel or two fingers on the touchpad zooms the visual graph in and out.');
282
274
  GuideDialogSteps.clickOnNextButton();
283
275
 
@@ -285,100 +277,92 @@ describe('Visual Graph', () => {
285
277
  });
286
278
 
287
279
  it('Should create a visual graph config (next flow)', () => {
288
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/24');
280
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/22');
289
281
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
290
282
  GuideDialogSteps.clickOnNextButton();
291
283
 
292
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/24');
284
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/22');
293
285
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
294
286
  GuideDialogSteps.clickOnNextButton();
295
287
 
296
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/24');
288
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/22');
297
289
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create config button to Create graph config.');
298
290
  GuideDialogSteps.clickOnNextButton();
299
291
 
300
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/24');
292
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/22');
301
293
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter a name for your visual graph configuration.');
302
294
  VisualGraphSteps.typeGraphConfigName('visual');
303
295
  GuideDialogSteps.clickOnNextButton();
304
296
 
305
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/24');
297
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/22');
306
298
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
307
299
  GuideDialogSteps.clickOnNextButton();
308
300
 
309
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/24');
301
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/22');
310
302
  GuideDialogSteps.assertDialogWithContentIsVisible('Copy and use the following IRI as the starting point for the visual graph: my hint');
311
303
  GuideDialogSteps.clickOnNextButton();
312
304
 
313
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 7/24');
305
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 7/22');
314
306
  GuideDialogSteps.assertDialogWithContentIsVisible('Starting point defines how the visual graph begins when it is opened. It determines the first resource or set of results that will appear in the graph and from which the visualization starts.');
315
307
  GuideDialogSteps.clickOnNextButton();
316
308
 
317
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 9/24');
309
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 9/22');
318
310
  GuideDialogSteps.assertDialogWithContentIsVisible('Select Start with a fixed node to always start the visual graph from a specific resource.')
319
311
  GuideDialogSteps.clickOnNextButton();
320
312
 
321
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/24');
313
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/22');
322
314
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
323
315
  GuideDialogSteps.clickOnNextButton();
324
316
 
325
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/24');
317
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/22');
326
318
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#MerlotGrape');
327
319
  GuideDialogSteps.clickOnNextButton();
328
320
 
329
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/24');
321
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/22');
330
322
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
331
323
  GuideDialogSteps.clickOnNextButton();
332
324
 
333
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/24');
325
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/22');
334
326
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following SPARQL query:');
335
327
  GuideDialogSteps.assertDialogWithContentIsVisible('The graph expansion query defines what happens when a node is expanded in the visual graph. Expanding a node loads additional resources connected to it and adds them to the graph as new nodes and edges.');
336
328
  GuideDialogSteps.clickOnNextButton();
337
329
 
338
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 14/24');
330
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 14/22');
339
331
  GuideDialogSteps.assertDialogWithContentIsVisible('Include inferred data in results includes inferred statements produced by reasoning in the query results. Clicking the toggle disables this behavior.');
340
332
  GuideDialogSteps.clickOnNextButton();
341
333
 
342
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 15/24');
334
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 15/22');
343
335
  GuideDialogSteps.assertDialogWithContentIsVisible('Expand results over owl sameAs includes equivalent resources connected with owl:sameAs in the query results. Clicking the toggle disables this behavior.');
344
336
  GuideDialogSteps.clickOnNextButton();
345
337
 
346
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 16/24');
338
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 16/22');
347
339
  GuideDialogSteps.assertDialogWithContentIsVisible('The Sample queries includes example graph expansion queries. Unfiltered object properties shows all object property connections of a node, while Filtered object properties shows only selected ones.');
348
340
  GuideDialogSteps.clickOnNextButton();
349
341
 
350
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 17/24');
342
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 17/22');
351
343
  GuideDialogSteps.assertDialogWithContentIsVisible('Check the Share visual graph with other users box to make the visual graph configuration available to other users in the repository.');
352
344
  VisualGraphSteps.shareVisualGraphWithOtherUsers();
353
345
 
354
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/24');
346
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/22');
355
347
  GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
356
348
  GuideDialogSteps.clickOnNextButton();
357
349
 
358
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/24');
350
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/22');
359
351
  GuideDialogSteps.assertDialogWithContentIsVisible('Click the visual graph you just created to open and explore it.');
360
352
  VisualGraphSteps.selectConfig('visual');
361
353
 
362
354
  Cypress._.times(4, () => cy.wait('@getNodes'));
363
355
 
364
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 20/24');
365
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on Graph settings.');
366
- GuideDialogSteps.clickOnNextButton();
367
-
368
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/24');
356
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 20/22');
369
357
  GuideDialogSteps.assertDialogWithContentIsVisible('Enter 200 as the maximum number of links to show.');
370
358
  VisualGraphSteps.updateLinksLimitField(200);
371
359
  GuideDialogSteps.clickOnNextButton();
372
360
 
373
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/24');
374
- GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the graph settings.');
375
- GuideDialogSteps.clickOnNextButton();
376
-
377
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 23/24');
361
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/22');
378
362
  GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
379
363
  GuideDialogSteps.clickOnNextButton();
380
364
 
381
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 24/24');
365
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/22');
382
366
  GuideDialogSteps.assertDialogWithContentIsVisible('Scrolling with the mouse wheel or two fingers on the touchpad zooms the visual graph in and out.');
383
367
  GuideDialogSteps.clickOnNextButton();
384
368
 
@@ -1,10 +1,16 @@
1
1
  import HomeSteps from '../../steps/home-steps';
2
+ import {RepositoriesStubs} from "../../stubs/repositories/repositories-stubs.js";
2
3
 
3
4
  describe('Create repository', () => {
4
5
 
5
6
  beforeEach(() => {
6
7
  cy.viewport(1280, 1000);
7
8
  HomeSteps.visitAndWaitLoader();
9
+ RepositoriesStubs.spyGetRepositories();
10
+ cy.wait('@getRepositories');
11
+ // Due to the ongoing migration, there are currently 2 requests to get repositories on init (one from the legacy and one from the new workbench).
12
+ // This will be removed once migration is complete (or at least the repository part of it)
13
+ cy.wait('@getRepositories');
8
14
  });
9
15
 
10
16
  it('Test create and select new repository via home page', () => {
@@ -2,13 +2,21 @@ import {RepositorySteps} from "../../steps/repository-steps";
2
2
  import {AttachRepositorySteps} from "../../steps/repositories/attach-repository-steps";
3
3
  import {ModalDialogSteps} from "../../steps/modal-dialog-steps";
4
4
  import {RepositoriesStubs} from "../../stubs/repositories/repositories-stubs";
5
+ import {RemoteLocationStubs} from '../../stubs/cluster/remote-location-stubs.js';
5
6
 
6
7
  describe('Attach remote location', () => {
8
+ let remoteLocationName;
9
+
10
+ beforeEach(() => {
11
+ remoteLocationName = 'http://location-' + Date.now();
12
+ });
13
+
14
+ afterEach(() => {
15
+ cy.deleteRemoteLocation(remoteLocationName);
16
+ })
7
17
 
8
18
  it('Should create and delete remote instance', () => {
9
- cy.visit('/repository');
10
- RepositorySteps.waitLoader();
11
- RepositorySteps.waitUntilRepositoriesPageIsLoaded();
19
+ RepositorySteps.visit();
12
20
 
13
21
  // When I open the "Attach a remote instance" dialog.
14
22
  AttachRepositorySteps.openAttachRemoteLocationDialog();
@@ -114,12 +122,43 @@ describe('Attach remote location', () => {
114
122
  RepositorySteps.getSparqlOntopicTable().should('not.exist');
115
123
  });
116
124
 
125
+ it('should be able to create a remote location with encrypted password', () => {
126
+ // Given I have a running GDB instance and I am on the Repositories view
127
+ RepositorySteps.visit();
128
+ // When I start the location creation
129
+ AttachRepositorySteps.openAttachRemoteLocationDialog();
130
+ AttachRepositorySteps.enterURL(remoteLocationName);
131
+ // And I select basic auth type
132
+ AttachRepositorySteps.selectBasicRadioBtn();
133
+ // Then I expect to see a security warning
134
+ AttachRepositorySteps.getUnencryptedPasswordWarning().should('be.visible');
135
+ // And I should not see the warning for the backward compatibility issues when encrypting the password
136
+ AttachRepositorySteps.getBackwardCompatibilityWarning().should('not.exist');
137
+ // When I select to encrypt the password
138
+ AttachRepositorySteps.encryptPassword();
139
+ // Then I should see the backward compatibility warning
140
+ AttachRepositorySteps.getBackwardCompatibilityWarning().should('be.visible');
141
+ // And the unencrypted password warning should not be visible
142
+ AttachRepositorySteps.getUnencryptedPasswordWarning().should('not.exist');
143
+ // When I fill in username and password
144
+ AttachRepositorySteps.enterUsername('locationadmin');
145
+ AttachRepositorySteps.enterPassword('admin123');
146
+ // And I save the location
147
+ RemoteLocationStubs.spyRemoteLocationCreate();
148
+ AttachRepositorySteps.attachRemoteLocation();
149
+ // Then encrypt password flag should be sent
150
+ cy.wait('@add-remote-location')
151
+ .its('request.body')
152
+ .should('include', {
153
+ encryptPassword: true,
154
+ username: 'locationadmin'
155
+ });
156
+ });
157
+
117
158
  it('Should render different location types in separate tables: error, location with and without repositories', () => {
118
159
  RepositoriesStubs.stubRepositories();
119
160
  RepositoriesStubs.stubLocations();
120
- cy.visit('/repository');
121
- RepositorySteps.waitLoader();
122
- RepositorySteps.waitUntilRepositoriesPageIsLoaded();
161
+ RepositorySteps.visit();
123
162
  cy.wait('@get-all-repositories');
124
163
 
125
164
  // When I open the Repositories view that contains all possible kind of locations.
@@ -137,9 +176,7 @@ describe('Attach remote location', () => {
137
176
  });
138
177
 
139
178
  it('Should be able to open edit remote location dialog', () => {
140
- cy.visit('/repository');
141
- RepositorySteps.waitLoader();
142
- RepositorySteps.waitUntilRepositoriesPageIsLoaded();
179
+ RepositorySteps.visit();
143
180
 
144
181
  const locationId = 'http://local';
145
182
  addRemoteSPARQLLocation(locationId, 'username', 'password');
@@ -161,9 +198,7 @@ describe('Attach remote location', () => {
161
198
  });
162
199
 
163
200
  it('Should create and delete SPARQL endpoint instance', () => {
164
- cy.visit('/repository');
165
- RepositorySteps.waitLoader();
166
- RepositorySteps.waitUntilRepositoriesPageIsLoaded();
201
+ RepositorySteps.visit();
167
202
 
168
203
  const locationId = 'http://endpoint/repo/ex';
169
204
  addRemoteSPARQLLocation(locationId, 'username', 'password');